| NOEVENT |
a dummy event. |
| KEYEVENT |
This events indicates key pressing (the keyboard input is going to the active window only). System has some reserved key combination (ALT+X, CTRL+TAB etc), and these aren't possible to testing. These reserved keys are converted to appropriate events (QUITEVENT, LOSTFOCUSEVENT & GETFOCUSEVENT). Used with: Application and Window handlers. |
| MOUSEEVENT |
Internal event. |
| QUITEVENT |
The last event, that is sent only to the application procedure. This event can generated in one of the two ways: by user pressing <ALT+X> or by calling AppDone(). Used with: Application handler only. |
| ACCELEVENT |
This is a very important event that is generated by system when you activate some Controls (Button, EditBox, ..). The member key contains the id of current control. The callback handler of the object [you can assign to each Control your callback that will be called at the right time] is called after this event parsing into your procedure. The test of some controls: Used with: Application and Window handlers.
void WindowHandler(GuiEvent *p) { switch(p->GetType()) { case ACCELEVENT: if (p->GetKey() == button1->GetId()) { some code } } } |
| TERMINATEEVENT |
Last event in the app life. You can delete your stuff after this, the window is deleted now. Used with: Window handlers only. |
| CLOSEEVENT |
CLose the most inner application loop only. |
| MOVEEVENT |
Indicates any movement of the mouse (including button clicks). The members are assigned as follows: If cursor is out of any window, member key is 0, and items x & y contains the position of mouse cursor in screen co-ordination ([0,0] is top left corner). When the cursor is over some window, then event is sent only to the active window. The key member is set to 0 if the window is active, -1 when window with cursor is not active, and if the member key is greater than 0, then value is an id of controls in window. The co-ordinations for movement in case of window are relative to the window workspace (if cursor is at the title of window, then y co-ordination will be negative!). For a good overview of this, look at the events example. Used with: Application and Window handlers. |
| CLICKRIGHTEVENT |
This event is sent when a simple click on mouse's right button is detected. You must use window flag WCLICKABLE to enable this feature. Position reported in the event is in the screen co-ordinates, or relative to windows, according to placement. Used with: Application and Window handlers. |
| CLICKLEFTEVENT |
This event is sent when a simple click on mouse's left button is detected. You must use window flag WCLICKABLE to enable this feature. Position reported in the event is in the screen co-ordinates, or relative to windows, according to placement. Used with: Application and Window handlers. |
| CLICKMIDDLEEVENT |
This event is sent when a simple click on mouse's middle button is detected. You must use window flag WCLICKABLE to enable this feature. Position reported in the event is in the screen co-ordinates, or relative to windows, according to placement. Used with: Application and Window handlers. |
| DRAGLEFTEVENT |
Used with: Application and Window handlers. |
| DRAGRIGHTEVENT |
Used with: Application and Window handlers. |
| GETFOCUSEVENT |
The window has got the input focus. Used with: Window handlers only. |
| LOSTFOCUSEVENT |
The window lost the input focus. Used with: Window handlers only. |
| INITEVENT |
The first event that is sent to the window when a window is created and it is drawn at the screen. It is a right place for drawing controls and other stuff. Used with: Window handlers only. |
| BUTTONHOLDEVENT |
If you hold the mouse button at the Controls PUSHBUTTON a while, system will repeatedly emit this event. See also the SetRepeatDelay() function. Used with: Application and Window handlers. |
| WINDOWRESIZEEVENT |
If the window is resize-able (switch WSIZEABLE), then you can by dragging bottom right corner of windows, resize one. After each size change, this event is generated. You may redraw window at this point (Controls are draws automatically). The current size (of window workspace) is available by calling GetWW() a GetHW(). Used with: Window handlers only. |
| WINDOWMOVEEVENT |
The event is generated when window moves at new position. Used with: Window handlers only. |
| STARTDRAGLEFTEVENT |
If you use switch APP_MAGNIFIER, you can select a rectangle area by the mouse dragging. The members are assigned with [x,y] position of top left corner and [w,h] the size of one. If you want exactly first and end point position of dragging, you must use GetDragVector(). Used with: Application and Window handlers. |
| STARTDRAGRIGHTEVENT |
If you use switch APP_MAGNIFIER, you can select a rectangle area by the mouse dragging. The members are assigned with [x,y] position of top left corner and [w,h] the size of one. If you want exactly first and end point position of dragging, you must use GetDragVector(). Used with: Application and Window handlers. |
| REPAINTEVENT |
The window is repainted. Place your drawing code here. Used with: Window handlers only. |
| NOTIFYEVENT |
Used with: Window handlers only. |
| ICONIZEEVENT |
Used with: Window handlers only. |
| CURSOROUTEVENT |
Used with: Application handler only. |
| DBLCLICKRIGHTEVENT |
This event is sent when a double click on mouse's left button is detected. You must use window flag WCLICKABLE to enable this feature. Position reported in the event is in the screen co-ordinates (app handler), or relative to windows, according to placement. Used with: Application and Window handlers. |
| DBLCLICKLEFTEVENT |
This event is sent when a double click on mouse's right button is detected. You must use window flag WCLICKABLE to enable this feature. Position reported in the event is in the screen co-ordinates (app handler), or relative to windows, according to placement. Used with: Application and Window handlers. |
| DBLCLICKMIDDLEEVENT |
This event is sent when a double click on mouse's middle button is detected. You must use window flag WCLICKABLE to enable this feature. Position reported in the event is in the screen co-ordinates (app handler), or relative to windows, according to placement. Used with: Application and Window handlers. |
| MOUSEWHEELEVENT |
This event is sent when mouse's wheel spin is detected. You must use window flag WCLICKABLE to enable this feature. GetButton() returns -1 or 1 for direcions. Position reported in the event is in the screen co-ordinates (app handler), or relative to windows, according to placement. Used with: Application and Window handlers. |
| TABSWITCHEVENT |
Sent on the TabPage switch. The key member is pointer the name of one. |
| LASTEVENT |
NOTE> this must be at the end - used as terminator. |