Browsing this Thread:
1 Anonymous Users
|
Re: Zune/MUI DoNotify
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
I've done this:
Child, HGroup, Child, tick1 = MUI_MakeObject(MUIO_Checkmark, NULL), Child, MUI_MakeObject(MUIO_Label,"640x480", 0), End, and then: DoMethod(tick1, MUIM_Notify, MUIA_Selected, TRUE, (IPTR)custom, 3, MUIM_Set, MUIA_Resolution, TRUE); DoMethod(tick1, MUIM_Notify, MUIA_Selected, FALSE,(IPTR)custom, 3, MUIM_Set, MUIA_Resolution, FALSE); I don't know about the group class and what the addtail is supposed to do on your code. My code can be found here:https://trac.aros.org/trac/browser/AROS/trunk/AROS/rom/usb/guiapps/ps3eye/ps3eye.c Only hack in that code is when I change the window size. There's a need to close and reopen the window after the new size is selected. SetAttrs(_win(obj), MUIA_Window_Open, FALSE, MUIA_Window_Open, TRUE, TAG_DONE); Maybe try to close and reopen the window if it doesn't update the window.
Posted on: 2018/2/8 13:43
|
|||
|
||||
|
Re: Zune/MUI DoNotify
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Just a wild guess,
but usually you have to set the Group to "Exchange mode" to add/remove items in runtime. see here: http://www.sasg.com/mui/autodocs/MUI_Group.html#MUIM_Group_InitChange Maybe that the reason it does not work. You could try the Notify events with an other method, like window, MUIM_Window_ToBack, to test if the method calling is working.
Posted on: 2018/2/8 7:28
|
|||
|
||||
|
Zune/MUI DoNotify
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
I thought I understood how DoNotify works but I'm not so sure now. Lets say I have a VGroup ("group") inside a window to which I want to add new Test:
DoMethod(group, MUIM_Add_Tail, sometext); This works fine. :) I thought I could be notified of an event and call a method on a Zune/MUI object... like: DoMethod(button, MUIM_Notify, MUIA_Pressed, FALSE, (IPTR)group, 2, MUIM_Add_Tail, sometext); but this doesn't work at all :( Other examples I've seen simply drop a magic value into the event loop using MUIM_Application_ReturnID and use this in a switch to dispatch to a function call, or alternatively use a callback hook. Both approaches are reasonable but I don't understand the limitations of what is permitted in MUIM_Notify. Can anyone offer any insight here? Cheers!
Posted on: 2018/2/8 5:54
|
|||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.






