3. System Classes : ButtonField Class : MenuField Class
 
Share this page                  
MenuField Class
MenuField Attributes
Attribute
Data Type
Description
Inherited
From
AllBias
smallint
Sets the menu field's bias for all the frame modes (W)
Defined
BgColor
integer
Specifies the background color of a field's bounding box (RW)
FieldObject
ClassName
varchar(32)
Gives the name of an object's actual type (as opposed to its declared type) (R)
Object
ClientData
Object
Provides a way to associate data with an object (RW)
Object
ClientText
varchar(2000)
Stores text values; allows information to be assigned to a field at runtime (RW)
FieldObject
ControlField
smallint
Determines if a field manipulates the user interface instead of the underlying data (RW)
FieldObject
CurBias
smallint
Specifies the field's current bias setting (RW)
Defined
DataType
varchar(65)
Specifies the data type of the field's variable (RW1)
FieldObject
DefaultString
varchar(256)
Stores the default value that OpenROAD uses when the DefaultValue attribute is set to DV_STRING (RW1)
FieldObject
DefaultValue
smallint
Specifies the default value of the variable associated with the field (RW1)
FieldObject
EventExec
FrameExec
Specifies the frame (FrameExec) to which this field's events will be queued and processed (RW)
FieldObject
FgColor
integer
Controls the color of the field's foreground (RW)
FieldObject
FullName
varchar(256)
Contains the expanded name of variable (R)
FieldObject
HasDataChanged
smallint
Indicates if any interactive changes were made to the data associated with the field (RW)
FieldObject
InstanceIdentifier
integer
Contains a value that uniquely identifies an instance of an allocated object (R)
Object
InstanceReferences
integer
Contains the current number of references to the object (R)
Object
IsNullable
smallint
Is TRUE if the variable is nullable (RW1)
FieldObject
IsReverse
smallint
Is TRUE if reverse is on for a field's background and foreground colors (RW)
Defined
Name
varchar(32)
Contains the name of the field object (RW1)
FieldObject
ParentMenuGroup
MenuGroup
Contains the parent menu for a menu item (RW1)
Defined
QueryBias
smallint
Specifies the bias setting for the menu item when CurMode is set to FM_QUERY (RW)
Defined
ReadBias
smallint
Specifies the bias setting for the menu item when CurMode is FM_READ (RW)
Defined
Script
StringObject
Contains the 4GL script associated with the field (RW)
FieldObject
StatusText
nvarchar(100)
OpenROAD 6.2: varchar(2000)
Specifies the text string displayed in the status bar of the window of the currently running frame when the menu field is displayed (RW)
Defined
UpdateBias
smallint
Specifies the bias setting for the menu item when CurMode is FM_UPDATE (RW)
Defined
User1Bias
smallint
Specifies the bias setting for the menu item when CurMode is FM_USER1 (RW)
Defined
User2Bias
smallint
Specifies the bias setting for the menu item when CurMode is FM_USER2 (RW)
Defined
User3Bias
smallint
Specifies the bias setting for the menu item when CurMode is FM_USER3 (RW)
Defined
WidgetID
integer
This is unsupported. Represents the menu field object's handle for the highest-level Windows control for the field. (R)
Defined
 
MenuField Methods
Method
Return
Value
Description
Inherited From
Duplicate()
MenuField
Makes a duplicate of the object, placing a reference to the new object in a reference variable
Object
GetAttribute
(
attributename = byref(variable)
{,attributename = byref(variable)})
integer
Gets the values of any number of attributes for the object
Object
GetFieldValue
(value = byref(
variable))
integer
Gets the current value of a field
FieldObject
IsA
(class =
classname)
integer
Is TRUE if the object is of the same class as, or one of the subclasses of, the class specified by classname
Object
IsDescendantOf
(ancestor =
FieldObject)
smallint
Is TRUE if the field object is a descendant at any level of the specified ancestor
FieldObject
SetAttribute
(
attributename = value
{,attributename = value})
integer
Sets any number of attributes for the object
Object
SetFieldValue
(value =
value)
integer
Sets the value of a field
FieldObject
SetToDefault()
none
Sets the menu field to its default value and clears the HasDataChanged attribute
Defined
WhichTableField()
TableField
Determines which table field contains the field that triggered this method
FieldObject