EtsT_Nt_Mouse_Coords_Display_Callback
Note: Requires OPNET Development Kit
Abstract
Callback: Used to customize the mouse coordinates display in the status bar.
Syntax
EtsT_Nt_Mouse_Coords_Display_Callback (subnet_handle, position_x, position_y, coords_display_buffer, buffer_len)
| Argument | Type | Description |
|---|---|---|
subnet_handle |
EtsT_Obj_Handle |
Currently displayed subnet. |
position_x |
double |
X position of the mouse, in subnet coordinate units. |
position_y |
double |
Y position of the mouse, in subnet coordinate units. |
coords_display_buffer |
char * |
Memory to hold a string that will be displayed in the mouse coordinates area of the status bar. |
buffer_len |
int |
Size of coords_display_buffer (including terminating null). |
Return Type
void
No return value.
Header
ets_api_nt.h
Details
This function can be used to customize the mouse coordinates display in the status bar. The function should generate a string (max length buffer_len - 1) containing the desired text for the display and place it in coords_display_buffer.
This function is registered by Ets_Nt_Model_Mouse_Coords_Display_Callback_Register().