MUIBuilder
  • Butterfly
    Butterfly
    dekanyz
    Posts: 94 from 2013/2/6
    From: Hungary
    Hi,

    I have a MUIBuilder question:
    I have successfully created a simple application, but failed to get the sources.

    Could anybody explain me, how goes it exactly?
    The MUIBuilder's user manual isn't too verbose about this.

    BR, dekanyz

    [ Edited by dekanyz 05.04.2013 - 12:17 ]
  • »05.04.13 - 09:16
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 523 from 2013/5/29
    Sorry but I have exactly the same problem. Any help please?
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.12.13 - 14:04
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    MUIBuilder .... *shudders* ....

    MainWindow->Code
    CodeWindow->App Code

    Got NONE.c,NONE.h and NONEMain.c

    MUIBuilder .... *shudders* ....

    [ Edited by Kronos 06.12.2013 - 15:25 ]
  • »06.12.13 - 14:24
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 523 from 2013/5/29
    Hi Kronos! Im doing that with my own project and with example ones but nothing happends. Perhaps I have an incomplete install.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.12.13 - 17:11
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....

    Dunno, those files where created in the MUIBuilder directory.

    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....

    And I was useing suffering the 68k-build of MUIBuilder.

    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
    MUIBuilder .... *shudders* ....
  • »06.12.13 - 17:25
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 523 from 2013/5/29
    I look for those files in the selected path in options.
    . Ill try the 68k version and see what happends.

    But hey! Whats the problem with muibuilder?
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.12.13 - 17:58
    Profile
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    *I* got no problems with MUIBuilder cos I think it is like all other Amiga GUI-Builders illdesigned and therefore completly unusable.

    I must admit that I'm no big fan of writing my GUIs by hand neither....
  • »06.12.13 - 18:26
    Profile
  • Just looking around
    Mazze
    Posts: 20 from 2010/11/6
    Quote:

    tolkien schrieb:
    Sorry but I have exactly the same problem. Any help please?



    There is a problem with the MorphOS port:
    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=9515&forum=12#104799

    I'm still waiting for someone sending me a fix.

    [ Editiert durch Mazze 06.12.2013 - 21:03 ]
  • »06.12.13 - 20:00
    Profile Visit Website
  • Just looking around
    Mazze
    Posts: 20 from 2010/11/6
    Quote:

    Kronos schrieb:
    *I* got no problems with MUIBuilder cos I think it is like all other Amiga GUI-Builders illdesigned and therefore completly unusable.

    I must admit that I'm no big fan of writing my GUIs by hand neither....




    You can write your own code generator for MUIBuilder but I doubt it will be easy to write one which supports classes.
  • »06.12.13 - 20:03
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2323 from 2003/2/24
    @Mazze

    Way ahead of you ...... ;)
  • »06.12.13 - 20:07
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 523 from 2013/5/29
    Thanks people. I have replaced muibuilder.library with the 68k version and now all is ok.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.12.13 - 22:47
    Profile
  • Butterfly
    Butterfly
    dekanyz
    Posts: 94 from 2013/2/6
    From: Hungary
    Hi Guys!

    I try to create a MUI app with MUIBuilder. This app needs a bit more data, what easily could insert into MUIBUilder... So I need some way to handle some MUI objects from some functions.

    Partially I could solve this: Created a Hook what is called, but can't ask the state of a cycle.
    MUIBuilder's generated code is this:

    Code:

    ...
    DoMethod(object->CY_BloodType,
    MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, object->Main_Win,
    2, MUIM_CallHook, &bloodTypeModifiedHook);
    ...


    The Hook:

    Code:

    void bloodTypeModified(struct Hook *hook, Object *object)
    {
    ULONG selectedIndex = 0;
    get(object, MUIA_Cycle_Active, &selectedIndex);

    printf("the selected item is: %un", selectedIndex);
    }


    Could someone help, how to get the selected item?

    [ Edited by dekanyz 24.02.2015 - 09:08 ]
  • »24.02.15 - 07:49
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    DoMethod(object>CY_BloodType,MUIM_Notify,MUIA_Cycle_Active,MUIV_EveryTime,
    object>Main_Win,2,XXX,MUIV_TriggerValue);

    XXX = What attribute or methode do you wish to trigger ??
    if attribute: ...3,MUIM_Set,XXX,MUIV_TriggerValue);
    if methode: ...2,XXX,MUIV_TriggerValue);

    Quote:

    dekanyz wrote:
    Hi Guys!

    I try to create a MUI app with MUIBuilder. This app needs a bit more data, what easily could insert into MUIBUilder... So I need some way to handle some MUI objects from some functions.

    Partially I could solve this: Created a Hook what is called, but can't ask the state of a cycle.
    MUIBuilder's generated code is this:

    Code:

    ...
    DoMethod(object->CY_BloodType,
    MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, object->Main_Win,
    2, MUIM_CallHook, &bloodTypeModifiedHook);
    ...


    The Hook:

    Code:

    void bloodTypeModified(struct Hook *hook, Object *object)
    {
    ULONG selectedIndex = 0;
    get(object, MUIA_Cycle_Active, &selectedIndex);

    printf("the selected item is: %un", selectedIndex);
    }


    Could someone help, how to get the selected item?


    [ Edited by pegasos-sigi2 24.02.2015 - 13:11 ]
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »24.02.15 - 11:09
    Profile
  • Butterfly
    Butterfly
    dekanyz
    Posts: 94 from 2013/2/6
    From: Hungary
    If I understand you well, my problem is not this.
    The Hook is called... I just dont know, how to get the Cycle's current value in the Hook.
    The 'DoMethod()' isn't my code. It is generated by MUIBuilder... end seems to work well.

    [ Edited by dekanyz 24.02.2015 - 14:09 ]
  • »24.02.15 - 11:43
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    Quote:

    dekanyz wrote:
    If I understand you well, this is not my problem.
    The Hook is called... I just dont know, how to get the Cycle's current value in the Hook.
    The 'DoMethod()' isn't my code. It is generated by MUIBuilder... end seems to work well.


    The consequence of your Notify :

    int selectedIndex;
    get((object>CY_BloodType, MUIA_Cycle_Active, &selectedIndex);

    [ Edited by pegasos-sigi2 24.02.2015 - 15:09 ]
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »24.02.15 - 13:09
    Profile
  • Butterfly
    Butterfly
    dekanyz
    Posts: 94 from 2013/2/6
    From: Hungary
    I could solve the problem finally. The received object ponter was wrong.
    Thank you for your help!
  • »27.02.15 - 12:50
    Profile