Hello,
Seems I'm hitting a hard wall here:
>DoMethod(timerobj,MUIM_Notify,MA_Timer_Seconds,MUIV_EveryTime,obj,2,MM_Clock_Seconds,MUIV_TriggerValue);
This should call MM_Clock_Seconds everytime MA_Timer_Seconds changes.
> WaitIO(data->req);
> CurrentTime(&raw,µs);
> today = raw%86400;
> SetAttrs(obj,MA_Timer_Seconds,today%60,TAG_DONE);
Shouldn't this one trigger the Notify ?
> data->seconds = today%60+30;
> data->minutes = (today%3600)/60;
> data->hours = today/3600;
> data->req->tr_node.io_Command = TR_ADDREQUEST;
> data->req->tr_time.tv_secs = 1;
> data->req->tr_time.tv_micro = 0;
> SendIO((struct IORequest *)data->req);
timerobj's OM_GET:
> case MA_Timer_Seconds:
> *msg->opg_Storage = data->seconds;
> return TRUE;
Class has no OM_SET.
The timer does work (tested by getting MA_Timer_Seconds in every MUIM_Draw
for the clock class, but MM_Clock_Seconds never gets called ....
------------------------------------
Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes.Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MUI/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/MUI/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/