Popup allows a PopupPanel instance to be used instead of the typical right click popup menu
Member of Control (PRIM_CTRL)
Data Type - PRIM_PPNL - Popup panel
The Popup property allows a Popup instance as a context menu, instead of the typical right click PopupMenu. Popup panels provide the developer with complete control over the content and format of the popup. Popups are positioned where the mouse click occurred. The Prepare event on the Popup can be used to change the location.
In this example, a Popup is attached to the main page.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864) Popup(#Popup) Define_Com Class(#PRIM_TBLO) Name(#TableLayout1) Define_Com Class(#PRIM_TBLO.Column) Name(#Column1) Displayposition(1) Parent(#TableLayout1) Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout1) Define_Com Class(#PRIM_TBLO.Item) Name(#Label1Item1) Column(#Column1) Manage(#Label1) Parent(#TableLayout1) Row(#Row1) Define_Com Class(#PRIM_PPNL) Name(#Popup) Closebutton(True) Displayposition(1) Left(55) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Titlebar(True) Top(44) Layoutmanager(#TableLayout1) Define_Com Class(#PRIM_LABL) Name(#Label1) Displayposition(2) Ellipses(Word) Height(90) Left(0) Parent(#Popup) Tabposition(2) Tabstop(False) Top(30) Verticalalignment(Center) Width(280) Alignment(Center) Caption('Popup Window') End_Com
Febuary 18 V14SP2