HeaderPane
Main
Hide
Share Link
Print

Using SftDate/OCX

SftDate/OCX can be used with most development tools that support ActiveX controls. This section shows how to use the controls with some of the most popular development tools.

SftDate/OCX offers two ActiveX controls in one OCX file: the date field control (SftDate) and the month calendar control (SftCalendar). Both controls are automatically registered in the Windows Registry during installation of SftDate/OCX. Please see Distributing SftDate/OCX for information on how to ship the controls with your application.

Many development tools offer a palette or tool bar of available ActiveX controls. The SftDate/OCX controls may be added to these tool bars automatically, or you may have to take additional steps to make the controls available to a development tool or project. Check your development tool's documentation for detailed information on how to use ActiveX controls.

Once the controls are available, they can be added to forms, dialogs or windows.

By right clicking on a control in design mode, most development tools display a popup menu which allows access to the Property Dialogs provided by SftDate/OCX. The Property Dialogs are used to define all design-time properties of the control, including those of its calendar and its special dates.

Some development tools also display their own property window. This property window normally displays only the properties of the SftDate or SftCalendar object. The SftDateCalendar object, returned by the Calendar property of the month calendar control (the calendar it shows) and by the Calendar property of the date field control (its dropdown calendar), and the special dates it holds are not shown. These can only be modified through the Property Dialogs (the Calendar and Special Dates pages) or at run time. The development tool's property window may provide access to the SftDate/OCX documentation using the F1 key or a similar mechanism.

The Property Dialogs offered by SftDate/OCX display context sensitive help by double-clicking on the description of a property or by right-clicking on any displayed property of the Property Dialogs.


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.