IAdeUICallbacks::AskMsgChoice
Revision as of 01:32, 27 October 2015 by Jhuawen (talk | contribs) (Created page with "在计算AskMsgChoice()函数时调用,")
ADE User Guide > ADE Server Class Reference > IAdeUICallbacks
long IAdeUICallbacks::AskMsgChoice([in] string question, [in] string title, [in] array<string> optionList, [in] long defaultPosition, [in] bool bShowAll, [out] bool * bCancel)
在计算AskMsgChoice()函数时调用,
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值表示最初应该选择All:所有选项。
- «bShowAll»:一个布尔值,说明是否All:所有选择应该显示为一个选项。
返回值
被选择条目的位置(从起始位置为1),或者如果选择All:所有则起始位置为0。
如果用户点击Cancel, False ,将«bCancel»设定为True。True将导致当前计算终止。
示例
另请参考
Comments
Enable comment auto-refresher