[flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Tim Hoff
How would you suggest positioning the button in the header? --- In flexcoders@yahoogroups.com, Daniel Cascais [EMAIL PROTECTED] 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

[flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Doug Lowder
Hi Tim, Jeff Tapper's MaxRestorePanel could probably be easily modified for this. http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm Doug --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: How would you suggest positioning the button in the header? --- In

Re: [flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Daniel Cascais
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 [EMAIL PROTECTED] wrote: How would you suggest positioning the button in the header?

Re: [flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Jeremy Lu
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 [EMAIL PROTECTED] wrote: I sen't my reply to early...It would be something like this:private function resizeHandler( event :

[flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Tim Hoff
Thanks guys, That gives me enough to start with. Best Regards, Tim --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] 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,

Re: [flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Michael Schmalle
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 ) {

[flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Tim Hoff
Cool, thanks man. And really, no shots. :) -TH --- In flexcoders@yahoogroups.com, 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

Re: [flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Daniel Cascais
Yep, that looks better ;) On 6/15/06, 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

Re: [flexcoders] Re: Image Icon Button in Panel Header

2006-06-15 Thread Jeremy Lu
hey Michael,Please don't take it personally, don't mean to shoot anyone :-)Btw, what's the adobe component developer summit all about ? never heard it anywhere.Is it for designers or for developer ? focuing on Flex 2 or Flash 8 ? thanks.Jeremy.On 6/16/06, Daniel Cascais [EMAIL PROTECTED] wrote: