coding style - What is the advantage of using an undocked ApplicationControlBar instead of plain HBox in Flex? -


I think Flex3 has a class named "ApplicationControlBar that" provides global navigation The application command is devoted to holding the component. "(The quote from) The question is whether there is any advantage of using this class instead of adding a white HBox with a brown background, or Is it just a matter of taste?

At my current code, I use the following box:

   

This obviously requires specifying some attributes, but besides?

ApplicationControlBar is basically an HBox, both scrolling policies are set to false and set on a transparent background.This is another feature that has the ability to dock. From Livedocs:

d A mode: the bar is always at the top of the drawing area of ​​the application and the application becomes part of the chrome. No application-level scroll bar is applied to the component, so it always stays above the visible area, and bar applications To create the dock bar, set the value of the doc property to the right.

If you see the source of ApplicationControlBar and Application.dockControlBar, you will see Kega provides that when docked = true, then added in raw child to ignore rather than children who find it "Scolbar" and such permission.


Comments