FORM SET
Documentation | Blog | Demos | Support
FORM SET
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Dynamically modifies appearance and behavior attributes of open forms or form fields in the current window.
Syntax #1
Dynamically changes certain attributes of open forms, form fields, or displays.
FORM SET («option») «object»
Parameters
option | Can be [NOT] ABBREVIATE, [NOT] AUTOCLEAR, [NOT] AUTOSKIP, [UN] AVAILABLE, [NOT] BOLD, [NOT] CLICK, [NOT] DOUBLECLICK, EVENT eventName, FILLCOLOR color, FONT fontname, [NOT] GOTFOCUS, GUARDED, [NOT] IMMEDIATELY REQUIRED, [IN]VISIBLE, [NOT] ITALIC, LABEL label, [NOT] LOSTFOCUS, [NOT] LOSTFOCUSMODIFIED, [NOT] MODIFIED, MOUSEPOINTER fileName, NORMAL, PENCOLOR color, POINTSIZE n, PROTECTED, [NOT] REQUIRED, RESET, [NOT] REVERSE, [NOT] RIGHTCLICK, [NOT] SCROLL, SCROLL LINE n, SCROLL MAX n, SCROLL MIN n, SCROLL PAGE n, [NOT] STRIKEOUT, [NOT] SUPPRESS, [NOT] VALIDATE, VERB verbName, VISIBLE, [NOT] UNDERLINE Except for NORMAL and RESET, the above options affect only one attribute. |
object | Can be form The name of an open form or display in the current window whose attributes are to be changed. To specify a particular instance of a form, append the instance number in brackets. formfield The name of a form field whose attributes are to be changed. To specify a particular instance of a form field, append the instance number in brackets. ([exp1 ],[exp2 ],[exp3 ]) Positive integers or expressions that evaluate to positive integers, that identify a particular form or form field whose attributes are to be modified. Exp1 identifies the form number; exp2, the field number; exp3, the instance of the form or form field in the display. At a minimum, either exp1 or exp2 must be specified. |
Syntax #2
Dynamically specifies attributes that are to be applied to form fields that get focus.
FORM SET («option») CURSOR
Parameters
option | Can be [NOT] BOLD, FILLCOLOR color, [IN]VISIBLE, [NOT] ITALIC, NORMAL, PENCOLOR color, [NOT] REVERSE, [NOT] STRIKEOUT, [NOT] SUPPRESS, [NOT] UNDERLINE Except for NORMAL, the above options affect only one attribute. |
CURSOR | The options are dynamically added to a form field when that field acquires focus. When the field loses focus, the previous appearance is restored. The associated options are to be automatically added to the display attributes of each form field that get focus. When focus leaves each form field, the form field’s previous appearance is restored. |
Comments
The attribute NORMAL means that the corresponding objects will be set to an unsuppressed, visible and non reversed condition, regardless the initial state of the objects.
The attribute RESET means that the corresponding objects will be reset to their initial state when the forms were opened.
For Scrollbars, the MIN e MAX values represent the range of acceptable values that the scrollbar can accept (Ex: 1 to 100, 20 to 30, etc). The LINE represents the amount of space the thumb “jumps” when the arrows are clicked (Ex: in a 1 to 100 MIN and MAX, a LINE of 20 means the thumb would “jump” 20% of space). Finally, the PAGE represents the size of thumb, usually a value that represents the percentage one “line” would take.
Example
form set (reset) fAddEmp.EmpNum form set (italic lostfocus) fAddEmp.EmpNum form set (not lostfocus) fAddEmp.EmpNum form set ( lostfocus) fAddEmp.EmpNum form set (bold) cursor % displays the focus field in bold font
The above commands set particular attributes of fields.
form set (reset) fAddEmp[3] form set (italic) (2,,3) form set (not scroll not required lostfocus) fEmps
The above commands set particular attributes of forms.
form set (scroll page 8) fFileDir.UpDnBar form set (scroll max 50) fFileDir.LfRtBar
The above commands set scroll bar attributes.
See Also
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
2 Responses
Submit some examples about the “Form Set Grid” command
Add the command “form set grid” in the documentation and add some examples.