Not all of the icons are displayed on MacOS. In addition, you can set the text of the message, the subordinate explanation, the type of icon shown in the dialog (no icon, Note, Warning, Stop, or Question), and the title. Set to True to show the button.īy default, only the ActionButton is shown, but you can show the others simply by setting their Visible properties to True. This is a little bit more work, but the results are worth it.Ī MessageDialog can have up to three buttons: ActionButton, CancelButton, and AlternateActionButton, which each have these properties: You need to declare a variable as type MessageDialog, instantiate it, set its properties, and handle the result returned, which tells you which button the user pressed. However, since MessageDialog is a class, you cannot accomplish all of this with a one line function call. You can also present subordinate explanatory text below the main message. With the MessageDialog class, you can present up to three buttons and control their text and functionality. By taking advantage of the MessageDialog class you can have more sophisticated dialog boxes than are possible with the MessageBox function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |