Push Button - MenuPopup Property

Popup Panel to display as a button menu

Member of Push Button (PRIM_PHBN)

Data Type - PRIM_PPNL - Popup panel

Details

The MenuPopup property is a reference to Popup panel shown when the button is clicked.
 
If specified, this will take precedence over the Menu
 
Popup Panels can be reusables parts and can be used to provide a far more complex menu system.

Example

The button on this web page uses a Popup panel rather than a Menu.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(240:240:240)
 
   Define_Com Class(#PRIM_PHBN) Name(#Button1) Displayposition(1) Left(32) Parent(#COM_OWNER) Tabposition(1) Top(24) Menupopup(#Popup1) Width(137) Caption('Click') Height(41)
   Define_Com Class(#PRIM_PPNL) Name(#Popup1) Closebutton(True) Displayposition(2) Left(292) Tabposition(2) Tabstop(False) Top(140) Style(#Style1) Height(177)
   Define_Com Class(#PRIM_LABL) Name(#Label1) Caption('Option 1') Displayposition(2) Ellipses(Word) Height(25) Left(8) Parent(#Popup1) Tabposition(2) Tabstop(False) Top(8) Verticalalignment(Center) Width(120)
   Define_Com Class(#PRIM_LABL) Name(#Label2) Caption('Option 2') Displayposition(3) Ellipses(Word) Height(25) Left(21) Parent(#Popup1) Tabposition(3) Tabstop(False) Top(40) Verticalalignment(Center) Width(120)
   Define_Com Class(#PRIM_LABL) Name(#Label3) Caption('Option 3') Displayposition(4) Ellipses(Word) Height(25) Left(32) Parent(#Popup1) Tabposition(4) Tabstop(False) Top(72) Verticalalignment(Center) Width(120)
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2