Formas
Las formas son objetos estáticos que pueden añadirse a los formularios 4D.
Se ofrecen las siguientes formas básicas:
- rectángulos
- líneas
- óvalos
Rectángulo
Un rectángulo estático es un objeto decorativo para los formularios. Los rectángulos se limitan a formas cuadradas.
El diseño de los rectángulos se controla a través de muchas propiedades (color, grosor de línea, patrón, etc.). En concreto, se puede definir la redondez de sus esquinas.
Ejemplo JSON:
"myRectangle": {
"type": "rectangle", //define the type of object
"left": 60, //left position on the form
"top": 160, //top position on the form
"width": 100, //width of the object
"height": 20, //height of the object
"borderRadius": 20 //define the roundness of the corners
}
Propiedades soportadas
Bottom - Class - Corner radius - Dotted Line Type - Fill Color - Height - Horizontal Sizing - Left - Line Color - Line Width - Object Name - Right - Top - Type - Vertical Sizing - Visibility - Width
Línea
Una línea estática es un objeto decorativo para los formularios, trazado entre dos tramas. Las líneas pueden ser horizontales, verticales o de cualquier forma de ángulo.
El diseño de las líneas se controla a través de muchas propiedades (color, grosor de línea, etc.).
propiedad startPoint
La propiedad JSON startPoint
define a partir de qué coordenada dibujar la línea (ver ejemplo).
la propiedad
startPoint
no está expuesta en la lista de propiedades, donde la dirección de dibujo de la línea es visible.
Ejemplos JSON:
"myLine": {
"type": "line",
"left": 20,
"top": 40,
"width": 100,
"height": 80,
"startPoint": "topLeft", //first direction
"strokeDashArray": "6 2" //dashed
}
Result:
"myLine": {
"type": "line",
"left": 20,
"top": 40,
"width": 100,
"height": 80,
"startPoint": "bottomLeft", //2nd direction
"strokeDashArray": "6 2" //dashed
}
Result:
Propiedades soportadas
Bottom - Class - Dotted Line Type - Height - Horizontal Sizing - Left - Line Color - Line Width - Object Name - Right - startPoint - Top - Type - Vertical Sizing - Visibility - Width
Óvalo
Un óvalo estático es un objeto decorativo para los formularios. Los objetos ovalados pueden utilizarse para dibujar formas circulares (cuando las propiedades ancho y alto son iguales).
Ejemplo JSON:
"myOval": {
"type": "oval", //define the type of object
"left": 60, //left position on the form
"top": 160, //top position on the form
"width": 100, //width of the object
"height": 20, //height of the object
"fill": "blue" //define the background color
}
Propiedades soportadas
Bottom - Class - Dotted Line Type - Fill Color - Height - Horizontal Sizing - Left - Line Color - Line Width - Object Name - Right - Top - Type - Vertical Sizing - Visibility - Width