The way I customized the title bar of a Panel in the RoyaleStore is here:

The custom TitleBar:
https://github.com/apache/royale-asjs/blob/develop/examples/royale/RoyaleStore/src/main/royale/productsView/ProductCatalogPanelTitleBarView.mxml

Used here around line 511
https://github.com/apache/royale-asjs/blob/develop/examples/royale/RoyaleStore/src/main/royale/productsView/ProductCatalogPanel.mxml#L511

Views should be highly interchangeable.  They should care little about the 
strand and just expect certain things from the model.  A replacement View 
shouldn't need to subclass the default View.  No code should care about the 
type of the View.

HTH,
-Alex

On 5/31/18, 9:40 AM, "Piotr Zarzycki" <piotrzarzyck...@gmail.com> wrote:

    When I have created Panel with custom header in one of the
    Transpiledactionscript examples I did that part in following way [1].
    
    [1] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbit.ly%2F2kDJ0Af&data=02%7C01%7Caharui%40adobe.com%7C637b49b00a4b41beda2808d5c7153fef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636633816524650727&sdata=rkbSV2t1r0qX8OMDoJbRaQrw6l51zSfTq4lh2%2BCCSuc%3D&reserved=0
    
    czw., 31 maj 2018 o 17:28 Harbs <harbs.li...@gmail.com> napisał(a):
    
    > An additional wrinkle in this problem is wether there’s any way to specify
    > the parts of the view using MXML, or it has to be in CSS.
    >
    > If they are beads, that problem is simplified. If not, is there a way to
    > add to ValueManager via MXML?
    >
    > Harbs
    >
    > > On May 31, 2018, at 6:09 PM, Harbs <harbs.li...@gmail.com> wrote:
    > >
    > > I don’t think so. The List is a component within ComboBox. I think the
    > basic structure of ComboBox makes sense as is. I think it’s the View which
    > needs work.
    > >
    > > It’s possible that an Express ComboBox might have additional properties
    > to make it easier to set the labelField, listHeight, etc.
    > >
    > > I’m primarily trying to figure out the best way to declare the “skin
    > pieces” of the view.
    > >
    > > Harbs
    > >
    > >> On May 31, 2018, at 5:17 PM, Piotr Zarzycki <piotrzarzyck...@gmail.com>
    > wrote:
    > >>
    > >> Hi Harbs,
    > >>
    > >> What if ComboBox will extend DataContainer? It will be at some point
    > list
    > >> itself. Than the rest responsibility is in View. We know that ComboBox
    > is
    > >> always list, so if someone would like to change the other parts need to
    > >> have dive into view.
    > >>
    > >> On the other hand this solution probably is less flexible than having
    > >> through css some parts of that component.
    > >>
    > >> Thanks,
    > >> Piotr
    > >>
    > >>
    > >> czw., 31 maj 2018 o 15:35 Harbs <harbs.li...@gmail.com> napisał(a):
    > >>
    > >>> I’m working on redoing ComboBox and I could use some input on best
    > >>> practices.
    > >>>
    > >>> Right now, ComboBox has ComboBox view which has three components
    > >>> hard-wired in. It has TextInput, TextButton, and List. If any visuals
    > or
    > >>> behavior need to be changed, the entire view needs to be rewritten.
    > We’ve
    > >>> already had two cases where I needed a new view. One was to disable 
the
    > >>> TextInput input and change the button appearance. The second was to
    > support
    > >>> images in a dropdown.
    > >>>
    > >>> It seems to me like the ComboBoxView should add the three components
    > based
    > >>> on declared classes. I think there should be 1. A “Button” component.
    > 2. An
    > >>> ItemRenderer component for the “input” which displays the selected
    > item. 3.
    > >>> A List component for displaying the dropdown. The question I’m
    > struggling
    > >>> with is how to declare these.
    > >>>
    > >>> I don’t think it makes sense to make these all beads. Currently 
Buttons
    > >>> are not beads.
    > >>>
    > >>> Should we add interfaces (i.e. IButton) and declare the classes using
    > >>> interfaces? I mean something similar to IItemRenderer.
    > >>>
    > >>> Maybe just use ValuesManager to just lookup some other “name”? We’re
    > >>> currently doing something similar with ColumnClassName in
    > DynamicDataGrid.
    > >>>
    > >>> Other ideas?
    > >>>
    > >>> Thanks,
    > >>> Harbs
    > >>
    > >>
    > >>
    > >> --
    > >>
    > >> Piotr Zarzycki
    > >>
    > >> Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C637b49b00a4b41beda2808d5c7153fef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636633816524650727&sdata=L%2FBMBIVysfPdFXQ%2FmMIvWdoTT4%2Fla%2Bwdi%2FfMu5w5QD0%3D&reserved=0
    > >> 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C637b49b00a4b41beda2808d5c7153fef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636633816524650727&sdata=L%2FBMBIVysfPdFXQ%2FmMIvWdoTT4%2Fla%2Bwdi%2FfMu5w5QD0%3D&reserved=0>*
    > >
    >
    >
    
    -- 
    
    Piotr Zarzycki
    
    Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C637b49b00a4b41beda2808d5c7153fef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636633816524650727&sdata=L%2FBMBIVysfPdFXQ%2FmMIvWdoTT4%2Fla%2Bwdi%2FfMu5w5QD0%3D&reserved=0
    
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C637b49b00a4b41beda2808d5c7153fef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636633816524650727&sdata=L%2FBMBIVysfPdFXQ%2FmMIvWdoTT4%2Fla%2Bwdi%2FfMu5w5QD0%3D&reserved=0>*
    

Reply via email to