Blackberry Interface Program 3 dialog box and information box
Dialog Box (Dialog) and information box (Status)
Similarities: the two are subclasses of the interface (Screen). In use, you only need to call its static method (and call it using the class name)
Difference: the Dialog box contains a form with buttons and prompt messages. When you click a button, a value is returned. The value is compared with the constant defined in the Dialog; status is a prompt box without buttons. It will automatically disappear after a specified time.
Example:
1 int response = Dialog. ask (Dialog. D_ OK _CANCEL );
2 if (Dialog. OK = response ){
3 Status. show ("you click OK ");
4}
5 else if (Dialog. CANCEL = response ){
6 Status. show ("you click cancel ");
7}
Similar methods in Dialog include Dialog. ask Dialog. alert Dialog. inform. For details, see the document of the corresponding version of The Eclipse plug-in directory.
Instructions for use: the annoying alert dialog box in Lenovo ie and the tray prompts in windows programs are very clear. Some information that must be known or selected by the user to use the Dialog. Similar to the prompt displayed by qq in the tray, it only allows the user to know whether to select Status when the operation is not required.