Skip to main content
Version: 20 R5

Picture Pop-up Menu

A picture pop-up menu is a pop-up menu that displays a two-dimensional array of pictures. A picture pop-up menu can be used instead of a picture button. The creation of the picture to use with a picture pop-up menu is similar to the creation of a picture for a picture button. The concept is the same as for button grids, except that the graphic is used as a pop-up menu instead of a form object.

Using picture pop-up menus

To create a picture pop-up menu, you need to refer to a picture. The following example allows you to select the interface language by selecting it from a picture pop-up menu. Each language is represented by the corresponding flag:

Programming

You can manage picture pop-up menus using methods. As with button grids, variables associated with picture pop-up menus are set to the value of the selected element in the picture pop-up menu. If no element is selected, the value is 0. Elements are numbered, row by row, from left to right starting with the top row.

Goto page

You can assign the gotoPage standard action to a picture pop-up menu. When that action is selected, 4D will automatically display the page of the form that corresponds to the position of the picture selected in the picture array. Elements are numbered from left to right and top to bottom, beginning with the top left corner.

For example, if the user selects the 3rd element, 4D will display the third page of the current form (if it exists). If you want to manage the effect of a click yourself, select No action.

Supported Properties

Bold - Border Line Style -Bottom - Class - Columns - Height - Help Tip - Horizontal Sizing - Left - Object Name - Pathname - Right - Rows- Standard action - Top - Type - Variable or Expression - Vertical Sizing - Visibility - Width