Popup is about to be shown
Member of Popup (PRIM_PPNL)
|Context||*Input||PRIM_OBJT||Reference to the control associated with the popup being shown|
|Left||*Both||Integer||Horizontal position the popup will shown|
|Top||*Both||Integer||Vertical position the popup will shown|
|Width||*Both||Integer||Width of the popup in pixels|
|Height||*Both||Integer||Height of the popup in pixels|
|Transition||*Both||Enumeration||Name of the animation to use when showing the popup|
|Continue||*Both||Boolean||Set to false to stop the popup appearing|
The Prepare event is fired whenever the popup is about to be shown. This provides an opportunity to configure the appearance and position at the time of showing rather than having to control it as the application is used. When used as HintPopup or MenuPopup the popup will appear at the cursor location.
This example show a popup's default position being move down and to the right by 10 pixels.
Evtroutine Handling(#Popup.Prepare) Top(#Top) Left(#Left) #Top #Left += 10 Endroutine
LANSA Version 15, April 2020