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.

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_LEFT
  • ETSC_NT_CLICK_TYPE_MIDDLE
  • ETSC_NT_CLICK_TYPE_RIGHT
  • ETSC_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.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com