4D v15

OBJECT SET CORNER RADIUS

Home

 
4D v15
OBJECT SET CORNER RADIUS

OBJECT SET CORNER RADIUS 


 

OBJECT SET CORNER RADIUS ( {* ;} object ; radius ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable or a field
object  Form object in Object name (if * is specified) or Variable or field (if * is omitted)
radius  Longint in New radius for the rounded corners (in pixels)

Originally introduced in 4D v14 R4

Theme: Objects (Forms)

The new OBJECT SET CORNER RADIUS command allows you to modify the rounded corner radius for the rounded rectangle object(s) whose name you passed in object. The new radius is defined for the process only; it is not saved in the form.

If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a field or a variable. In this case, you pass a field or variable reference (object field or variable only) instead of a string. 

Note: In current 4D releases, since this command only applies to rounded rectangles (which are static objects), you must always pass the * parameter and use the object name syntax. 

In radius, pass the new radius value in pixels for the object corners. By default, the value is 5 pixels.

Note: This value can also be set at the form level using the Property list (see New corner radius property).

Example  

You have the following rectangles in your form, named respectively "Rect1" and "Rect2":

You can execute the following code to change their radius:

 OBJECT SET CORNER RADIUS(*;"Rect@";20)



See also 

OBJECT Get corner radius

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (standard edition) ( 4D v15)