onCommand (Callback)


onCommand (id, code, hWnd)

This is a callback function used to process command events.

Parameter Description
id The id of the control that is sending the command
code The code describing the command
hWnd The handle of the control that is sending the command

Returns

0

Remarks

This is a callback function. You must supply this function yourself. Register this function with the WinXRegOnCommand function.

Examples

FUNCTION onCommand(id, code, hWnd)

'check the id to discover which control send the command
SELECT CASE id

CASE $$BUTTON1

'code for button 1 here

CASE $$BUTTON2

'code for button 2 here

END SELECT

END FUNCTION

Related Links

WinXRegOnCommand