Typically, you define edit styles in the Database painter, because edit styles are properties of the data itself. Once defined in the Database painter, the styles are used by default each time the column is placed in a DataWindow object.
In the Database painter, you can:
Create, modify, and delete named edit styles
The edit styles are stored in the extended attribute system tables. Once you define an edit style, it can be used by any column of the appropriate datatype in the database.
Assign edit styles to columns
These styles are used by default when you place the column in a DataWindow object in the DataWindow painter.
To create a new edit style:
In the Database painter, select Object>Insert>Edit Style from the menu bar.
In the Edit Style dialog box, select the edit style type from the Style drop-down list.
Specify the properties of the edit style and click OK.
For information, see “Defining edit styles”.
You can use the new edit style with any column of the appropriate datatype in the database.
To modify an existing edit style:
In the Database painter, open the Extended Attributes view.
In the Extended Attributes view, open the list of edit styles.
Position the pointer on the Edit style you want to modify, display the pop-up menu, then select Properties.
In the Edit Style dialog box, modify the edit style as desired and click OK.
For information, see “Defining edit styles”.
You can use the modified edit style with any column of the appropriate datatype in the database.
To associate an edit style with a column in the Database painter:
In the Database painter (Objects view), position the pointer on the column, select Properties from the pop-up menu, then select the Edit Style tab in the Properties view.
Select a style for the appropriate datatype from the list in the Style Name box.
PocketBuilder associates the selected edit style with the column in the extended attribute system tables.
To remove an edit style from a column in the Database painter:
In the Database painter (Objects view), position the pointer on the column, select Properties from the pop-up menu, then select the Edit Style tab in the Properties view.
Select (None) from the list in the Style Name box.
The edit style is no longer associated with the column.