|
Creating Graphic Push Buttons
By default, the PushButton control displays text on a button. To change the button to be represented by an icon, you need to customize the view in which the field is displayed, via the Forms Editor. If you enter a value in the IconImageID property, the button is displayed as an icon, otherwise, if you leave it blank, it remains as a button with text. You can alter the size of the button, by entering a value in the IconSize property.To Create a Graphic Push Button
3. From the View menu, select Edit View. The Forms Editor opens, allowing you to customize the view or dialog.
4. If the view you want to edit is a panel, you will have to right-click the panel and select Design this panel from the menu options that appear. The panel can then be edited.
5.
6. In the Properties panel, Appearance section, click the box beside IconImageID, and select a pre-defined icon to represent your button. The button automatically resizes to fit the image.
7. Click the box beside IconSize, and enter a value that represents the size of the icon, for example Icon32 creates a 32 pixel x 32 pixel icon.Note: Icons automatically include an 8 pixel padding on all sides of the icon, for example, with Icon32, the total size of the icon is 40 x 40 pixels.
8. When you are finished, click OK. The button appears.
10. Reload the user interface to see the font changes. Click the User interface definition has been updated message that appears on the window or dialog.