Entry
R0 = task handle
R1 -> Wimp_PollIdle block
R2 = Wimp_PollIdle reason code
Exit
R0 = Wimp_PollIdle reason code (possibly altered)
block pointed to by R1 possibly altered
To be called immediately after Wimp_PollIdle. WimpExtension may alter the code returned - eg. if the user clicks in a requester window then the code will be translated before your program gets to see it.
The general structure of your program, therefore, will be :
SYS "Wimp_Initialise",200,&4B534154,"My Program" TO wimpver%,task%
SYS "WimpExt_Initialise",17,task%,%010101,"My Program"
WHILE NOT quit%
SYS "WimpExt_PrePoll",%010100,q%,time% TO mask%,,time%
SYS "Wimp_PollIdle",mask%,q%,time% TO reason%
SYS "WimpExt_Action",task%,q%,reason% TO reason%
...
ENDWHILE
SYS "WimpExt_CloseDown",task%
SYS "Wimp_CloseDown",task%,&4B534154
END
Provided by Kernel
|
|
|