A button, which can be clicked and displays an image.
Most important
Methods | None |
Properties | EnabledImage |
Events | OnEvent |
Please read the control class overview Control as well.
Property Checkable As Boolean (ReadWrite)
If it is true, the control appears as checkable button. If you would like to group several buttons as auto-exclusive group, set for all buttons the same group name.
Property CheckableExclusive As Boolean (ReadWrite)
If it is true, the control will only be checked and unchecked by clicking on it regardless of its group.
Implemented since KBasic V1.88
Property Checked As Boolean (ReadWrite)
If it is true, the control is checked.
Property Key As String (ReadWrite)
Holds the information, which key press would raise the event connected to this control, e.g. Ctrl+O. The strings “Ctrl”, “Shift”, “Alt” and “Meta” are recognized.
Example
Shift+L Alt+U Alt+Shift+U Ctrl+Alt+C Copy
Default keys are
HelpContents | Open help contents |
WhatsThis | Activate whats this. |
Open | Open Document. |
Close | Close Document/Tab. |
Save | Save Document. |
New | Create new Document. |
Delete | Delete. |
Cut | Cut. |
Copy | Copy. |
Paste | Paste. |
Undo | Undo. |
Redo | Redo. |
Back | Navigate back. |
Forward | Navigate forward. |
Refresh | Refresh or reload current document. |
ZoomIn | Zoom in. |
ZoomOut | Zoom out. |
Print document. | |
AddTab | Add new tab. |
NextChild | Navigate to next tab or child window. |
PreviousChild | Navigate to previous tab or child window. |
Find | Find in document. |
FindNext | Find next result. |
FindPrevious | Find previous result. |
Replace | Find and replace. |
SelectAll | Select all text. |
Bold | Bold text. |
Italic | Italic text. |
Underline | Underline text. |
MoveToNextChar | Move cursor to next character. |
MoveToPreviousChar | Move cursor to previous character. |
MoveToNextWord | Move cursor to next word. |
MoveToPreviousWord | Move cursor to previous word. |
MoveToNextLine | Move cursor to next line. |
MoveToPreviousLine | Move cursor to previous line. |
MoveToNextPage | Move cursor to next page. |
MoveToPreviousPage | Move cursor to previous page. |
MoveToStartOfLine | Move cursor to start of line. |
MoveToEndOfLine | Move cursor to end of line. |
MoveToStartOfBlock | Move cursor to start of a block. This shortcut is only used on OS X. |
MoveToEndOfBlock | Move cursor to end of block. This shortcut is only used on the OS X. |
MoveToStartOfDocument | Move cursor to start of document. |
MoveToEndOfDocument | Move cursor to end of document. |
SelectNextChar | Extend selection to next character. |
SelectPreviousChar | Extend selection to previous character. |
SelectNextWord | Extend selection to next word. |
SelectPreviousWord | Extend selection to previous word. |
SelectNextLine | Extend selection to next line. |
SelectPreviousLine | Extend selection to previous line. |
SelectNextPage | Extend selection to next page. |
SelectPreviousPage | Extend selection to previous page. |
SelectStartOfLine | Extend selection to start of line. |
SelectEndOfLine | Extend selection to end of line. |
SelectStartOfBlock | Extend selection to the start of a text block. This shortcut is only used on OS X. |
SelectEndOfBlock | Extend selection to the end of a text block. This shortcut is only used on OS X. |
SelectStartOfDocument | Extend selection to start of document. |
SelectEndOfDocument | Extend selection to end of document. |
DeleteStartOfWord | Delete the beginning of a word up to the cursor. |
DeleteEndOfWord | Delete word from the end of the cursor. |
DeleteEndOfLine |
Property EnabledImage As String (ReadWrite)
Contains the path of the image to be displayed. It can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Might be a String containing binary data. See the binary project example for using.
Property DisabledImage As String (ReadWrite)
Contains the path of the image to be displayed. It can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Might be a String containing binary data. See the binary project example for using.
Property EnterImage As String (ReadWrite)
Contains the path of the image to be displayed. It can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Property ExitImage As String (ReadWrite)
Contains the path of the image to be displayed. It can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Property MouseDownImage As String (ReadWrite)
Contains the path of the image to be displayed. It can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Property MouseUpImage As String (ReadWrite)
Contains the path of the image to be displayed. It can be an absolute path to an image file (png, jpg,…) like c:\myfolder\myimage.png or can be an relative path to the current project like myimage.png (which is present in the current project directory). Relative paths are recommended.
Property EnterSound As String (ReadWrite)
Contains the path of the sound to be played. It can be an absolute path to an sound file (wav,…) like c:\myfolder\mysound.wav or can be an relative path to the current project like mysound.wav (which is present in the current project directory). Relative paths are recommended.
Property ExitSound As String (ReadWrite)
Contains the path of the sound to be played. It can be an absolute path to an sound file (wav,…) like c:\myfolder\mysound.wav or can be an relative path to the current project like mysound.wav (which is present in the current project directory). Relative paths are recommended.
Property MouseDownSound As String (ReadWrite)
Contains the path of the sound to be played. It can be an absolute path to an sound file (wav,…) like c:\myfolder\mysound.wav or can be an relative path to the current project like mysound.wav (which is present in the current project directory). Relative paths are recommended.
Property MouseUpSound As String (ReadWrite)
Contains the path of the sound to be played. It can be an absolute path to an sound file (wav,…) like c:\myfolder\mysound.wav or can be an relative path to the current project like mysound.wav (which is present in the current project directory). Relative paths are recommended.
Property CheckedEnabledImage As String (ReadWrite)
Property CheckedDisabledImage As String (ReadWrite)
Property CheckedEnterImage As String (ReadWrite)
Property CheckedExitImage As String (ReadWrite)
Property CheckedMouseDownImage As String (ReadWrite)
Property CheckedMouseUpImage As String(ReadWrite)
Implemented since KBasic V1.8
Property Scale As Boolean (ReadWrite)
Not implemented yet:
AutoRepeat ( bool ) AutoRepeatDelay ( int ) AutoRepeatInterval ( int )
Sub OnEvent()