Order of the Butterfly
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 ?