Progress
Language Reference


SUBTYPE Attribute

The subtype of a widget.

Data Type: CHARACTER

Access: Readable/Writeable

Applies To: Combo-box, Fill-in, Menu-item, X-document Object Handle, X-noderef Object Handle

This attribute is read-only for combo boxes, the x-document object handle, and the x-noderef object handle.

For menu items, the value of this attribute is either "NORMAL", "SKIP", or "RULE". "NORMAL" is the default — a menu item that can be chosen, a toggle-box item, or read-only text. (In this case the READ-ONLY and TOGGLE-BOX attributes determine the specific type of the menu item.) "SKIP" specifies a blank line in the menu. "RULE" specifies a visible horizontal line in the menu.

For combo boxes, the value of this attribute is either "SIMPLE", "DROP-DOWN", or "DROP-DOWN-LIST". The DROP-DOWN-LIST subtype is the default. The SIMPLE and DROP-DOWN subtypes apply only to character-field or character-variable combo-box widgets in graphical interfaces only, and only in Windows. If you set the subtype of a combo-box widget to “SIMPLE” or “DROP-DOWN” in a character interface, Progress treats the combo-box widget as having the “DROP-DOWN-LIST” subtype.

For fill-ins, the value of this attribute is either "PROGRESS" or "NATIVE". "PROGRESS" is the default. If set to "PROGRESS", the fill-in widget has the behavior of a standard Progress field in character mode. Otherwise, the field has the behavior of a fill-in that is native to the current graphical environment. The NATIVE option of the VIEW-AS phrase specifies that the field adhere to the native behavior of the current window system or environment.

For the x-document object handle or x-noderef object handle, this attribute returns the name of the object type (character representation of the DOM NodeType), which will be one of the following: ATTRIBUTE, CDATA-SECTION, COMMENT, DOCUMENT, DOCUMENT-FRAGMENT, ELEMENT, ENTITY-REFERENCE, PROCESSING-INSTRUCTION, or TEXT.

You can set this attribute only before the widget is realized.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095