<< SL_OpenClipboard | Callback-Macro >> |
Top: Documentation Library | Up: SoftLogik App Library API |
Callback-Application
The application callback function is used to process messages sent to
the application. These messages do not rely on a GUI to generate them.
the callback is:
SL_CALLBACK void app_callback(struct AppMsg *);
The callback is passed a pointer to a struct AppMsg. The callback uses
this to process events that have occured in that application. This is a
list of the messages a callback will recieve:
APPMSG_OPENFILE - This is used to tell an app to open a given file. The
file could have been specified when the app was started up or
after the app has been running. The data field is the name of
the file to open.
APPMSG_TIMER - when a timehandle elapses (see StartTimerRequest()).
APPMSG_FILENOTIFY - when a file changes that had a notify set on it via
SL_StartFileNotifyA.
APPMSG_PRINTFILE - This is used to tell an app to print a given file. The
file could have been specified when the app was started up or
after the app has been running. The data field is the name of
the file to open.
APPMSG_QUITREQUEST - This is sent to an app when it is requested to exit
by the system. Note that this is only a request and should be
treated in the same manner as a QUIT macro or the user selecting
a quit menu item.
APPMSG_MENU -
APPMSG_TOOLBAR -
APPMSG_STATUSBAR -
APPMSG_SAVECLIPBOARD -
APPMSG_OPENSETTINGS - This is used to tell the app to open a pref file.
The data is the name of the file to open.
APPMSG_OPENMACROS - This is used to tell the app to open a macro file.
The data is the name of the file to open.
These are proposed message types:
APPMSG_STARTUP - when an app first starts up.
APPMSG_OPENSCREEN - when the app's screen is available.
APPMSG_CLOSESCREEN - when an app's screen is requested to close.
APPMSG_CLIPBOARDCHANGE - when the data in the clipboard changes.
Callback-Application Command Section By Type url:Callback-Application
created:2008-03-01 23:36:35 last updated:2008-03-01 23:36:35
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For Callback-Application | sign in to add a comment |
There are no user contributed comments for this page. |
<< SL_OpenClipboard | Callback-Macro >> |
Top: Documentation Library | Up: SoftLogik App Library API |