Depending on the development environment used, the steps necessary to modify the control properties vary. The properties supported by the controls can be displayed in a variety of ways. See your development environment's documentation for specific instructions.
Usually, development tools allow access to the Property Pages implemented by a control. For example, a development tool may allow you to right-click on the control in design mode. By selecting Properties from the popup menu presented, the properties can be accessed using the Property Pages provided by the control. The property pages are only available at design time. The date field control (SftDate) and the month calendar control (SftCalendar) both offer the following tabs. Additional tabs may be added to the dialog by your development tool.
| Tab | Description |
|---|---|
| Attributes | Defines the main attributes of the control (SftDate or SftCalendar object), grouped in categories. Both controls show the categories Dates (the value, selection mode and limits), Culture (culture, calendar system and right-to-left layout), Appearance (sizing, dark mode, high contrast, image scaling and themes), Behavior, Fonts, Miscellaneous (such as the accessible name and the mouse pointer) and Product (license and version information). The date field control also shows the categories Format (format, custom format, range separator, placeholder text and default text), Editing (empty values, automatic advance, the check box and free-form editing), Dropdown (the contents, alignment and time selection of the dropdown) and Colors, and adds its border, buttons, check box and Clear button to Appearance. |
| Calendar | Defines the attributes of the control's SftDateCalendar object: the calendar of a month calendar control, or the dropdown calendar of a date field control. The categories are Layout (months across and down, first day of the week, days of other months and week numbers), Today and Clear (the Today and Clear buttons and their texts, and the highlighted today), Behavior (allowed and initial views, disabled days of the week, the longest range and the months scrolled), Fonts and Colors. |
| Special Dates | Defines the special dates of the control's calendar (SftDateSpecialDate objects). Each row in the grid represents one special date, with its date, recurrence, bold text, enabled state, tooltip, colors and picture. The Add button adds today's date as a special date that doesn't repeat, the Remove button removes the selected special date. |
| Load/Save | The Load and Save buttons load or save the settings of the currently selected control. This is used to transfer settings between existing controls (of the same type). It is not necessary to save controls that are on a form, as these settings are automatically saved when the form is saved. |
| Options | Defines the defaults of the property dialogs. Switching between small and large property pages does not take effect until the property pages are closed and reopened. Some development tools must be closed and restarted before the change takes effect. Checking for available updates requires an Internet connection. Certain system settings and firewalls may prevent automatic update checking; in that case, use the Updates page to check for available updates. |
| Updates | Click on the "Free Updates..." button to download free product maintenance and updates from our web site. The product contacts our web site and checks whether a newer version is available. If product maintenance is available, it can be downloaded and installed automatically. Internet access is required. |
Each tab and associated page allows a set of properties to be manipulated. All properties are labeled using the property name. Some properties, such as DarkModeActive, HighContrastActive, DPI, License and Version, are shown for information and cannot be changed. Detailed descriptions can be found in the online documentation.
By right-clicking on the property page, help information for a specific property can be accessed.
Most pages offer online help by clicking on the Help button, which displays this topic. This Help button may not be displayed when using certain development environments. Other means may be available to view the product's online documentation.
There are two types of property pages.
The first, simpler type shows a number of properties using categories (such as Dates, Appearance, Colors, etc.). The Attributes and Calendar pages are property lists.
By clicking on a property, the property can be edited. Using the TAB (or SHIFT+TAB) key the next (or previous) property can be edited or simply click on another property.
Double-click on the description of a property to display the complete help information or right-click on the property dialog for a help menu.
The second property page type displays multiple objects, all of the same type. Each item (or line) in the grid represents one object. The Special Dates page is a property grid: each line represents one SftDateSpecialDate object, indexed by its position in the collection, starting at 0. The index is shown at the beginning of the item (a gray button with the index number).
As before, columns can be resized and properties are edited by clicking on them.
Click on a column header to display the complete help information for the selected property or right-click on a specific property for a help menu.
When clicking on a property representing a color value, a combo box is displayed which shows the available system colors as defined in the Windows settings and also the basic colors. The color properties of SftDate/OCX also offer the entry (Default), the default color (colorSftDateDefault), which follows the system colors, dark mode and high contrast. A new color value can be selected from the choices offered or a new color value can be entered. The following syntax is accepted:
| &H00bbggrr& | A hexadecimal number (Basic style) |
| 0x00bbggrr | A hexadecimal number (C/C++ style) |
| decimal | A decimal value, the decimal equivalent of a hexadecimal color value |
| bb = blue component gg = green component rr = red component |
&H00FF0000& Blue
0x0000ff00 Green
The display format of color values can be modified using the Options page.
The Picture property of a special date (a SftPictureObject object) is defined by clicking on the button at the right of its cell on the Special Dates page. This displays the Image Property Settings dialog, which is used to load a GDI+ image, a bitmap, icon or metafile, or to select a built-in image or a color sample.
If a file has been loaded, the image is saved along with the control properties and the file is no longer required.
Image properties display (None), (GDI+ Image), (Picture), (Built-In), (Color Sample) or (Invalid Type), depending on the graphic type loaded.
To clear an image property click on the button at the right of its cell, then click Clear on the resulting dialog.
A Picture property, such as the MouseIcon property of the controls, is defined by clicking on the button at the right of its cell. This displays a dialog that is used to load a picture. The MouseIcon property only allows icons and cursors.
Once a file has been loaded, the image is saved along with the control properties and the file is no longer required.
Picture properties display (None), (Bitmap), (Metafile), (Icon) or (Invalid Type), depending on the graphic type loaded.
To clear a Picture property click on the button at the right of its cell, then click Clear on the resulting dialog, or right-click on the property and select Clear Picture.
A Font property can be defined by clicking on the button at the right of its cell. This displays a dialog that is used to define the attributes of the font.
The fonts of the Calendar page (Font and TitleFont) use the control's font by default. To restore the default font, right-click on the property and select the Reset Font menu entry.