home *** CD-ROM | disk | FTP | other *** search
- Index file for the "Poll" library:
-
- Procedures/functions provided:
-
- DEFPROCstartup(taskname$,version%) - This starts up the WIMP. The version
- number (2 or 3) should be stored in version%.
-
- DEFPROCdecode_poll(poll_no%) - This puts the information returned from
- Wimp_Poll in useful variables. poll_no% is the reason code returned from
- Wimp_Poll. The variables are:
- whandle% - the window handle
- x% - the x coordinate
- y% - the y coordinate
- button% - the mouse button pressed
- ihandle% - the icon handle
- windx% - the x coordinate in the window
- windy% - the y coordinate in the windows
- index% - the index into the screen
- key% - the key pressed
- main% - the main menu selection
- subn% - submenu n selection
- size% - the message size
- sender_handle% - the task handle of the sender
- my_ref% - my ref
- your_ref% - your ref
- action_code% - the action code
-
- DEFFNpoll(mask%) - calls Wimp_Poll. It returns with the reason code.
-
- DEFFNpollidle(mask%,time%) - calls Wimp_PollIdle. It returns a null code
- after time% centiseconds.
-
- DEFPROCpoll(mask%) - a complete poll loop. It will exit and close down the
- WIMP when quit%=TRUE.
-
- DEFPROCpollidle(mask%,time%) - a complete idle poll loop. The parameters
- are the same as for FNpollidle. When quit%=TRUE, it will exit and close
- down the WIMP.
-
- DEFPROCclosedown - closes down the WIMP.
-
- DEFPROCrespond - will call your task if the poll loop can't do something.
-
- DEFPROCstandard - is called if you have told the poll loop to do so, so
- opening and closing windows (for example) can be automatic.
-
-
- Procedures needed:
-
- DEFPROCrespond_null - called when a null reason code is sent
- DEFPROCrespond_redraw - called when a redraw code is sent
- DEFPROCrespond_open - called when an open window code is sent
- DEFPROCrespond_close - called when a close window code is sent
- DEFPROCrespond_leave - called when the pointer leaves a window
- DEFPROCrespond_enter - called when the pointer enters a window
- DEFPROCrespond_click - called when a mouse button is clicked
- DEFPROCrespond_drag - called when a drag has ended
- DEFPROCrespond_key - called when a 'special' key is pressed
- DEFPROCrespond_menu - called when a menu item has been selected
- DEFPROCrespond_scroll - called when a scroll request is recieved
- DEFPROCrespond_LoseCaret - called when you lose the caret
- DEFPROCrespond_GainCaret - called when you gain the caret
- DEFPROCrespond_PollWordNonZero - RISC OS 3 only
- DEFPROCrespond_unknown - called if an unknown message is recieved
- DEFPROCrespond_message - called if a message is recieved
-
- All the above are only called if the appropriate part of respond%() is set
- to 1. The values are below:
-
- 0 - null
- 1 - redraw
- 2 - open
- 3 - close
- 4 - leave
- 5 - enter
- 6 - click
- 7 - drag
- 8 - key
- 9 - menu
- 10 - scroll
- 11 - LoseCaret
- 12 - GainCaret
- 13 - PollWordNonZero
- 14-16 - unknown
- 17-19 - message
-
- Please note that the variable 'ver%' needs to contain the version number
- of RISCOS in the computer running in order for the library to take
- advantage of RISC OS 3 extensions.
-