This content has been marked as final. Show 4 replies
NativeWindow.systemMinSize will report the minimum window size on a system. (It's 127x27 on my Win XP system, for example). I don't think you are missing anything here.
Thanks Joe. So, to make these narrow palettes, would you recommend transparent/no chrome/showFlexChrome false with custom chrome thus "hiding" the portion of the window over the 20-or-so-pixels? Or is there a better technique?
Unfortunately, that workaround won't work very well on Linux. On Linux, you can't click through transparent areas like you can on Windows and Macs. If you -really- need that narrow window, you could special case it for Windows, but I'd recommended designing your way out of the problem.
The only other technique I can think of is to create a palette that is just a sprite floating over the window. This constrains it to it's parent window boundaries, so that may not work for all cases.
You should also make a request for the ability to create narrower windows at http://www.adobe.com/go/wish providing your use case.
I'm trying to use Brett's technique: http://www.graviti.tv/blog/?p=75
...to style the windows and set up the custom chrome in a way that will be easy to maintain. His technique seems a little heavy-handed so I may have to boil it down some but it seems pretty nice. I can NOT figure out how to make the mxml/css method work for a secondary window (mx:Window component), although it appears very simple to work with for the main application window. I'd love to use an extended NativeWindow, too, but that seems even more difficult than trying to get mx:Window to work.