EtsT_Nt_Click_Callback
Note: Requires OPNET Development Kit
Abstract
Callback: User-defined function that handles mouse clicks in the workspace.
Syntax
EtsT_Nt_Click_Callback (click_type, obj_handle, state_ptr)
| Argument | Type | Description |
|---|---|---|
click_type |
int |
right, left, or double click |
obj_handle |
EtsT_Obj_Handle |
item that was clicked on |
state_ptr |
void * |
arbitrary client state |
Return Type
int
if the value is non-zero, the click was handled, otherwise it was not handled.
Header
ets_api_nt_cback.h
Details
Once registered by Ets_Nt_Click_Callback_Register(), this function will be called every time the user clicks on the workspace. Every type of click is handled. The click type can be:
ETSC_NT_CLICK_TYPE_LEFTETSC_NT_CLICK_TYPE_MIDDLEETSC_NT_CLICK_TYPE_RIGHTETSC_NT_CLICK_TYPE_DOUBLE
This function should return an invalid obj_handle if no action is supposed to occur as the result of the click.