I made my own widow but, if I remeber correctly the 'titleBar' is a UIComponent.
1) In creatChildre() override
if (!minimizeButton )
{
minimizeButton = new Button();
minimizeButton .styleName = this;
minimizeButton .addEventListener(MouseEvent.CLICK, minimizeButton_clickHandler);
titleBar.addChild(minimizeButton );
}
2) In layoutChrome() override
- you must position the new button and shrink the textfield
Below are the current assets of the tileBar instance
- titleIconObject
- titleTextField
- closeButton
and now;
- minimizeButton
Hope that gets you started,
Peace, Mike
PS I might have missed one or two steps but that is the gist.
Hello all,
I'm simply trying to get a couple of buttons on a panel (plus and minus buttons, similar to most Mac software). I'd like to put it on top of the title portion of the border, at the top, but of course since I can't simply change z-order, the button sneaks behind the panel. I'm only mildly familiar with creating a custom AS-driven component to extend Panel, so the actual solution has been alluding me. I found something that Jesse Warden has done, but his example was actually a little over my head. I'm a Java and AS2 developer, but a lot of these specific AS3 classes are blocking my road.
What is the simplest/best way to do this?
Any help is GREATLY appreciated!
Cheers
Jordan Snyder
Applications Developer
Image Action LLC
www.imageaction.com
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
Reply via email to

