4D v12.4Setting object display properties |
||||||||||||
|
4D v12.4
Setting object display properties
|
Option | Result |
Horizontal Sizing: Grow | When the user resizes the width of the window, 4D applies the same percentage to the object’s width |
Horizontal Sizing: Move | When the user resizes the width of the window, 4D moves the object left or right the same amount as the width increase |
Vertical Sizing: Grow | When the user resizes the height of the window, 4D applies the same percentage to the object’s height |
Vertical Sizing: Move | When the user resizes the height of the window, 4D moves the object up or down the same amount as the height change |
The repositioning options enable the object to move in the specified direction to try to remain visible.
When the None option is used, the object remains stationary when the form is resized.
In 4D, the right side and bottom of windows have become “pusher” splitters by default. This means that objects found to the right or below the limits of a window on screen are automatically pushed to the right or toward the bottom if the window is enlarged:
Note: This does not work with windows that have scroll bars.
You can associate the Invisible by Default property with most form objects.
This property, available in the "Display" theme of the Property List, simplifies dynamic interface development. In this context, it is often necessary to hide objects programatically during the On load event of the form then to display certain objects afterwards.
The Invisible by Default property allows inverting this logic by making certain objects invisible by default. The developer can then program their display using the OBJECT SET VISIBLE command depending on the context. For more information about this command, refer to the 4D Language Reference manual.
Note: Do not confuse this property with the Invisible property in pop-up menus, which allows not drawing the object while still leaving it active.
You can set the platform interface on an object-by-object basis, in the "Appearance" theme of the Property List. To do this, you have the following choices:
Note: If the database was converted from an earlier version of 4D, additional platform interface properties are available. For more information about platform interface properties, refer to Form properties.
You can use the Background and Border properties to modify the border lines and graphic appearance of objects.
The Transparent attribute is available in the "Background and Border" theme for objects that can be opaque or transparent: fields, variables, list boxes, buttons, pictures or static text, etc. You can change the object's background to Transparent so that it takes the form’s background color or pattern.
The following examples shows a static picture without and with the Transparent attribute:
You can set the border line style for most objects using the "Background and Border" theme of the Property List or the Border Line Style submenu of the context menu. To do this, you have the following choices available:
The following example compares these styles under Windows with the “System” platform interface:
For more information about the effects of these options on various form objects, refer to Buttons and Check Boxes.
4D lets you specify different widths for lines and objects that have lines such as ovals, grids, and rectangles.
You can specify line widths using either the Line Width menu item of the Object menu or in the Property List:
Choose one of the line widths. The first choice is the hairline, i.e., the thinnest line that can be printed by the printer, followed by 1, 2, 3 or 4 point lines. If you choose Other..., 4D displays a dialog box in which you can specify any line width up to 20 points.
You can apply a fill pattern to any two-dimensional graphic object in the form such as an oval, a rectangle, a line, a grid object, and the enclosed area of a text object.
You can choose the fill pattern using either the Fill menu item in the Object menu or in the Property List.
You can set patterns for the borders of any object in the form that has a border — such as an oval, a rectangle, or a grid object. The border patterns available are the same as the fill patterns. The appearance of the border also depends on the line width you have specified for the border.
You can set the border pattern using either the Border item of the Object menu or the Property List.
4D lets you add colors to objects for display on a color monitor or (if your printer supports color) for color printing. By combining colors and patterns your possibilities are virtually endless.
You can specify different colors for foreground pixels and background pixels. On a color display, the mixing of foreground and background colors allows you to create custom tints and shades.
In the Property List, the background color is called Fill Color and the foreground color is called Line Color. In the case of text objects, the Font Color corresponds to the foreground color.
You can set foreground and background colors using either the Color item in the Object or context menu, or using the Property List.
If you select the Automatic option for foreground and background colors, the colors used will be the colors set in your OS. You can set the Automatic option by selecting Foreground or Background in the Color submenu of the Object menu or in the context menu.
The Property List allows you to use the system color chooser to set a custom color by selecting Other...
You can set text attributes for text objects in the object properties of the "Text" theme of the Property List or using the Font, Style and Color submenus of the Object menu.
You can set the following attributes:
Product: 4D
Theme: Building forms