eva/3 Application BuilderDeveloping eva/3 ApplicationsWorking with FormsStandard Beans 

SCheckBox

Fig. 136: SCheckBox Icons
Fig. 136: SCheckBox Icons

The SCheckBox allows the user to display and edit true and false values. The values are represented by hooks in the fields. In forms, the SCheckBox will mostly used for answering questions by "yes" or "no".

The SCheckBox gets the entry of the user and puts it in desired table column. Also databases, that do not support true and false values, can work with the SCheckBox. eva/3 Application Builder saves the informations in table columns with number values, accepted by the the database system.

Has the property Enabled the value false, the SCheckBox will be painted grayed. Additionally the SCheckBox is no longer applicable for user input.

When a STableElement has a column which contains true and false values, it can be displayed by a SCheckBox. In the property TableSource, the STableElement with the wanted table column, can be entered. In the property ControlSource the according table column from the STableElement can be selected.

The SCheckBox can be used as data record filter. Therefor the property FilteredTableSource has to be set with the STableElement to be filtered. In the propertyFilteredControlSource the according table column from the STableElement can be selected. The selected table column must have the correct data type.

The property DefaultValue defines the default value of th efield, when creating a new data record. Instead of the SFormattedField, here only true and false but not null values can be entered.

With the Icon properties, images for the several states can be assigned to the SCheckBox. They replace the box that displayes the state. E.g. Icon willl be displayed when the SCheckbox has the value false, SelectedIcon when it has the value true.

Fig. 137: SCheckbox without and with Icons
Fig. 137: SCheckbox without and with Icons