Edit Field - PromptIconHeight Property

Height of the icon in pixels

Member of Edit Field (PRIM_MD.Edit)

Data Type - Integer


The PromptIconHeight property governs the height and width of the PromptIcon and PromptIconImage
If a value is specified, the space available for the image will be resized so that the height and width are as specified.
When zero, the size of the available space is defined by the size of the font.


In this example there are 2 fields.
The first has an IconHeight of zero, allowing the Icon to resize as the font size changes.
The second uses the same font, but the height has been specified
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Height(313) Width(737)
   Define_Com Class(#PRIM_VS.Style) Name(#Style1) FontSize(36)
   Define_Com Class(#PRIM_MD.Edit) Name(#Edit) DisplayPosition(2) Label('Label') Left(16) Parent(#COM_OWNER) TabPosition(2) Top(32) PromptIcon('search') Value('Abcde') PromptIconHeight(0) Width(273) Style(#Style1) Height(105)
   Define_Com Class(#PRIM_MD.Edit) Name(#Edit1) DisplayPosition(1) Label('Label') Left(16) Parent(#COM_OWNER) TabPosition(1) Top(160) PromptIcon('search') PromptIconHeight(48) Value('Abcde') Height(105) Width(273) IconHeight(0) IconImageSizing(FitBoth) IconMarginLeft(0) IconMarginRight(0) PromptIconMarginRight(0) PromptIconMarginLeft(0) PromptIconMarginBottom(0) PromptIconMarginTop(0) IconMarginTop(0) IconMarginBottom(0) Style(#Style1)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020