|
|
Line 1: |
Line 1: |
− | {{ScoutPage|cat=HowTo 4.0}}
| + | The Scout documentation has been moved to https://eclipsescout.github.io/. |
− | | + | |
− | This how-to describes how to brand the About dialog that is shown when menu '''? --> Info''' is selected.
| + | |
− | | + | |
− | = Replacing the icon =
| + | |
− | | + | |
− | The standard Info screen provided by the Scout framework is implemented in org.eclipse.scout.rt.client.ui.form.'''ScoutInfoForm'''. | + | |
− | | + | |
− | If you just want to replace the icon being shown on the form (its filename is defined in AbstractIcons.ApplicationLogo) you will need to have a working icon locator for the client (see how-to [http://wiki.eclipse.org/Scout/HowTo/4.0/Add_an_icon#Providing_an_IconProviderService Add_an_icon: 5. Providing_an_IconProviderService]) and provide a file with the base name '''application_logo_large''' in the client's '''resources\icons''' directory.
| + | |
− | | + | |
− | The file type and extension can be PNG, BMP or JPG (so the file would be ''org.eclipse.minicrm.client\resources\icons\application_logo_large.png'').
| + | |
− | | + | |
− | <br>
| + | |
− | | + | |
− | = Customizing the contents<br> =
| + | |
− | | + | |
− | If you want to modify the content or details of the info screen, you will need to extend the '''ScoutInfoForm''' class and override the '''createHtmlBody()''' and '''createHtmlPropertyTableContent()''' methods as needed.<br>
| + | |
− | | + | |
− | Should you want to show more than one image file, you also need to overwrite the '''createHtmlAttachments()''' method as described in the how-to: [http://wiki.eclipse.org/Scout/HowTo/4.0/Display_HTML_content Display_HTML_content].<br>
| + | |
− | | + | |
− | Finally, you will need to modify your client's '''Desktop''' class by changing the '''execAction()''' method of its '''AboutMenu''':
| + | |
− | <pre>@Override
| + | |
− | public void execAction() throws ProcessingException {
| + | |
− | ExtendedScoutInfoForm form = new ExtendedScoutInfoForm();
| + | |
− | form.startModify();
| + | |
− | }
| + | |
− | </pre>
| + | |
Latest revision as of 07:35, 18 March 2024
The Scout documentation has been moved to https://eclipsescout.github.io/.