Blackberry ui app (3) | blackberry Interface Program (3)

Source: Internet
Author: User
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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.