REALbasic - some pieces 4u
ready to use
TaskDialogs 0.2.5
description:
TaskDialogs - for Windows Vista and Windows 7
- TaskDialog (-> MsgBox if not supported)
- TaskDialogIndirect (-> MessageDialog if not supported)
This example shows how to call the API, and lets you explore the settings. It falls back to MessageBox/MessageDialog, if the OS you're building for doesn't support TaskDialogs.
The provided Classes and Modules allow you to easily take advantage of the TaskDialogs for your windows users.
Examples:
- Dim dlg As New TaskDialogIndirect()
-> set properties (title, text, buttons)
-> dlg.ShowModal
[and it returns the button(s) clicked] - extended MessageDialog: replace your (MessageDialog).ShowModal -> (MessageDialog).ShowAsTaskDialog_Modal
-> and Vista/Win7 users will see the TaskDialog, all others the MessageDialog. - Dim dlg As New TaskDialog()
-> set properties (title, text, MsgBox-type)
-> dlg.Show()
[and it returns the button clicked] - A set of some MsgBoxes often used. Easy to call, returning an appropriate return-value. e.g. 'Yes-No' returns true/false.
The custom MessageBoxes will use a TaskDialog if available, or show the standard MsgBox instead.
back to overview