flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ent <p...@adobe.com>
Subject Re: [FlexJS] Panel
Date Thu, 09 Mar 2017 16:49:57 GMT
The idea of "chrome" is that these are components that do not count as
regular children and have special locations within the component. The
TitleBar and ControlBar are considered chrome because if you ask for the
children of the Panel, they are not listed and if you have so many
children in the Panel that it requires scrolling, these items do not
scroll. You can consider the fixed scrollbars in the SWF version to be
chrome pieces too.

Let's say you wanted to have a special type of title bar that did have
images and other buttons. If your component implements IChrome, then you
could add it to a container that knew how to handle chrome:

   <MyTitleBar Š left="0" top="0" right="0" height="40"/>
   <button or label or input etc etc not chrome />

Where your MyTitleBar.mxml might be:

<Group implements="IChrome">
       <HorizontalFlexLayout />
    <Images or Buttons or Labels />

Then the ChromedContainer would place the MyTitleBar at the top of the
container outside of the content area. But you could also do this as:

       <BasicLayout />
    <MyTitleBar top="0" left="0" right="0" height="40" />
    <Container top="40" left="0" right="0" bottom="0">
         <ScrollingViewport />
       <Images or Buttons or Labels />

This would accomplish the same thing. The problem with "chrome" is that
you could put the chrome into the middle of the container and then I'm not
sure how the layout algorithm would handle that.


On 3/9/17, 11:16 AM, "PKumar" <prashakumar@gmail.com> wrote:

>ChromeContainer should be fine. We should be able to modify the panel
>bar style as header corlor , border etc.
>Can Panel title bar contain other controls as image , button , check box?
>On 09-Mar-2017 9:37 PM, "piotrz [via Apache Flex Development]" <
>ml-node+s2333347n60286h78@n4.nabble.com> wrote:
>Hi Peter,
>Let's say that you reconstructed Panel using new Group container - How can
>we use there Chrome ?
>I would go with ChromedContainer.
>Apache Flex PMC
>If you reply to this email, your message will be added to the discussion
>To start a new topic under Apache Flex Development, email
>To unsubscribe from Apache Flex Development, click here
>View this message in context:
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message