Showing changes from revision #4 to #5:
Added | Removed | Changed
Dialog boxes are pre-defined windows used for to informing, inform the user and let getting input from, the user user. make a decision based on the information.
The Wimp does not provide a way of changing pre-defined dialog boxes, boxes. however, However, it is possible to create windows that mimic the look and feel of dialog boxes to achieve the same effect.
There are three distinct ways reasons of for using a dialog box.
# | Type | Description |
---|---|---|
1 | Notification | |
2 | Static | |
3 | Menu Entry |
There are two methods of opening a dialog box:
1 | Use the Wimp_OpenWindow to open a dialog box like a standard window |
2 | Use Wimp_CreateMenu if the dialog box is to be opened via the menu system. This ensures that the dialog box is opened as if it was a menu window. i.e a non-persistent window that will close if the mouse pointer is clicked outside of the dialog box |
Note: If a dialog box is available via the menu system and has a keyboard shortcut assigned, then the dialog should be opened as a menu (option 2 above) as this will ensure that it will be opened in the same manner as it would via the menu system.
Any type of icon can be assigned within a user-defined dialog box, as it is just a standard window.
RISC OS has many guidelines on the appropriate use of dialog boxes. For a complete detailed guide on dialog boxes, please see the RISC OS Style Guide.