Setting the chrome to None does not solve your problem?
The below code works for me:
var init = new air.NativeWindowInitOptions();
init.systemChrome = air.NativeWindowSystemChrome.NONE;
var bounds = new air.Rectangle(50, 50, 320, 240);
var win = air.HTMLLoader.createRootWindow(
init, /*window init options*/
false, /*no scrollbars*/
If this does not fix your problem, can you please provide the following information:
1. AIR version
3. small application code that shows the problem
Setting chrome to none doesn't help because chrome none windows have those buttons as well.
The window I am talking about is the main application window and so, a Flex window.
Can you please post a sample code for your problem? Or you can mail me if that suits you better.
Correct me if i am wrong but your image tells that you want a window with a chrome but without resize/maximize buttons. Did i understand correctly?
Again, what OS are you using?
You can turn off all the Flex chrome, or some pieces of it. You can turn off the resize gripper with the WindowedApplication or Window showGripper property. I don't see a direct way to get rid of the Maximize button, though.
I think you could provide your own titlebar factory or button skin.
I know about getting rid of the Grip for resize.
I wanted to get rid of the icon for maximize when that option is disabled for a window for example.
So yes, how can I hide the icons in the top-right part of the screenshot?
I am using Windows 7, but I would want it to work on any OS or at least Linux+Mac in adition to Windows.
1 person found this helpful
Are you using "system chrome?" If so, you don't have control of the buttons directly. If you are using Flex (or your own chrome), then you can do whatever you like.
In the main-app.xml I have the system chrome set to none.
It's a Flex Window.
Then you will need to provide a title bar factory that creates the desired buttons, or possibly change the button skins so that they are invisible when disabled. The Flex forum might be a better place for such questions since there are more Flex experts over there (I can't claim to be one).
Hmm., alright, thank you!
And thank you Mihanea, maybe some day we will work in the Adobe building near Plaza Mall.