Salesforce

How Do I Add an Icon to a Menu Entry? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Add an Icon to a Menu Entry? (Magic xpa 4.x)

You can add an icon to any menu entry, whether the menu is being accessed from the pulldown or the context menu structure. The same icon can also be used on the toolbar (see How Do I Add an Icon to the Toolbar?).

You can choose one of the internal Magic xpa icons, or, you can specify a bitmap file to use a customized icon.

Specifying a menu icon

You can add an icon to a menu entry by specifying it in the Menu Properties.

  1. Go to the Menu repository (Shift+F6, or Project->Menus).

  2. Go to the menu item that needs the icon. Press Alt+Enter to access the Menu properties.

  3. Click on the Toolbox tab.

  4. Set Image for: to Menu (if you want the icon only on the menu) or Both (if you also want it on the Toolbar).

  5. To choose an icon from the internal Magic xpa icons, zoom from the Tool number field. Find the icon you want, and press Enter. The icon number will be brought back into the Tool number field, and a picture of the icon you chose will appear at the top of the Toolbox tab.

Now, the icon will appear on the menu entry at runtime.

Alternatively, you can choose a bitmap file for a customized icon, as shown below.

Choosing your own icon

You can also specify your own icon. The icon should be 16x16 pixel bmp.

  1. Proceed as above, but instead of specifying a Tool number, specify a Tool image. You can zoom from the Tool image field to select the file name, but it is best to use a logical name, as shown in our example.

  2. The icon will appear at the top of the Toolbox tab.

Reference
Attachment 
Attachment