Hi Srinivas,
I hope the code below will help you, if you dont want to create a separate
file/component for your header you can just put the code of Box at the place
of myBox control.

// main application
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
xmlns:local="*"
  height="500" width="500" backgroundColor="white">
  <mx:VBox height="300" width="300" x="50" y="50">
    <local:myBox />
    <mx:Label text="test" />
  </mx:VBox>
</mx:Application>

// myBox.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Box xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%" height="25">
  <mx:Script>
    <![CDATA[
      [Bindable]
            [Embed("header.PNG")]
            private var panelHeader:Class;
    ]]>
  </mx:Script>
  <mx:Image source="{panelHeader}" width="100%" height="100%" />
  <!-- or do what ever you want to do with your header may be you can add
one optional label here -->
</mx:Box>

Regards,
Kalpesh Mahida

On Fri, Mar 13, 2009 at 10:50 AM, Sreenivas........... <
[email protected]> wrote:

> i don't know how to write the custom components.
>
> Can u tel how to write the custom component for this component.
>
> Thanks & Regards,
> Srinivas.
>
>
> On Fri, Mar 13, 2009 at 10:18 AM, kalpesh mahida <[email protected]
> > wrote:
>
>> Hi,
>>
>> I think you can design new custom component by mixing VBox and a Box with
>> an image or optional Label control within the Box and apply what ever styles
>> you want to apply to the header of your new panel ( Actually Box ).
>>
>> Regards,
>> Kalpesh Mahida
>>
>>
>>
>> On Thu, Mar 12, 2009 at 11:22 PM, Vaibhav/Steve <
>> [email protected]> wrote:
>>
>>>
>>> I think headerRenderer is there in Pannel, you can make your own
>>> custom component and pass it as a headerRenderer to the Pannel.
>>>
>>> Vaibhav.
>>>
>>> On Mar 12, 6:24 pm, Vasu <[email protected]> wrote:
>>> > Thanks Ravi,
>>> >            Can you tell me how to remove the "Titlebar" instead of
>>> > that i need to put my image.
>>> >
>>> > Thanks & Regards,
>>> > Srinivas.
>>> >
>>> > On Mar 12, 5:17 pm, Ravi Mishra <[email protected]> wrote:
>>> >
>>> > > You can create a custom panel to achieve this. May be the following
>>> > > will be helpful to you:
>>> >
>>> > >
>>> http://blog.olivermerk.ca/index.cfm/2007/6/17/Flex-Adding-Icons-to-th...
>>> >
>>> > > -Ravi
>>> >
>>> > > On Mar 12, 3:47 pm, Vasu <[email protected]> wrote:
>>> >
>>> > > > Hi All,
>>> > > >          Can you tell me "How to put the image in the place of
>>> Panel
>>> > > > header"(The image is going to take the full Panel header
>>> > > > height ,width).
>>> >
>>> > > > Any suggestions on this?.
>>> >
>>> > > > Thanks & Regards,
>>> > > > Srinivas.
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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