IMAGEBUTTON
Jump to navigation
Jump to search
![]() |
![]() |
![]() |
![]() |
Description
- An ImageButton is a LINK in boxed form displaying an image.
Syntax
- IMAGEBUTTON #handle, imagePath$, handler - Add an image button to the page using handle, imagePath$, and handler
Hints
- The imagePath$ is the path to the image. This image should be stored in the Run BASIC public folder. When the user clicks on the image-button, the event handler specified is activated. It can be either a sub or a branch label. If the handler is a sub, the handle of the image-button is passed into the sub. If the handler is a branch label, the global variable EventKey$ is set to be the handle of the image-button.
Example
'create an imagebutton with sub event handler imagebutton #doStuff, "\runbutton.png", doStuff print:print 'create an imagebutton with branch label event handler imagebutton #doMore, "\openbutton.png", [doMore] wait sub doStuff handle$ print:print "Handle is ";handle$ end sub [doMore] print:print "Handle is ";EventKey$ wait
Useful Procedures
' Place a useful function or sub using this keyword here