Hi,

Actually I was searching for way where we can add components to Panel
titleBar without extending the Panel class because I declared Panel as a
mxml tag in the main mxml file.
But finally I created the custom Panel component which extends Panel and
added the elements to its titleBar.
I have done the same way as shown below and was able to get the expected
results.
Thank you all :)



On Fri, Aug 5, 2011 at 5:15 PM, naveen SR <[email protected]> wrote:

> Hi Madhavi,
>
> I am not sure if this is what your looking for :
>
> Create a custom panel component that extends Panel like
>
>
> public class MyCustomPanel extends Panel{
>
> override protected function createChildren() : void{
>  super.createChildren();
>  titleBar.addChild(add ur component here u wana add to title bar);
>  }
>
>
> }
>
> Use the above component in application in place of <s:Panel/>
>
> Cheers,
> Naveen
>
>
>
> On Fri, Aug 5, 2011 at 7:00 AM, madhavi chinni <
> [email protected]> wrote:
>
>> Hi,
>>
>> I have a <mx:Panel> or <s:Panel> declared in the main mxml file .I
>> want to add the items to the titleBar of that panel in the
>> actionscript of the main mxml file.
>> Is there a possibility to override the createChildren() method of that
>> panel in the actionscript of the main mxml file?or Can we add items to
>> the panel titleBar using any mxml tags?
>>
>> Any help is greatly appreciated.
>>
>> Thanks & Regards,
>> Madhavi
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
*To the Question of ur life,
u r the only Answer,
To the Problems of ur life,
u r the only Solution...*

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to