R0 = 16
R1 = Task handle
R2 = Features flags
bit meaning
0 Semi-automatic slabbing if set, automatic otherwise
1 Automatically recreate menus if set
2 Task wants to use font menus if set
3 Automatically compact heap once a second if set
4 'Correct' radio icons if set
5 Semi-automatic help if set, automatic otherwise
6 Use alternative parameters for flag-setting SWIs if set
7 Use R0 of WimpExt_SetIconString[N]
8 Automatically call WimpExt_MoveCaret
9 Unset other icons in ESG when setting icons
10 Automatically call WimpExt_ViewIcon after moving caret
11 Don't allow TAB for moving between writeable icons
12-31 reserved; MUST BE 0
Exit:
R0 = WimpExt version number * 100
R2 ->WimpExt's sprite pool
Must be called prior to using any other WimpExt calls. R0 must be 16 on
entry. This is so that WimpExtension can work out what version the program
thinks it is calling (so I can change the functionality of calls later whilst
still retaining backwards-compatibility). R2 holds features flags, for
specifying certain things at start-up. If bit 1 of R2 is set then if the user
selects a menu option with the ADJUST button then the menu will automatically
be recreated when you next call WimpExt_PrePoll (assuming you used
'WimpExt_CreateMenu' to create the menu, that is). If bit 2 of R2 is set then
you are allowed to call WimpExt_GetFontMenu and WimpExt_DecodeFontMenu - you
are NOT allowed to call them if you do not set bit 2. If bit 4 of R2 is set
then the user won't be able to deselect all of a group of radio icons by
clicking adjust on the selected icon.
|
|
|