MUIC_Title
  • Caterpillar
    Caterpillar
    armo
    Posts: 40 from 2003/8/1
    From: Krakow - Poland
    My question is ...
    Is this class fully implemented in MorphOS MUI? I have problem with getting this class work.
    I have "flat view" instead of "tab view".

    Example code:

    Code:
    VGroup,
    Child, TitleObject,
    Child, TextObject, MUIA_Text_Contents, "page 1", End,
    Child, TextObject, MUIA_Text_Contents, "page 2", End,
    Child, TextObject, MUIA_Text_Contents, "page 3", End,
    End,

    Child, [page 1 contents],
    Child, [page 2 contents],
    Child, [page 3 contents],
    End
    Rafael/ARMO
    tdolphin.org     tdolphin.itch.io     GitHub
  • »08.03.24 - 10:07
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Never heard of MUIC_Title, but it does look like you want a RegisterGroup.
  • »08.03.24 - 11:19
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    "On MUI4 there is a new class called MUIC_Title to have dynamic tabs. On AROS OWB port uses a dynamic tab class written from scratch (it will be an external class, and so it will be ported on OS3 and OS4 as well)."
    reference
    repo
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »08.03.24 - 11:28
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    O.k. so it does exist but "TitleObject" is not defined in mui.h as it seems.

    This would be:
    Code:
    #define TitleObject MUI_NewObject(MUIC_Title


    Just add that somewhere, maybe inside a #ifndef TitleObject ..... #endif and you should be good.
  • »08.03.24 - 13:02
    Profile
  • Caterpillar
    Caterpillar
    armo
    Posts: 40 from 2003/8/1
    From: Krakow - Poland
    Quote:

    Kronos wrote:
    O.k. so it does exist but "TitleObject" is not defined in mui.h as it seems.

    This would be:
    Code:
    #define TitleObject MUI_NewObject(MUIC_Title


    Just add that somewhere, maybe inside a #ifndef TitleObject ..... #endif and you should be good.


    I don't have problem with compilation. All MUIC_Title defines (attributes/methods) exists in mui.h (MorphOS SDK) except macros for object creation, but that is not problem.
    The question is .. is MUIC_Title working under MorphOS MUI?
    Rafael/ARMO
    tdolphin.org     tdolphin.itch.io     GitHub
  • »08.03.24 - 15:05
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    Well it is part of the official SDK so it should work.

    I'm not 100% sure but it seems that it was introduced in the real MUI4 for MorphOS and then reappeared in the somewhat questionable AOS versions. As such I can't say for sure that everything will work 100% the same over all versions.
  • »08.03.24 - 15:16
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    I believe you're missing MUIA_Group_PageMode, TRUE, in the top VGroup.
  • »08.03.24 - 23:44
    Profile Visit Website
  • Caterpillar
    Caterpillar
    armo
    Posts: 40 from 2003/8/1
    From: Krakow - Poland
    Quote:

    jacadcaps wrote:
    I believe you're missing MUIA_Group_PageMode, TRUE, in the top VGroup.


    You are right, that was the problem. Thanks.

    But now I have other question. Is there any way to customize this "class" (colors, borders, etc) by MUI Settings? I don't see any proper option there.
    Rafael/ARMO
    tdolphin.org     tdolphin.itch.io     GitHub
  • »09.03.24 - 15:10
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    I don't believe you can customize it other than by modifying MUI's settings for your app. MUI wasn't designed to allow apps to modify their looks - that's up to the user.
  • »12.03.24 - 16:54
    Profile Visit Website
  • Caterpillar
    Caterpillar
    armo
    Posts: 40 from 2003/8/1
    From: Krakow - Poland
    Quote:

    jacadcaps wrote:
    I don't believe you can customize it other than by modifying MUI's settings for your app. MUI wasn't designed to allow apps to modify their looks - that's up to the user.


    Exactly, that is Why I am asking where in MUI Settings/Preferences are settings for User for this class?
    There are for Groups, Lists, Windows etc ... but I nothing for MUIC_Title.
    Rafael/ARMO
    tdolphin.org     tdolphin.itch.io     GitHub
  • »13.03.24 - 13:49
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    There are no separate settings for it. It's the same stuff as Groups / Tab Groups.
  • »13.03.24 - 14:19
    Profile Visit Website
  • Caterpillar
    Caterpillar
    armo
    Posts: 40 from 2003/8/1
    From: Krakow - Poland
    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

    [ Edited by armo 31.03.2024 - 11:55 ]
    Rafael/ARMO
    tdolphin.org     tdolphin.itch.io     GitHub
  • »31.03.24 - 09:54
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 from 2003/2/25
    From: France
    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).
    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.
  • »03.04.24 - 08:49
    Profile Visit Website
  • Caterpillar
    Caterpillar
    armo
    Posts: 40 from 2003/8/1
    From: Krakow - Poland
    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?

    [ Edited by armo 03.04.2024 - 18:27 ]
    Rafael/ARMO
    tdolphin.org     tdolphin.itch.io     GitHub
  • »03.04.24 - 16:26
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 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 - 07:15
    Profile Visit Website