IAdeUICallbacks::AskMsgChoice

Revision as of 01:28, 27 October 2015 by Jhuawen (talk | contribs)

ADE User Guide > ADE Server Class Reference > IAdeUICallbacks

Other languages:
English • ‎中文

long IAdeUICallbacks::AskMsgChoice([in] string question, [in] string title, [in] array<string> optionList, [in] long defaultPosition, [in] bool bShowAll, [out] bool * bCancel)

Called when the AskMsgChoice() function is evaluated, and a standard choice (non-combo box) is requested (the «comboBox» parameter to AskMsgChoice is either omitted or specified as false). The AskMsgChoice function might alternately call the IAdeUICallbacks::AskMsgComboBox() function when the «comboBox» parameter is specified as true.

You implement this method to display a user-interface element that displays a question and allows the user to select a single option (or All) among a list of options.

参 数

  • «question»: 显示给用户看的问题
  • «title»:显示的对话窗口的标题
  • «optionList»:要显示的选项列表。
  • «defaultPosition»:最初选择的选项位置。值1表示选择第一个选项。0值表示最初应该选择所有选项。
  • «bShowAll»:一个布尔值,说明是否所有选择应该显示为一个选项。

返回值

The 1-based position of the selected item, or 0 if All is selected.

如果用户点击Cancel, False ,将«bCancel»设定为TrueTrue将导致当前计算终止。

示例

另请参考

Comments


You are not allowed to post comments.