IAdeUICallbacks::AskMsgText
Revision as of 01:10, 27 October 2015 by Jhuawen (talk | contribs) (Created page with "在计算AskMsgText()函数时调用。通过执行此方法显示用户界面元素(显示一个问题,允许用户输入文本)。")
ADE User Guide > ADE Server Class Reference > IAdeUICallbacks
string IAdeUICallbacks:: AskMsgText([in] string question, [in] string title, [in] long maxText, [in] string defaultText, [in] bool bPassword, [out] bool* bCancel)
在计算AskMsgText()函数时调用。通过执行此方法显示用户界面元素(显示一个问题,允许用户输入文本)。
参 数
- «question»: the question to show the user
- «title»: the caption for the dialog shown
- «maxText»: the maximum number of characters allowed in the response
- «defaultText»: The default, or initial text to show in the dialog.
- «bPassword»: a Boolean indicating whether this is a password entry. When true, your input should display a block character such as ● in place of the characters being entered.
返回值
如果用户点击Cancel, False ,将«bCancel»设定为True。True将导致当前计算终止。
函数的返回值应该是由用户输入的文本。
示例
另请参考
Comments
Enable comment auto-refresher