Callback Functions

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Language > Script structure >

Callback Functions


Callback Functions


Callback Functions are a function automatically called by Windows when an event occurs. Examples of window events are: button pressed, mouse moved, window resized, text typed, system events, ... there are hundred of events a callback function can trap.


thinBasic supports two kind of callback functions: Dialog Callback functions and Controls Callback functions.


Dialog Callback Function


A Dialog Callback is a function that is called when an event occurs into a particular window.


Control Callback Function


A Control Callback is a function that is called when a %WM_COMMAND or %WM_NOTIFY event is generated for a particular control.