• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 510 from 2003/2/25
    From: France
    Quote:

    armo wrote:
    Quote:

    Tcheko wrote:
    Quote:

    armo wrote:
    Quote:

    jacadcaps wrote:
    There are no separate settings for it. It's the same stuff as Groups / Tab Groups.


    So, why Group Container style is not utylised by MUIC_Title? Here is example.

    MorphOS.MUIC_Title.Styles.png


    You might have to specify the right MUIA_Background/MUIA_Frame attributes for applying a consistant look, exactly like when doing a custom button with a MUIC_Area for example (ie: MUIA_Background, MUII_ButtonBack, MUIA_Frame, MUIV_Frame_Button).


    Sure, I know that. It is not a problem to use those MUI attributes. My question is related to state that MUIC_Title is using the same style settings as MUIC_Register (Groups / Tabs). But as I see those settings are utilised only partly. I would like to know is it some bug in MorphOS MUI, or is it done intentionally?


    Well, define what's a bug in MUI. :)

    The inner working of both classes is quite different.

    In the case of Title, you instanciate a group and then add a Title object in, which in turn, let you the duty of setting the correct frame/background for the group.

    Group, [you have to set the 'correct' frame/background]
    Title, Child, Child, Child, End,
    Child,
    Child,
    Child,
    End,

    In the case of the Register class, it is the class itself that manages the group holding the tabbed childs. It is then sensible to let the class do the decoration job as it holds the 'owernship' of the group.

    Register,
    Child,
    Child,
    Child,
    End

    Dunno if that makes sense. Personnaly, I just add the correct decoration to the group holding the title object and be done with that. (MUIA_Frame, MUIV_Frame_Register, MUIA_Background, MUII_RegisterBack)
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »04.04.24 - 08:15
    Profile Visit Website