Icon - PaddingLeft Property

Left padding in pixels

Member of Icon (PRIM_MD.Icon)

Data Type - Integer

Details

In conjunction with the PaddingTop, PaddingRight and PaddingBottom properties, PaddingLeft controls the position of the Icon relative to the control bounds.
 
Unlike margins, the padding properties will affect the size of a control when layout manager sizing is content based.

Example

In this example, the three labels are sizing to their content height and flowing down the page.
 
The bottom padding adds 10 pixels to the height of each label.
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Height(313) Width(737) LayoutManager(#Layout1)
 
   Define_Com Class(#PRIM_TBLO) Name(#Layout1)
   Define_Com Class(#PRIM_TBLO.Row) Name(#Layout1Row1) DisplayPosition(1) Parent(#Layout1)
   Define_Com Class(#PRIM_TBLO.Column) Name(#Layout1Column1) DisplayPosition(1) Parent(#Layout1)
   Define_Com Class(#PRIM_TBLO.Item) Name(#Layout1Item1) Column(#Layout1Column1) Flow(Down) Manage(#Label1) Parent(#Layout1) Row(#Layout1Row1) Sizing(ContentHeight) Alignment(TopLeft) MarginLeft(4) MarginTop(4)
   Define_Com Class(#PRIM_TBLO.Item) Name(#Layout1Item2) Column(#Layout1Column1) Flow(Down) Manage(#Label2) Parent(#Layout1) Row(#Layout1Row1) Sizing(ContentHeight) Alignment(TopLeft) MarginLeft(4) MarginTop(4)
   Define_Com Class(#PRIM_TBLO.Item) Name(#Layout1Item3) Column(#Layout1Column1) Flow(Down) Manage(#Label) Parent(#Layout1) Row(#Layout1Row1) Sizing(ContentHeight) Alignment(TopLeft) MarginLeft(4) MarginTop(4)
 
   Define_Com Class(#PRIM_MD.Label) Name(#Label) Caption('Text') CaptionAlignment(CenterLeft) DisplayPosition(3) Icon('label') IconAlignment(CenterLeft) IconThemeDrawStyle('ForegroundMediumAccent') Left(4) Parent(#COM_OWNER) TabPosition(3) TabStop(False) Top(80) Height(34) Width(223) ThemeDrawStyle('LightAccent') PaddingBottom(10)
   Define_Com Class(#PRIM_MD.Label) Name(#Label1) Caption('Text') CaptionAlignment(CenterLeft) DisplayPosition(2) Icon('label') IconAlignment(CenterLeft) IconThemeDrawStyle('ForegroundMediumAccent') Left(4) Parent(#COM_OWNER) TabPosition(2) TabStop(False) Top(42) Height(34) Width(223) ThemeDrawStyle('LightAccent') PaddingBottom(10)
   Define_Com Class(#PRIM_MD.Label) Name(#Label2) Caption('Text') CaptionAlignment(CenterLeft) DisplayPosition(1) Icon('label') IconAlignment(CenterLeft) IconThemeDrawStyle('ForegroundMediumAccent') Left(4) Parent(#COM_OWNER) TabPosition(1) TabStop(False) Top(4) Height(34) Width(223) ThemeDrawStyle('LightAccent') PaddingBottom(10)
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2