3. System Classes : ButtonField Class : MenuToggle Class
 
Share this page                  
MenuToggle Class
MenuToggle Attributes
Attribute
Data Type
Description
Inherited
From
AllBias
smallint
Sets the menu field's bias for all the frame modes (W)
MenuField
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)
MenuField
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
FocusBehavior
smallint
Indicates the behavior of a menu item relative to the current input focus field (RW)
MenuItem
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
HasIndicator
smallint
If TRUE, displays a toggle indicator (check mark) next to the label (RW)
Defined
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
IsBold
smallint
Is TRUE for bold font (RW)
MenuButton
IsItalic
smallint
Is TRUE for italic font (RW)
MenuButton
IsNullable
smallint
Is TRUE if the variable is nullable (RW1)
FieldObject
IsPlain
smallint
Is TRUE if bold and italics are off (RW)
MenuButton
IsReverse
smallint
Is TRUE if reverse is on for a field's background and foreground colors (RW)
MenuField
Name
varchar(32)
Contains the name of the field object (RW1)
FieldObject
OffTextLabel
nvarchar(256)
Specifies the text of the menu item when value is 0 (RW)
Defined
OnTextLabel
nvarchar(256)
Specifies the text of the menu item when value is 1 (RW)
Defined
ParentMenuGroup
MenuGroup
Contains the parent menu for a menu item (RW1)
MenuField
QueryBias
smallint
Specifies the bias setting for the menu item when CurMode is set to FM_QUERY (RW)
MenuField
ReadBias
smallint
Specifies the bias setting for the menu item when CurMode is FM_READ (RW)
MenuField
Script
StringObject
Contains the 4GL script associated with the field (RW)
FieldObject
SpeedKey
integer
Provides a numbered speed key for the menu button (RW)
MenuButton
StatusText
varchar(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)
MenuField
TextLabel
varchar(256)
Specifies the text label for a menu item (RW)
MenuButton
TypeFace
integer
Specifies the typeface for the menu item text (RW)
MenuButton
TypeFaceName
varchar(31)
Specifies the typeface name of any font installed on your system (RW)
MenuButton
TypeSize
smallint
Specifies the point size of the typeface (RW)
MenuButton
UpdateBias
smallint
Specifies the bias setting for the menu item when CurMode is FM_UPDATE (RW)
MenuField
User1Bias
smallint
Specifies the bias setting for the menu item when CurMode is FM_USER1 (RW)
MenuField
User2Bias
smallint
Specifies the bias setting for the menu item when CurMode is FM_USER2 (RW)
MenuField
User3Bias
smallint
Specifies the bias setting for the menu item when CurMode is FM_USER3 (RW)
MenuField
WidgetID
integer
This is unsupported. Represents the menu field object's handle for the highest-level Windows control for the field. (R)
MenuField
 
MenuToggle Methods
Method
Return
Value
Description
Inherited From
Duplicate()
MenuToggle
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
Returns 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 HasDataChanged
MenuField
WhichTableField()
TableField
Determines which table field contains the field that triggered this method
FieldObject