PopUp Menus

Purpose

Creates a pop-up menu.

Syntax

r = PopUp(entries$, x, y, i)

PopUp entries$, x, y, i, (OUT) r

entries$: string
r, x, y, i: integer

Description

As opposed to Menu Bars, pop-up menus are not permanent, have one main column and can be deployed anywhere within a form - the best example of a pop-up menu is one that is produced when you use the right mouse button to click on a certain object to get further options.

Similar to Menu Bars, pop-up menus can be created either through a GB32 command - in this instance PopUp - or through calling Windows' internal APIs, which has the added advantages of allowing sub-menus to be created and custom ID numbers to be assigned to menu items; unlike Menu Bars, due to its brief existence and the structure of the PopUp command/function, a pop-up menu can not be created by using both methods.

Creating Pop-Up Menus using PopUp Show

Creating Pop-Up Menus using APIs Show

See Also

Menus

{Created by Sjouke Hamstra; Last updated: 17/08/2020 by James Gaite}