Re: [flexcoders] Adding a button to the title area of a panel

2007-04-19 Thread Bjorn Schultheiss

In mine i got explicit setter method which adds the buttons to an array.
That way you can have a dynamic amount of buttons, or rather specify  
which buttons you want to include in each instance..



B

On 19/04/2007, at 5:38 PM, Janis Radins wrote:


Thats what I used to create Panel with minimise button:
override protected function createChildren():void {
super.createChildren();
minimiseButton = new MinimiseButton();
minimiseButton.width = 16;
minimiseButton.height = 16;
minimiseButton.focusEnabled = false;
minimiseButton.visible = false;
minimiseButton.enabled = enabled;
minimiseButton.state = buttonState;
minimiseButton.addEventListener 
(MinimiseButton.STATE_CHANGED, handleMinimisation)

titleBar.addChild(minimiseButton);
minimiseButton.owner = this;
}
Ater you do this you must realign that button within layoutChrome.

18 Apr 2007 22:25:48 -0700, Bjorn Schultheiss  
<[EMAIL PROTECTED]>:

Theres a titleBar container within panel.

Best bet is to extended panel so you can frequently add, remove,  
position this button as you wish.



Bjorn

On 19/04/2007, at 1:05 PM, {reduxdj} wrote:


How do you do this?

Thanks,
Patrick




Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:   http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))







Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




Re: [flexcoders] Adding a button to the title area of a panel

2007-04-19 Thread Janis Radins

Thats what I used to create Panel with minimise button:
override protected function createChildren():void {
   super.createChildren();
   minimiseButton = new MinimiseButton();
   minimiseButton.width = 16;
   minimiseButton.height = 16;
   minimiseButton.focusEnabled = false;
   minimiseButton.visible = false;
   minimiseButton.enabled = enabled;
   minimiseButton.state = buttonState;
   minimiseButton.addEventListener(MinimiseButton.STATE_CHANGED,
handleMinimisation)
   titleBar.addChild(minimiseButton);
   minimiseButton.owner = this;
}
Ater you do this you must realign that button within layoutChrome.

18 Apr 2007 22:25:48 -0700, Bjorn Schultheiss <[EMAIL PROTECTED]

:

  Theres a titleBar container within panel.
Best bet is to extended panel so you can frequently add, remove, position
this button as you wish.


Bjorn

On 19/04/2007, at 1:05 PM, {reduxdj} wrote:

How do you do this?

Thanks,
Patrick


 Regards,

Bjorn Schultheiss
Senior Developer
[image: QDC]
Personalised Communication Power

 Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

 ((This transmission is confidential and intended solely for
the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in reliance on
it. If you believe you received this transmission in error, please notify
the sender.---))

 


Re: [flexcoders] Adding a button to the title area of a panel

2007-04-18 Thread Bjorn Schultheiss

Theres a titleBar container within panel.
Best bet is to extended panel so you can frequently add, remove,  
position this button as you wish.



Bjorn

On 19/04/2007, at 1:05 PM, {reduxdj} wrote:


How do you do this?

Thanks,
Patrick





Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




[flexcoders] Adding a button to the title area of a panel

2007-04-18 Thread {reduxdj}
How do you do this?

Thanks,
Patrick