KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Corner Radius Property in Text Area and Input Form Objects
PRODUCT: 4D | VERSION: 19 R 7 | PLATFORM: Mac & Win
Published On: May 24, 2023

As of 4D v19 R7, Text Areas and Input Form Objects now support the Corner Radius property. The Corner Radius property determines the corner roundness of the object (in pixels). This is only supported in 4D Projects.

By default the radius is 0 pixels, and you can manipulate this property through design mode or programmatically.
The following objects support the Corner Radius property: Rectangels, Inputs, and Text Areas.


Note:
    • With text areas and inputs - the corner radius property is only available with "none", "solid", or "dotted" border line styles.



Example:



Design mode:




Programmatically:

// Gets corner radius and increases it by 15 pixels
$radius:=OBJECT Get corner radius(*; "Text1")
OBJECT SET CORNER RADIUS(*; "Text1"; $radius+15)