- Overview
- How to?
- Customizing the system information windows
- Stop customizing the system information windows
- Tips
- Multilingual dialog boxes
- Creating multilingual dialog boxes
Customizing the system information windows (or dialog boxes)
Not available
Your applications use several system dialog boxes? A specific skin template is used in your project? Why not customize these windows and give them the "appearance" of your application? In WINDEV and WINDEV Mobile, you can easily integrate the following elements into your projects: - "WINDEVMESSAGEBOX" and "WINDEVDIALOGBOX" windows (WINDEV projects).
- "WINDEVMOBILEMESSAGEBOX" and "WINDEVMOBILEDIALOGBOX" (WINDEV Mobile projects).
These windows are system information windows (dialog boxes) that can be customized and used in all your applications. No code is required. When these windows are included in your project: - Warning, Info, YesNo, OKCancel, Confirm and Error automatically open the "WINDEVMESSAGEBOX" or "WINDEVMOBILEMESSAGEBOX" window depending on the IDE used.
- Dialog automatically opens the "WINDEVDIALOGBOX" or "WINDEVMOBILEDIALOGBOX" window depending on the IDE used.
Reminder: By default, the dialog boxes opened are standard dialog boxes with the following characteristics: - gray background.
- icon indicating the type of information displayed.
- standard buttons.
Remark: The use of these windows allows you to display multilingual dialog boxes (images, caption of buttons, ...). By default, these windows support French, English, German, Spanish, Italian, Dutch and Portuguese. For more details, see "Multilingual dialog boxes". Customizing the system information windows To customize the system information windows: - Open the project description window: on the "Project" tab, in the "Project" group, click "Description".
- Display the "Style" tab.
- Check "Customize system windows (Info, YesNo, Confirm, Dialog)" and validate.
An internal component named "WMFAA" is automatically integrated into your project (if necessary). This component contains the "WINDEVMOBILEDIALOGBOX" and "WINDEVMOBILEMESSAGEBOX" windows. - The skin template of your project is applied to these windows.
Stop customizing the system information windows To cancel the customization of the system information windows: - Open the project description window: on the "Project" tab, in the "Project" group, click "Description".
- Display the "Style" tab.
- Uncheck "Customize system windows (Info, YesNo, Confirm, Dialog)" and validate.
- Delete:
the "WINDEVMOBILEMESSAGEBOX" and "WINDEVMOBILEDIALOGBOX" windows from the WMAAF internal component ("Remove and delete from disk" in the context menu of the "Project explorer" pane). If necessary, remove the "WMFAA" internal component as well (if it is empty)..
- If necessary, delete the files corresponding to the "WINDEVxxxMESSAGEBOX" and "WINDEVxxxDIALOGBOX" windows from the project directory.
Tips - Do not modify the code of the "WINDEVxxxMESSAGEBOX" and "WINDEVxxxDIALOGBOX" windows, nor the code of their controls.
- Don't delete any control.
- If you add controls to the "WINDEVxxxMESSAGEBOX" and "WINDEVxxxDIALOGBOX" windows, make sure there is no code associated with those controls.
- Limit changes to the style of windows and their controls, and test all changes made.
Multilingual dialog boxes Creating multilingual dialog boxes To create multilingual dialog boxes: - Customize the system information windows (see the previous paragraph).
- Type the multilingual captions of different buttons in their description window ("Description" in the context menu).
- Select the multilingual images of different Image controls in their description window ("Description" in the context menu).
- Use multilingual character strings (Ctrl + T) in the syntax of Warning, Confirm, Dialog, Error, Info, OKCancel, YesNo.
This page is also available for…
|
|
|
|