Popup - ShroudStyle Property

Reference to a style to be used as a background when the popup is shown

Member of Popup (PRIM_PPNL)

Data Type - PRIM_VS.Style - Style used to define foreground and background appearance

Details

The ShroudStyle property is the Style that will be applied to the background when the popup is shown.
 
It will be removed when the popup closes.
 
Setting the ShroudStyle property will remove all existing ShroudStyles

Example

In this example, the Signin button in the top right shows a popup for a user ID and Password.
 
Click the button to see the dialog.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864) Layoutmanager(#TableLayout1)
 
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush1)
   Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush1) Color(28:28:28) Opacity(30)
 
   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(#Button1Item1) Alignment(TopRight) Column(#Column1) Manage(#Signin) Parent(#TableLayout1) Row(#Row1) Sizing(None) Margintop(8) Marginright(8)
   Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem1) Column(#Column1) Manage(#PopupSignin) Parent(#TableLayout1) Row(#Row1) Sizing(None)
 
   Define_Com Class(#PRIM_PHBN) Name(#Signin) Caption('Signin') Displayposition(1) Left(776) Parent(#COM_OWNER) Tabposition(1) Top(8)
   Define_Com Class(#PRIM_PPNL) Name(#PopupSignin) Closebutton(True) Left(292) Parent(#COM_OWNER) Titlebar(True) Top(156) Height(145) Autoclose(False) Shroudstyle(#Style1)
   Define_Com Class(#PRIM_PHBN) Name(#OK) Caption('OK') Displayposition(2) Left(192) Parent(#PopupSignin) Tabposition(2) Top(112)
   Define_Com Class(#PRIM_EDIT) Name(#Edit1) Displayposition(3) Left(8) Parent(#PopupSignin) Showselection(False) Showselectionhilight(False) Tabposition(3) Top(40) Width(265) Placeholder('User ID')
   Define_Com Class(#PRIM_EDIT) Name(#Edit2) Displayposition(4) Left(8) Parent(#PopupSignin) Showselection(False) Showselectionhilight(False) Tabposition(4) Top(72) Width(265) Passwordchar('*') Placeholder('Password')
 
   Evtroutine Handling(#Signin.Click)
 
      #PopupSignin.ShowPopup
 
   Endroutine
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2