Application Object
Copyright notice of library.
Construct application object; the name and vendor strings are used as keys into the registry database for this application's settings
Argument | Type | Default | Description |
name | String | Application | |
vendor | String | FoxDefault |
Add a idle processing message to be sent to target object when the system becomes idle, i.e. there are no events to be processed.
Argument | Type | Default | Description |
tgt | FXObject | ||
sel | Int |
Add a file descriptor fd to be watched for activity as determined by mode, where mode is a bitwise OR (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT). A message of type SEL_IO_READ, SEL_IO_WRITE, or SEL_IO_EXCEPT will be sent to the target when the specified activity is detected on the file descriptor.
On Windows, a Win32 event, not a file descriptor, must be specified. The client code for this interface must be platform-dependent. See addSocket below for a portable interface. CAE
Argument | Type | Default | Description |
fd | FXInputHandle | ||
mode | Int | ||
tgt | FXObject | ||
sel | Int |
CAE Add a socket descriptor sd to be watched for activity as determined by mode, where mode is a bitwise OR (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT). A message of type SEL_IO_READ, SEL_IO_WRITE, or SEL_IO_EXCEPT will be sent to the target when the specified activity is detected on the socket descriptor.
This is identical to addInput on Unix. It behaves the same on Windows.
Argument | Type | Default | Description |
sd | SOCKET | ||
mode | Int | ||
tgt | FXObject | ||
sel | Int |
Add timeout message to be sent to target object in ms milliseconds; the timer fires only once after the interval expires.
Argument | Type | Default | Description |
ms | Int | ||
tgt | FXObject | ||
sel | Int |
Initialize application. Parses and removes common command line arguments, reads the registry. Finally, if connect is True, it opens the display.
Argument | Type | Default | Description |
argc | Int | ||
argv | String | ||
connect | Bool | True |
Remove input message and target object for the specified file descriptor and mode, which is a bitwise OR of (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT).
Argument | Type | Default | Description |
fd | FXInputHandle | ||
mode | Int |
CAE Remove input message and target object for the specified socket descriptor and mode, which is a bitwise OR of (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT).
Argument | Type | Default | Description |
sd | SOCKET | ||
mode | Int |
Paint all windows marked for repainting. On return all the applications windows have been painted.
Run the main application event loop until stop() is called, and return the exit code passed as argument to stop().
Reimplemented in AFXApp.
Run an event loop till some flag becomes non-zero.
Reimplemented in AFXApp.
Argument | Type | Default | Description |
condition | Int |
Run event loop while there are events are available in the queue. Returns 1 when all events in the queue have been handled, and 0 when the event loop was terminated due to stop() or stopModal(). Except for the modal window and its children, user input to all windows is blocked; if the modal window is NULL all user input is blocked.
Argument | Type | Default | Description |
window | FXWindow | None |
Change application-wide settings.
Argument | Type | Default | Description |
speed | Int |
Terminate the outermost event loop, and all inner modal loops; All more deeper nested event loops will be terminated with code equal to 0, while the outermost event loop will return code equal to value.
Argument | Type | Default | Description |
value | Int | 0 |
CAE Begin.
On Windows only, a widget's background color is normally obtained from the desktop theme, even if the widget's background color has been set using its setBackColor method. The useWidgetBackColor method allows customizers to override that behavior and have the application use the color set by a widget's setBackColor method instead. It is not necessary to use this method if the Windows Classic theme is used.
Argument | Type | Default | Description |
state | Bool |
Messages applications understand.
ID_QUIT | Terminate the application normally. |
ID_DUMP | Dump the current widget tree. |
File input modes for addInput
INPUT_NONE | Inactive. |
INPUT_READ | Read input fd. |
INPUT_WRITE | Write input fd. |
INPUT_EXCEPT | Except input fd. |
All ways of being modal
MODAL_FOR_NONE | Non modal event loop (dispatch normally). |
MODAL_FOR_WINDOW | Modal dialog (beep if outside of modal dialog). |
MODAL_FOR_POPUP | Modal for popup (always dispatch to popup). |
Default cursors provided by the application
DEF_ARROW_CURSOR | Arrow cursor. |
DEF_RARROW_CURSOR | Reverse arrow cursor. |
DEF_TEXT_CURSOR | Text cursor. |
DEF_HSPLIT_CURSOR | Horizontal split cursor. |
DEF_VSPLIT_CURSOR | Vertical split cursor. |
DEF_XSPLIT_CURSOR | Cross split cursor. |
DEF_SWATCH_CURSOR | Color swatch drag cursor. |
DEF_MOVE_CURSOR | Move cursor. |
DEF_DRAGH_CURSOR | Resize horizontal edge. |
DEF_DRAGV_CURSOR | Resize vertical edge. |
DEF_DRAGTL_CURSOR | Resize upper-leftcorner. |
DEF_DRAGBR_CURSOR | Resize bottom-right corner. |
DEF_DRAGTR_CURSOR | Resize upper-right corner. |
DEF_DRAGBL_CURSOR | Resize bottom-left corner. |
DEF_DNDSTOP_CURSOR | Drag and drop stop. |
DEF_DNDCOPY_CURSOR | Drag and drop copy. |
DEF_DNDMOVE_CURSOR | Drag and drop move. |
DEF_DNDLINK_CURSOR | Drag and drop link. |
DEF_CROSSHAIR_CURSOR | Cross hair cursor. |
DEF_CORNERNE_CURSOR | North-east cursor. |
DEF_CORNERNW_CURSOR | North-west cursor. |
DEF_CORNERSE_CURSOR | South-east cursor. |
DEF_CORNERSW_CURSOR | South-west cursor. |
DEF_ROTATE_CURSOR | Rotate cursor. |