Introduction to PowerBuilder

HomePrevious Lesson: Other Options
Next Lesson: Dividing Menu Items into Logical Groups

Assigning an Icon to the Menu Item

Similar to the icons on a Powerbar/Painterbar, you can assign an icon for each menu option in the ToolbarItemName property. To assign a toolbar icon, either:

PowerBuilder ships several stock pictures and there are also various picture files that are used in the example applications. If you create your own icons, you should ensure that they are 16x16 or 32x32 pixels so that they are displayed properly. PowerBuilder displays the icon you specified in the above steps, as long as the menu is visible. Sometimes you may want to display a different toolbar icon whenever the toolbar icon is down (i.e. user pressed the icon). You can do so by providing a name for the ToolbarItemDownName prompt.

The selection of the icons can be crucial. A user should be able to identify the action an icon represents by the picture displayed on it.
HomePrevious Lesson: Other Options
Next Lesson: Dividing Menu Items into Logical Groups