Advertising banner:
 
 
 A322
 
81203_43854_21.png 81203_43840_19.png
Buttons

Type            
Definition
Checkbox
Configure your checkbox in FirstClass Designer if you want more than two positions to be displayed.

Has a default Value attribute equal to 0 (off), 1 (on) or 2 (grayed).
Command
You can either set a command in FirstClass Designer to use the button in FCAS, or assign functionality to the Click method of the button.
The Text attribute allows you to control, programmatically, the text displayed on the button.
Radio
Use with actions such as click, to provide additional programmatic direction when the button is pressed by the user. Radio buttons do not have a Value attribute.
To find which radio button is selected, use the Value attribute of the radio group field which contains the radio button field.
Remember to set each radio button field in any radio group to a different value in FirstClass Designer.
Radio group
Contains the RadioButton value which is currently selected from the available buttons in the group. The radio group field has a Value attribute that is the default.
The button values must be set in FirstClass Designer and must be unique in order to function properly.
URL
Preset in FirstClass Designer to open a single URL. An URL button cannot be modified programmatically in FCAS.
81203_42521_14.png        Note
As a workaround, use a command button and the LaunchURL command in the Click method of the button to achieve the same thing.
Date
Has a Value attribute that contains the date entered or displayed in the field as a Date data type. This pertains to any field that contains a date.
Editable text
Has a Text attribute that contains the text entered into the field.
Editable selection list
Has a List attribute that contains the items displayed in the list exactly as they are assigned in FirstClass Designer.
Items are semicolon delineated. An editable selection list has a Text attribute which contains the string of the selected item from the list. To get a numeric response instead of a string, use a static selection list. You can set editable selection lists to noneditable mode with the Editable attribute in FirstClass Designer or programmatically if you don't want the user to be able to enter values that are not in the list.
Expanding list
Has the same attributes as its subfield type as set in FirstClass Designer. If the subfield type is Text, you can use the Text attribute of any subfield.
Expanding list attributes are accessed as an array. For example, lstExpanding(0)="Hello" would set the first attribute of the expanding list to a literal string. You can use the Reset method to clear all field content for the field, and the Index attribute to identify which element in the list has the focus.
File viewer
Contains arbitrary data including binary data.
The file viewer field method displays the data if there is an available viewer, but can also be used to store undisplayable binary data as well. You can use file viewer fields to display picture data from a database, for example, or provide a method for users to upload data to the program. You can use special attributes, such as FileName, FileSize, FileType, FileCreator, and FileFlags to get information about the file currently held in the file viewer field.
Fixed list
Has the attributes of their subfield type as set in FirstClass Designer.
If the subfield type is text, you can use the text attribute of any subfield.
Fixed list attributes are accessed as if the fixed list is an array, so lstFixed(0)="Hello" would set the first attribute of the fixed list to a literal string. You can use the Reset method to clear all field content for the field and the Index attribute to identify which element in the list has the focus. Fixed lists stay whatever size you initially set them, unlike expanding lists, which grow larger as more elements are added.
Graphics
Icon
Provides a Value attribute that contains the icon ID of the icon displayed in the field.
Line
Has no special attributes.
Oval
Has no special attributes.
Picture
Provides a Value attribute equal to the resource ID of the picture.
The picture resource must exist in the settings file or the FirstClass Resource Registry in order to be properly displayed.
Rectangle
Has no special attributes.
Round rectangle
Has no special attributes.
Group box
Has no special attributes.
Guide text
Has a Text attribute that contains the text displayed in the field.
Marquee
Has a Text attribute that contains the text in the marquee.
Number
Has a Value attribute that contains the number entered in the field.
This field type only allows numeric entry; no text is possible.

Progress bar
Has a Value attribute which can be set or retrieved and indicates the progress on the bar.
The range of this value is set in FirstClass Designer and defaults to 0 to 100.

String with icon
Has both a Text attribute that contains the text portion of the field and an Icon attribute that contains the resource ID of the icon associated with the field.
Time period
Has a Value attribute that contains a numeric representation of the period of time displayed in the field.


hirosue Shino Web Site