Cool, thanks man. And really, no shots. :) -TH
--- In [email protected], "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > Hi, > > I get shoots fired at me every day ;-) > > Jeremy is right put it in the title bar. I know I posted this last week or > so but, here goes again. > > > I made my own widow but, if I remember 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 > > BTW peoplz, I would love to give things away, I have kids and other things > that for some reason take money ;-) > > I am headed to San Fransisco next week for the Adobe Component Developers > Summit, after that I will be much more educated to best practices and other > things. I have remained closed lipped about a lot of things because I just > don't know if what I am doing is exactly "correct". > > on another note, the resizable window I have is not a window. It's called a > mouse sizer. The MouseSizer can embed itself into any UIComponent. > > using; > > MouseSIzer.addInto() > > All of my components are based off of PowerLinxing Transformers, yes the > toys :) haha, my goal is to create components with NO dependencies. > > The window components I have coming out also take a 'different approach' > than the Panel. > > Peace, Mike > > > > On 6/15/06, Tim Hoff <[EMAIL PROTECTED]> wrote: > > > > Thanks guys, > > > > That gives me enough to start with. > > > > Best Regards, > > Tim > > > > > > --- In [email protected] <flexcoders% 40yahoogroups.com>, "Jeremy > > Lu" <wade.lu@> wrote: > > > > > > add the button to the titlebar would be a good choice (better than > > > rawChildren, since you don't have to worry about positioning it). > > > > > > > > > > > > On 6/16/06, Daniel Cascais <daniel.cascais@> wrote: > > > > > > > > I sen't my reply to early... > > > > > > > > It would be something like this: > > > > > > > > private function resizeHandler( event : ResizeEvent ) : void > > > > { > > > > myButton.x = this.width - myButton - 6; > > > > myButton.y = 6; > > > > } > > > > > > > > On 6/15/06, Tim Hoff <TimHoff@> wrote: > > > > > How would you suggest positioning the button in the header? > > > > > > > > > > --- In [email protected] <flexcoders% 40yahoogroups.com>, > > "Daniel Cascais" > > > > > <daniel.cascais@> wrote: > > > > > > > > > > > > Hi, I'm not Michael, but I can still give it a try ;) > > > > > > In a class where you extend the Panel, you could add > > something like > > > > > > this rough example: > > > > > > > > > > > > Blah blah blahÂ… > > > > > > private function creationCompleteHandler( event:Event ) : > > void > > > > > > { > > > > > > var myButton : Button = new Button(); > > > > > > this.rawChildren.addChild( myButton ); > > > > > > myButton.addEventListener( MouseEvent.CLICK, > > > > > myButtonClickHandler ); > > > > > > } > > > > > > > > > > > > Daniel > > > > > > > > > > > > On 6/15/06, Tim Hoff <TimHoff@> wrote: > > > > > > > Hey Michael Schmalle, > > > > > > > > > > > > > > Since you're one of the component guru's here, I was > > wondering > > > > > if you > > > > > > > had an example of how to place an icon button in the > > header of a > > > > > > > panel. I want to have a panel that the user can pin to > > keep it > > > > > > > visible at all times. I suppose that I could subclass a > > > > > titleWindow. > > > > > > > I just haven't had any experience with this yet. Any > > thoughts > > > > > that > > > > > > > you could share would be greatly appreciated. > > > > > > > > > > > > > > Thanks, > > > > > > > Tim Hoff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Flexcoders Mailing List > > > > > > > FAQ: > > > > > > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > > > > > Search Archives: http://www.mail- archive.com/flexcoders%<http://www.mail-archive.com/flexcoders%25> > > > > > 40yahoogroups.com > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Daniel Cascais > > > > > > Tel: +56 (0)2 4589495 > > > > > > Cel: +56 (0)9 9417355 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Flexcoders Mailing List > > > > > FAQ: > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > > > Search Archives: > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Daniel Cascais > > > > Tel: +56 (0)2 4589495 > > > > Cel: +56 (0)9 9417355 > > > > > > > > > > > > > > > > -- > > > > Flexcoders Mailing List > > > > FAQ: > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > > Search Archives: http://www.mail-archive.com/flexcoders% <http://www.mail-archive.com/flexcoders%25> > > 40yahoogroups.com > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > What goes up, does come down. > ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

