IAdeUICallbacks::AskMsgChoice

Revision as of 01:21, 27 October 2015 by Jhuawen (talk | contribs) (Created page with "= 示例 =")

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»: the question to show the user
  • «title»: the caption for the dialog shown
  • «optionList»: The list of options to display.
  • «defaultPosition»: The position of the option initially selected. A value of 1 means the first option is selected. A value of 0 means the All option should be initially selected.
  • «bShowAll»: a Boolean indicating whether the All selection should be shown as an option.

返回值

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

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

示例

See Also

Comments


You are not allowed to post comments.