HARBOUR MINIGUI LIBRARY
(c) 2002-2008 Roberto Lopez
<harbourminigui@gmail.com>. All rights reserved.
http://harbourminigui.googlepages.com
Controls Index
- @...ACTIVEX / DEFINE ACTIVEX
- @...ANIMATEBOX / DEFINE ANIMATEBOX
- @...CHECKBOX / DEFINE CHECKBOX
- @...CHECKBUTTON / DEFINE CHECKBUTTON
- @...COMBOBOX / DEFINE COMBOBOX
- @...DATEPICKER / DEFINE DATEPICKER
- @...EDITBOX / DEFINE EDITBOX
- @...HYPERLINK / DEFINE HYPERLINK
- @...IPADDRESS / DEFINE IPADDRESS
- @...LISTBOX / DEFINE LISTBOX
- @...MONTHCALENDAR / DEFINE MONTHCALENDAR
- @...PROGRESSBAR / DEFINE PROGRESSBAR
- @...RADIOGROUP / DEFINE RADIOGROUP
- @...RICHEDITBOX / DEFINE RICHEDITBOX
- @...SPINNER / DEFINE SPINNER
- @...TEXTBOX / DEFINE TEXTBOX
Semi-OOP system object.
This.<Property/MethodName>
It provides a reference to the current control/window in event code.
@...ACTIVEX / DEFINE ACTIVEX: Creates
an Activex container control.
@ <nRow>,<nCol> ACTIVEX <ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nWidth>
PROGID <cProgId>
DEFINE ACTIVEX <ControlName>
<PropertyName> <PropertyValue>
END ACTIVEX
- Properties:
- Row
- Col
- Width
- Height
- Object (R)
- Name (R)
- Parent (D)
D: Available at control definition only
R: Read-Only
@...ANIMATEBOX
/ DEFINE ANIMATEBOX: Creates an animatebox control.
@ <nRow> ,<nCol>
ANIMATEBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nJeight>
[ FILE <cFileName> ]
[ AUTOPLAY ]
[ CENTER ]
[ TRANSPARENT ]
[ HELPID <nHelpId> ]
DEFINE ANIMATEBOX <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END ANIMATEBOX
- Properties:
- Enabled
- Visible
- Row
- Col
- Width
- Height
- ToolTip
- Name (R)
- Parent (D)
- File (D)
- AutoPlay (D)
- Center (D)
- Transparent (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Methods:
- Show
- Hide
- Open
- Play
- Seek
- Stop
- Close
- Release
@...BROWSE / DEFINE
BROWSE: Creates a browse control.
@ <nRow> ,<nCol>
BROWSE <ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nHeight>
HEADERS <acHeaders>
WIDTHS <anWidths>
WORKAREA <WorkAreaName>
FIELDS <acFields>
[ VALUE <nValue> ]
[ FONT <cFontname> SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ DYNAMICBACKCOLOR <aDynamicBackColor> ]
[ DYNAMICFORECOLOR <aDynamicBackColor> ]
[ INPUTMASK <acInputMask> ]
[ FORMAT <acFormat> ]
[ INPUTITEMS <aInputItems> ]
[ DISPLAYITEMS <aDisplayItems> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ [ ON DBLCLICK <OnDblClickProcedure> | <bBlock> ] |
[ EDIT [ INPLACE ] ] [ APPEND ]
[ ON HEADCLICK <abBlock> ]
[ WHEN <abBlock> ]
[ VALID <abBlock> ]
[ VALIDMESSAGES <acValidationMessages> ]
[ READONLY <alReadOnlyFields> ]
[ LOCK ]
[ DELETE ]
[ NOLINES ]
[ IMAGE <acImageNames> ]
[ JUSTIFY <anJustifyValue> ]
[ NOVSCROLL ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ HEADERIMAGES <acHeaderImages> ]
DEFINE BROWSE <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END BROWSE
- Properties:
- AllowAppend
- AllowEdit
- AllowDelete
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Header (nColumnIndex)
- HeaderImages (nColumnNumber)
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- InputItems
- DisplayItems
- Name (R)
- Parent (D)
- Widths (D)
- Fields (D)
- WorkArea (D)
- Valid (D)
- ValidMessages (D)
- ReadOnlyFields (D)
- Lock (D)
- NoLines (D)
- Image (D)
- Justify (D)
- VScrollBar (D)
- HelpId (D)
- When (D)
- DynamicBackColor (D)
- InputMask (D)
- Format (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- OnDblClick
- OnHeadClick
- Methods:
- Show
- Hide
- SetFocus
- Refresh
- Release
- Hints:
- Value property selects a record by its number (RecNo())
- Value property returns selected record number (recNo())
- Browse control does not change the active work area
- Browse control does not change the record pointer in any area
(nor change selection when it changes) when SET BROWSESYNC is OFF
(the default)
- You can programatically refresh it using refresh method.
- Variables called <MemVar>.<WorkAreaName>.<FieldName> are created for
validation in browse editing window. You can use it in VALID array.
- Using APPEND clause you can add records to table associated with
WORKAREA clause. The hotkey to add records is Alt+A. Append Clause
Can't Be Used With Fields Not Belonging To Browse WorkArea
- Using DELETE clause allows to mark selected record for deletion
pressing <Del> key
- The leftmost column in a browse control must be left aligned.
- When used in control definition, Header property must be loaded with
a character array containing as elements as control columns.
- SET BROWSESYNC: When is set to ON, BROWSE control will move the
record pointer in its workarea according to user selection or value
property programatic setting.
- Setting 'Value' to reccount()+1 (EOF) will cause that browse windows
get empty (no records will be showed).
- Vscrollbar can't be used with splitbox child browse.
- 'InputItems' property allows to control data input in the control.
This property is an array (one element for each browse column).
each element (if specified) must be a two dimensional array. The
first column in the array must contain the data to be shown to the user.
the second column must contain the data to be stored in the table (ID)
for each text row in the array.
- 'DisplayItems' property allows to control data display in the control.
This property is an array (one element for each browse column).
each element (if specified) must be a two dimensional array.
the first column in the array must contain the text to be shown to the
user. The second column must contain the ID for each array row.
the array will be searched for a corresponding ID in the table to show
the right text in each cell. If no correspondence is found, the cell
will be blank.
- Justify
constants:
BROWSE_JTFY_LEFT
BROWSE_JTFY_RIGHT
BROWSE_JTFY_CENTER
@...BUTTON / DEFINE
BUTTON: Creates a button control.
Text Only Button:
@ <nRow> ,<nCol>
BUTTON <ControlName>
[ OF | PARENT <ParentWindowName> ]
CAPTION <cCaption>
ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock>
[ WIDTH <nWidth> HEIGHT <nHeight> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ FLAT ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ MULTILINE ]
Image Only Button:
@ <nRow> ,<nCol>
BUTTON <ButtonName>
[ OF<ParentWindowName> ]
PICTURE <cPictureName>
ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock>
[ WIDTH <nWidth> HEIGHT <nHeight> ]
[ TOOLTIP <cToolTipText> ]
[ FLAT ]
[ NOTRANSPARENT ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
Text And Image Button (Windows XP or
later):
@ <nRow> ,<nCol>
BUTTON <ButtonName>
[ OF<ParentWindowName> ]
CAPTION <cCaption>
PICTURE <cPictureName> [ TOP | BOTTOM | LEFT | RIGHT ]
ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock>
[ WIDTH <nWidth> HEIGHT <nHeight> ]
[ TOOLTIP <cToolTipText> ]
[ FLAT ]
[ NOTRANSPARENT ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ MULTILINE ]
DEFINE BUTTON <ButtonName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END BUTTON
- Properties:
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Caption
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- Picture
- Name (R)
- Parent (D)
- Flat (D)
- TabStop (D)
- HelpId (D)
- Transparent (D)
- PictAlignment (D)
- MultiLine (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnLostFocus
- OnClick
- Methods:
- Show
- Hide
- SetFocus
- Release
- Note: Transparence in picture buttons requires 256 or less color depth
bitmaps.
@...CHECKBOX / DEFINE
CHECKBOX: Creates a checkbox control.
@ <nRow> ,<nCol>
CHECKBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
CAPTION <cCaption>
[ WIDTH <nWidth>] [ HEIGHT <nHeight> ]
[ VALUE <lValue> ]
[ FIELD <FieldName> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ TRANSPARENT ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
DEFINE CHECKBOX <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END CHECKBOX
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Caption
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- Name (R)
- Field (D)
- Parent (D)
- HelpId (D)
- TabStop (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- Methods:
- Show
- Hide
- SetFocus
- Release
- Refresh
- Save
@...CHECKBUTTON
/ DEFINE CHECKBUTTON: Creates a checkbutton control.
@ <nRow> ,<nCol>
CHECKBUTTON<ControlName>
[ OF | PARENT <ParentWindowName> ]
CAPTION <cCaption>
[ WIDTH <nWidth>] [ HEIGHT <nHeight> ]
[ VALUE <lValue> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
@ <nRow> ,<nCol>
CHECKBUTTON<ControlName>
[ OF<cParentWindowName> ]
PICTURE <cPictureName>
[ WIDTH <nWidth>] [ HEIGHT <nHeight> ]
[ VALUE <lValue> ]
[ TOOLTIP <cToolTipText> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
DEFINE CHECKBUTTON <Controlname>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END CHECKBUTTON
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Caption
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- Picture
- Name (R)
- Parent (D)
- HelpId (D)
- TabStop (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- Methods:
- Show
- Hide
- SetFocus
- Release
- Note: Transparence in picture checkbuttons requires 256 or less color depth
bitmaps.
@...COMBOBOX /
DEFINE COMBOBOX: Creates a combobox control.
@ <nRow> ,<nCol>
COMBOBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ ITEMS <caItems> ]
[ ITEMSOURCE <ItemSourceField1> [ , <ItemSourceField2> ] ]
[ VALUE <nValue> ]
[ VALUESOURCE <ValueSourceField> ]
[ DISPLAYEDIT ]
[ WIDTH <nWodth> ]
[ HEIGHT <nHeight>]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ ON ENTER <OnEnterProcedure> | <bBlock> ]
[ ON DISPLAYCHANGE <OnDisplayChangeProcedure> | <bBlock> ]
[ ON DROPDOWN <OnDropDownProcedure> | <bBlock> ]
[ ON CLOSEUP <OnCloseUpProcedure> | <bBlock> ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ GRIPPERTEXT <cGripperText> ]
[ INVISIBLE ]
[ SORT ]
[ IMAGE <acImageNames> ]
[ DROPPEDWIDTH <nDroppedWidth> ]
DEFINE COMBOBOX <Controlname>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END COMBOBOX
- Properties:
- Value
- Enabled
- Visible
- Item ( nItemIndex )
- ItemCount
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- DisplayValue
- Name (R)
- ItemSource (D)
- Parent (D)
- HelpId (D)
- Sort (D)
- TabStop (D)
- DisplayEdit (D)
- Break (D)
- GripperText (D)
- Image (D)
- DroppedWidth (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- OnDisplayChange
- OnEnter
- OnDropDown
- OnCloseUp
- Methods:
- Show
- Hide
- AddItem ( cItemText )
- DeleteItem ( nItemIndex )
- DeleteAllItems
- SetFocus
- Release
- Hints:
- In a ComboBox the 'Height' clause refers to the total height
(considering extended list height)
- When used in control definition, ITEM property must be a character
array.
- When ITEMSOURCE property is set to a fieldname, 'Value' property
uses the physical record number, as in browse.
- If you set the VALUESOURCE property to a fieldname, its content is
returned instead the physical record number.
- 'DroppedWidth' property is used to set the dropdown list in a
combobox control. 'DroppedWidth' can't be less that ComboBox width.
- OnDropDown Event will be executed when the user attempt to open
dropdown list
- Image Support:
'Image' Property specify a character array containing image file
names or resource names.
When you add an item, must specify the image array index number
(zero based) and the text associated with it.
When adding items at startup you must to use a two dimensional array.
This array must have one row for each combo item and two columns.
The first column must contain the image index and the second the
text for the item.
When using the additem or Item properties you must use a single array
containing two elements. The first, the image index item and the
second, the text for the item.
When you retrieve the item, using the 'item' property, it will
return a two elements array containing the image index and the text
of the item.
When 'Image' and 'ItemSource' properties are used simultaneously,
'ItemSource' must be specified as a list containing two field names.
The first, the image index for the items, the second, the item text.
'Sort' and 'Image' can't be used simultaneously.
@...DATEPICKER
/ DEFINE DATEPICKER: Creates a datepicker control.
@ <nRow> ,<nCol>
DATEPICKER<ControlName>
[ OF | PARENT <cParentWindowName> ]
[ VALUE <dValue> ]
[ FIELD <FieldName> ]
[ WIDTH <nWidth> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ SHOWNONE ]
[ UPDOWN ]
[ RIGHTALIGN ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ ON ENTER <OnEnterProcedure> | <bBlock> ]
[ INVISIBLE ]
[ NOTABSTOP ]
DEFINE DATEPICKER <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END DATEPICKER
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- Name (R)
- Field (D)
- Parent (D)
- ShowNone (D)
- UpDown (D)
- RightAlign (D)
- HelpId (D)
- TabStop (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- Methods:
- Show
- Hide
- SetFocus
- Release
- Save
- Refresh
@...EDITBOX /
DEFINE EDITBOX: Creates an editbox control.
@ <nRow> ,<nCol>
EDITBOX<ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nHeight>
[ FIELD <FieldName> ]
[ VALUE <cValue> ]
[ READONLY ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ MAXLENGTH <nInputLength> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ NOVSCROLL ]
[ NOHSCROLL ]
DEFINE EDITBOX <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END EDITBOX
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- CaretPos
- Name (R)
- Field (D)
- Parent (D)
- ReadOnly
- MaxLength (D)
- HelpId (D)
- Break (D)
- TabStop (D)
- VScrollBar (D)
- HScrollBar (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- Methods:
- Show
- Hide
- SetFocus
- Release
- Refresh
- Save
@...FRAME /
DEFINE FRAME: Creates a frame control.
@ <nRow> ,<nCol>
FRAME<ControlName>
[ OF | PARENT <ParentWindowName> ]
[ CAPTION <cCaption> ]
WIDTH <nWidth>
HEIGHT <nHeight>
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ TRANSPARENT ]
DEFINE FRAME <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END FRAME
- Properties:
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Caption
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- BackColor
- FontColor
- Name (R)
- Parent (D)
D: Available at control definition only
R: Read-Only
- Methods:
- Show
- Hide
- Release
@...GRID / DEFINE
GRID: Creates a grid control.
@ <nRow> ,<nCol>
GRID <ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nHeight>
HEADERS <acHeaders>
WIDTHS <anWidths>
[ ITEMS <acItems> ]
[ VALUE <nValue> ]
[ FONT <cFontname> SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ DYNAMICBACKCOLOR <aDynamicBackColor> ]
[ DYNAMICFORECOLOR <aDynamicBackColor> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ [ ON DBLCLICK <OnDblClickProcedure> | <bBlock> ] |
[ EDIT | ALLOWEDIT ] ]
[ COLUMNCONTROLS {aControlDef1,aControlDef2,...aControlDefN}
[ COLUMNVALID {bValid1,bValid2,...bValidN}
[ COLUMNWHEN {bWhen1,bWhen2,...bWhenN}
[ ON HEADCLICK <abBlock> ]
[ VIRTUAL ]
[ ITEMCOUNT <nItemCount> ]
[ ON QUERYDATA <OnQueryDataProcedure> | <bBlock> ]
[ MULTISELECT ]
[ NOLINES ]
[ NOHEADERS ]
[ IMAGE <acImageNames> ]
[ JUSTIFY <anJustifyValue> ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ HEADERIMAGES <acHeaderImages> ]
DEFINE GRID <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END GRID
- Hints:
- If MULTISELECT clause is used VALUE must be a numeric array, containing the
index position of selected items.
- If EDIT clause is used, by doubleclicking an item, will open an editing
window allowing to change the item content.
- EDIT and MULTISELECT clauses can't be used simultaneously.
- Properties:
- ColumnWhen
- DynamicBackColor
- DynamicForeColor
- Cell ( nRow , nCol )
- Value
- Enabled
- Visible
- Item ( nItemIndex )
- ItemCount
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- Header (nColumnNumber)
- HeaderImages (nColumnNumber)
- Name (R)
- Virtual (D)
- Parent (D)
- Widths (D)
- MultiSelect (D)
- NoLines (D)
- Image (D)
- Justify (D)
- HelpId (D)
- Break (D)
- AllowEdit (D)
- ColumnControls (D)
- ColumnValid (D)
- ShowHeaders (D)
D: Available at control definition only
R: Read-Only
- Properties
Available For OnQueryData Procedure:
- This.QueryData
- This.QueryRowIndex
- This.QueryColIndex
- Properties
Available For OnDblClick Procedure:
- This.CellRowIndex
- This.CellColIndex
- This.CellRow
- This.CellCol
- This.CellWidth
- This.CellHeight
- Note: These properties are not available when OnDblClick procedure
is fired by <Enter> key pressing.
- Properties
Available For DynamicBackColor / DynamicForeColor Processing:
- This.CellRowIndex
- This.CellColIndex
- This.CellValue
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- OnDblClick
- OnHeadClick
- OnQueryData
- Methods:
- Show
- Hide
- AddItem ( acItemText )
- DeleteItem ( nItemIndex )
- DeleteAllItems
- SetFocus
- Release
- AddColumn ( [ nColIndex ] , [ cCaption ] , [ nWidth ] , [ nJustify ] )
- DeleteColumn ( nColIndex )
- Hints:
- The leftmost column in a grid control must be left aligned.
- When used in control definition, Header property must be loaded with a
character array containing as elements as control columns.
- When AddColumn / DeleteColumn methods are used, all items in grid (if any)
will be lost.
- Control
Definition Array:
TEXTBOX
{ cControlType , cDataType , cInputMask , cFormat }
cControlType = 'TEXTBOX' (Required)
cDataType = 'CHARACTER' , 'NUMERIC' , 'DATE' (Required)
cInputMask = cInputMask (Optional)
cFormat = cFormat (Optional)
DATEPICKER
{ cControlType , cControlStyle }
cControlType = 'DATEPICKER' (Required)
cControlStyle = 'DROPDOWN' , 'UPDOWN' (Required)
COMBOBOX
{ cControlType , acItems }
cControlType 'COMBOBOX' (Required)
acItems (Required)
SPINNER
{ cControlType , nRangeMin , nRangeMax }
cControlType 'SPINNER' (Required)
nRangeMin (Required)
nRangeMax (Required)
CHECKBOX
{ cControlType , cCheckedLabel , cUnCheckedLabel }
cControlType 'CHECKBOX' (Required)
cCheckedLabel (Required)
cUnCheckedLabel (Required)
Data type for each column will depend control specified.
NUMERIC TEXTBOX : NUMERIC
DATE TEXTBOX : DATE
CHARACTER TEXTBOX : CHARACTER
SPINNER : NUMERIC
COMBOBOX : NUMERIC
CHECKBOX : LOGICAL
Sample:
@ 10,10 GRID Grid_1 ;
WIDTH 620 ;
HEIGHT 330 ;
HEADERS {'Column 1','Column 2','Column 3','Column 4',;
'Column 5'} ;
WIDTHS {140,140,140,140,140} ;
ITEMS aRows ;
EDIT ;
COLUMNCONTROLS { {'TEXTBOX','NUMERIC','$ 999,999.99'},;
{'DATEPICKER','DROPDOWN'} ,;
{'COMBOBOX',{'One','Two','Three'}} , ;
{ 'SPINNER' , 1 , 20 } , ;
{ 'CHECKBOX' , 'Yes' , 'No' } }
- Justify
constants:
- GRID_JTFY_LEFT
- GRID_JTFY_RIGHT
- GRID_JTFY_CENTER
@...HYPERLINK /
DEFINE HYPERLINK: Creates an hyperlink control.
@ <nRow>,<nCol> HYPERLINK <ControlName>
[ OF <ParentWindowName> ]
[ VALUE <cControlValue> ]
[ ADDRESS <cLinkAddress>]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ AUTOSIZE ]
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ]
[ FONTCOLOR <anFontColor> ]
[ RIGHTALIGN ]
[ CENTERALIGN ]
[ HELPID <nHelpId> ]
[ HANDCURSOR ]
[ INVISIBLE ]
DEFINE HYPERLINK <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END HYPERLINK
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- AutoSize
- Address
- Name (R)
- Parent (D)
- BackColor
- FontColor
- HelpId (D)
- RightAlign (D)
- CenterAlign (D)
D: Available at control definition only
R: Read-Only
- Methods:
- Show
- Hide
- Release
@...IMAGE /
DEFINE IMAGE: Creates an image control.
@ <nRow> ,<nCol>
IMAGE <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock> ]
PICTURE <cPictureName>
WIDTH <nWidth>
HEIGHT <nHeight>
[ STRETCH ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
DEFINE IMAGE <Controlname>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END IMAGE
- Properties:
- Enabled
- Visible
- Picture
- Row
- Col
- Width
- Height
- Name (R)
- Parent (D)
- HelpId (D)
- Stretch (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnClick
- Methods:
- Show
- Hide
- Release
@...IPADDRESS /
DEFINE IPADDRESS: Creates an ipaddress control.
@ <nRow> ,<nCol>
IPADDRESS <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ HEIGHT <nHeight> ]
[ WIDTH <nWidth> ]
[ VALUE <anValue> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON LOSTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
DEFINE IPADDRESS
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END IPADDRESS
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- Name (R)
- HelpId (D)
- TabStop (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnChange
- OnGotFocus
- OnLostFocus
- Methods:
- Show
- Hide
- Release
@...LABEL /
DEFINE LABEL: Creates a label control.
@ <nRow> ,<nCol>
LABEL<ControlName>
[ OF | PARENT <ParentWindowName> ]
VALUE <cValue>
[ ACTION | ONCLICK |
ON CLICK <ActionProcedureName> | <bBlock> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ AUTOSIZE ]
[ FONT <cFontname> SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ]
[ FONTCOLOR <anFontColor>]
[ TRANSPARENT ]
[ RIGHTALIGN | CENTERALIGN ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
DEFINE LABEL
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END LABEL
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- AutoSize
- Name (R)
- Parent (D)
- BackColor
- FontColor
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnClick
- Methods:
- Show
- Hide
- Release
@...LISTBOX /
DEFINE LISTBOX: Creates a listbox control.
@ <nRow> ,<nCol>
LISTBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nHeight>
[ ITEMS <acItems> ]
[ VALUE <nValue> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedur> | <bBlock> ]
[ ON DBLCLICK <OnDblClickProcedure> | bBlock> ]
[ MULTISELECT ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ SORT ]
DEFINE LISTBOX
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END LISTBOX
- Properties:
- Value
- Enabled
- Visible
- Item ( nItemIndex )
- ItemCount
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- Name (R)
- Parent (D)
- MultiSelect (D)
- HelpId (D)
- Break (D)
- TabStop (D)
- Sort (D)
D: Available at control definition only
R: Read-Only
Events:
- OnGotFocus
- OnChange
- OnLostFocus
- OnDblClick
Methods:
- Show
- Hide
- AddItem ( cItemText )
- DeleteItem ( nItemIndex )
- DeleteAllItems
- SetFocus
- Release
- Hints:
- If MULTISELECT clause is used VALUE must be a numeric array, containing the
index position of selected items.
- When used in control definition, ITEM property must be a character array.
@...MONTHCALENDAR
/ DEFINE MONTHCALENDAR: Creates a MonthCalendar control.
@ <row>,<col>
MONTHCALENDAR <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ VALUE <dValue> ]
[ FONT <cFontName> ]
[ SIZE <nFontsize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cTooltip> ]
[ NOTODAY ]
[ NOTODAYCIRCLE ]
[ WEEKNUMBERS ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
DEFINE MONTHCALENDAR <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END MONTHCALENDAR
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- Name (R)
- Parent (D)
- NoToday (D)
- NoTodayCircle (D)
- WeekNumbers (D)
- NoTabStop (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnChange
- Methods:
- Show
- Hide
- SetFocus
- Refresh
- Release
@...PLAYER /
DEFINE PLAYER: Creates a player control.
@ <nRow> ,<nCol>
PLAYER <ControlName>
[ OF | PARENT <ParentWindowName> ]
WIDTH <nWidth>
HEIGHT <nHeight>
FILE <cFileName>
[ NOAUTOSIZEWINDOW ]
[ NOAUTOSIZEMOVIE ]
[ NOERRORDLG ]
[ NOMENU ]
[ NOOPEN ]
[ NOPLAYBAR ]
[ SHOWALL ]
[ SHOWMODE ]
[ SHOWNAME ]
[ SHOWPOSITION ]
[ HELPID <nHelpId> ]
DEFINE PLAYER <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END PLAYER
- Properties:
- Enabled
- Visible
- Position
- Repeat
- Speed
- Volume
- Zoom
- Row
- Col
- Width
- Height
- Lenght
- Name (R)
- Parent (D)
- File (D)
- NoAutoSizeWindow (D)
- NoAutoSizeMove (D)
- NoErrorDlg (D)
- NoMenu (D)
- NoOpen (D)
- NoPlayBar (D)
- ShowAll (D)
- ShowMode (D)
- ShowName (D)
- ShowPosition (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Methods:
- Show
- Hide
- SetFocus
- Play
- PlayReverse
- Stop
- Pause
- Close
- Release
- Eject
- Open
- OpenDialog
- Resume
@...PROGRESSBAR
/ DEFINE PROGRESSBAR: Creates a progressbar control.
@ <nRow> ,<nCol>
PROGRESSBAR<ControlName>
[ OF | PARENT <ParentWindowName> ]
RANGE <nRangeMin> , <nRangeMax>
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ TOOLTIP <cToolTipText> ]
[ VERTICAL ]
[ SMOOTH ]
[ HELPID <nHelpId> ]
[ BACKCOLOR <aBackColor> ]
[ FORECOLOR <aForeColor> ]
DEFINE PROGRESSBAR
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END PROGRESSBAR
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- RangeMax
- RangeMin
- BackColor
- ForeColor
- Name (R)
- Parent (D)
- Vertical (D)
- Smooth (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Methods:
- Show
- Hide
- Release
- Hints:
- The minimum value in the range can be from 0 to 65,535. Likewise, the
maximum value can be from 0 to 65,535
- SMOOTH, BACKCOLOR & FORECOLOR has no effect when XP-Style is active.
@...RADIOGROUP
/ DEFINE RADIOGROUP: Creates a radiogroup control.
@ <nRow> ,<nCol>
RADIOGROUP <ControlName>
[ OF | PARENT <cParentWindowName> ]
OPTIONS <acOptions>
[ VALUE <nValue> ]
[ WIDTH <nWidth> ]
[ SPACING <nSpacing> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ TRANSPARENT ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ READONLY <alReadOnly> ]
[ HORIZONTAL ]
DEFINE RADIOGROUP <Controlname>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END RADIOGROUP
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- Caption (nItemNumber)
- ReadOnly
- Name (R)
- Parent (D)
- Spacing (D)
- HelpId (D)
- Horizontal (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnChange
- Methods:
- Show
- Hide
- SetFocus
- Release
@...RICHEDITBOX
/ DEFINE RICHEDITBOX: Creates a RichEditBox control.
@ <nRow>,<nCol> RICHEDITBOX <ControlName>
[ OF | PARENT> <ParentWindowName> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ FIELD <Field> ]
[ VALUE <cValue> ]
[ READONLY ]
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <cToolTip> ]
[ BACKCOLOR <aBackColor> ]
[ MAXLENGTH <nMaxLength> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedur> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
DEFINE RICHEDITBOX <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END RICHEDITBOX
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- CaretPos
- Name (R)
- Field (D)
- Parent (D)
- ReadOnly
- MaxLength (D)
- HelpId (D)
- Break (D)
- TabStop (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- Methods:
- Show
- Hide
- SetFocus
- Release
- Save
- Refresh
@...SLIDER /
DEFINE SLIDER: Creates a slider control.
@ <nRow> ,<nCol>
SLIDER <ControlName>
[ OF | PARENT <ParentWindowName> ]
RANGE <nRangeMin> , <nRangeMax>
[ VALUE <nValue> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ TOOLTIP <cToolTipText> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ VERTICAL ]
[ NOTICKS ]
[ BOTH ]
[ TOP ]
[ LEFT ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
DEFINE SLIDER <ControlName>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END SLIDER
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- ToolTip
- RangeMax
- RangeMin
- Name (R)
- Parent (D)
- Vertical (D)
- NoTicks (D)
- Both (D)
- Top (D)
- Left (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnChange
- Methods:
- Show
- Hide
- SetFocus
- Release
- Hints:
- The minimum value in the range can be from 0 to 65,535. Likewise, the
maximum value can be from 0 to 65,535
@...SPINNER /
DEFINE SPINNER: Creates a spinner control.
@ <nRow> ,<nCol>
SPINNER <ControlName>
[ OF | PARENT <ParentWindowName> ]
RANGE <nRangeMin> , <nRangeMax>
[ VALUE <nValue> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ ON GOTFOCUS <OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ WRAP ]
[ READONLY ]
[ INCREMENT <nIncrement> ]
DEFINE SPINNER <Controlname>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END SPINNER
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- RangeMax
- RangeMin
- Name (R)
- Wrap (D)
- ReadOnly (D)
- Increment (D)
- Parent (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- Methods:
- Show
- Hide
- SetFocus
- Release
- Hints:
- The minimum value in the range can be from 0 to 65,535. Likewise, the
maximum value can be from 0 to 65,535
@...TEXTBOX /
DEFINE TEXTBOX: Creates a textbox control.
@ <nRow> ,<nCol>
TEXTBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ HEIGHT <nHeight> ]
[ FIELD <FieldName> ]
[ VALUE <nValue> ]
[ READONLY ]
[ WIDTH <nWidth> ]
[ NUMERIC ] [ INPUTMASK <cMask> ]
[ FORMAT <cFormat> ] | PASSWORD ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ DATE ]
[ MAXLENGTH <nInputLength> ]
[ UPPERCASE | LOWERCASE ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ ON ENTER <OnEnterProcedure> | <bBlock> ]
[ RIGHTALIGN ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
DEFINE TEXTBOX <Controlname>
<PropertyName> <PropertyValue>
<EventName> <EventProcedure> | <bBlock>
END TEXTBOX
- Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- BackColor
- FontColor
- CaretPos
- ReadOnly
- Name (R)
- TabStop (D)
- Field (D)
- Parent (D)
- Numeric (D)
- Date (D)
- InputMask (D)
- Format (D)
- MaxLength (D)
- UpperCase (D)
- LowerCase (D)
- RightAlign (D)
- HelpId (D)
D: Available at control definition only
R: Read-Only
- Events:
- OnGotFocus
- OnChange
- OnLostFocus
- OnEnter
- Methods:
- Show
- Hide
- SetFocus
- Release
- Refresh
- Save
- InputMask String
(Numeric Textbox):
9 Displays digits
$ Displays a dollar sign in place of a leading space
* Displays an asterisk in place of a leading space
. Specifies a decimal point position
, Specifies a comma position
- InputMask String
(Non-Numeric Textbox):
9 Digits
A Alphabetic Characters
! Converts an alphabetic character to uppercase
(All other characters ar included in text in the position indicated by
the mask)
- Format String
(Allowed in Numeric Textbox Only):
C : Displays CR after positive numbers
X : Displays DB after negative numbers
( : Encloses negative numbers in parentheses
E : Displays numbers in British format
- Hints:
- Inputmask and Maxlength clauses can't be used simultaneously.
DEFINE MAIN
MENU: Creates a main menu definition.
DEFINE MAIN MENU [ OF<ParentWindowName> ]
DEFINE POPUP <cPopupCaption> [ NAME ]
MENUITEM <cItemCaption>
ACTION <ActionProvedureName> | <bBlock>
[ NAME <MenuItemName>]
[ IMAGE <cImageName> ]
[ CHECKED ]
...
...
[ SEPARATOR ]
...
...
END POPUP
...
...
END MENU
MenuItem
Properties:
- Name (R)
- Checked
- Enabled
- Image
R: Read-Only
DEFINE CONTEXT
MENU: Creates a context menu definition.
DEFINE CONTEXT MENU [ OF<ParentWindowName> ]
MENUITEM <cItemCaption>
ACTION <ActionProvedureName> | <bBlock>
[ NAME <MenuItemName>]
[ IMAGE <cImageName> ]
[ CHECKED ]
...
...
[ SEPARATOR ]
...
...
END MENU
MenuItem
Properties:
- Name (R)
- Checked
- Enabled
- Image
R: Read-Only
DEFINE DROPDOWN
MENU: Creates a dropdown menu definition.
DEFINE DROPDOWN MENU BUTTON <ToolBarDropDownButtonName>
[ OF <ParentWindowName> ]
MENUITEM <cItemCaption>
ACTION <ActionProvedureName> | <bBlock>
[ NAME <MenuItemName>]
[ IMAGE <cImageName> ]
[ CHECKED ]
...
...
[ SEPARATOR ]
...
...
END MENU
MenuItem
Properties:
- Name (R)
- Checked
- Enabled
- Image
R: Read-Only
DEFINE NOTIFY
MENU: Creates a notify menu definition.
DEFINE NOTIFY MENU [ OF <cParentWindowName> ]
MENUITEM <cItemCaption>
ACTION <ActionProvedureName> | <bBlock>
[ NAME <MenuItemName>]
[ IMAGE <cImageName> ]
[ CHECKED ]
...
...
[ SEPARATOR ]
...
...
END MENU
MenuItem
Properties:
- Name (R)
- Checked
- Enabled
R: Read-Only
DEFINE
SPLITBOX: Creates a splitbox control.
DEFINE SPLITBOX [ OF <ParentWindowName> ] [ BOTTOM ] [ HORIZONTAL ]
... Control / Window Definitions...
END SPLITBOX
Properties:
- Bottom (D)
- Parent (D)
- Horizontal (D)
D: Available at control definition only
- Controls / Windows defined as part of this container can be arranged
by users, using a gripperbar located at control's left side. It can be
used with listbox, grid, editbox, tree, browse, combobox, toolbar and
'SplitChild' windows. You must omit '@ <row>,<col>' in control
definition.
- Since SplitBox is a container, you can specify when refer to
properties or events of its child controls, ie:
Win1.SplitBox.Grid1.Value := 10
DEFINE
STATUSBAR: Creates a StatusBar Control.
DEFINE STATUSBAR
[ OF | PARENT <ParentWindowName> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ TOP ]
STATUSITEM <cItemCaption>
[ WIDTH <nWidth>]
[ ACTION <ActionProvedureName> | <bBlock> ]
[ ICON <cIconName>]
[ FLAT | RAISED ]
[ TOOLTIP <cToolTipText>]
[ DATE
[ WIDTH <nWidth> ]
[ ACTION <ActionProvedureName> | <bBlock> ]
[ TOOLTIP <cToolTipText>] ]
[ CLOCK
[ WIDTH <nWidth> ]
[ ACTION <ActionProvedureName> | <bBlock> ]
[ TOOLTIP <cToolTipText> ] ]
[ KEYBOARD [ WIDTH <nWidth> ]
[ ACTION <ActionProvedureName> | <bBlock> ]
[ TOOLTIP <cToolTipText> ] ]
...
...
END STATUSBAR
StatusBar
Properties:
- Parent (D)
- FontName (D)
- FontSize (D)
- Top (D)
StatusItem
Properties:
- Item (nItemIndex)
- Width (D)
- Icon (D)
- Flat (D)
- ToolTip (D)
- Raised (D)
StatusItem Events:
- Action (D)
- Hints:
- The tooltip for a part will only be displayed if the part has an icon and no
text or if all of the text cannot be displayed inside the part.
DEFINE TAB:
Creates a tab control.
DEFINE TAB<ControlName>
[ OF <ParentWindowName> ]
AT <nRow> ,<nCol>
WIDTH <nWidth>
HEIGHT<nHeight>
[ VALUE <nValue> ]
[ FONT <cFontname> SIZE <nFonSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BUTTONS ]
[ FLAT ]
[ HOTTRACK ]
[ VERTICAL ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
DEFINE PAGE <cPageCaption> [ IMAGE <cImageName> ]
... Control Definitions...
END PAGE
...
END TAB
Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Caption(nPageNumber)
- Fontname
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- Name (R)
- Buttons (D)
- Flat (D)
- HotTrack (D)
- Vertical (D)
D: Available at control definition only
R: Read-Only
Events:
- OnChange
Methods:
- Show
- Hide
- Release
- AddPage ( nPageNumber , cCaption [ , cImageName ] )
- DeletePage ( nPageNumber )
- AddControl ( ControlName , nPagenumber , nRow , nCol )
- Hints:
- VERTICAL style has no effect when XP theme is used.
- Since Tab is a container, you can specify when refer to
properties or events of its child controls, including page
number, ie:
Win1.Tab1(1).Grid1.Value := 10
DEFINE TIMER:
Creates a timer control.
DEFINE TIMER <ControlName>
OF <ParentWindowName>
INTERVAL<nInterval>
ACTION <ActionProcedureName> | <bBlock>
Events:
- Action
Properties:
- Value
- Enabled
- Name (R)
R: Read-Only
Methods:
- Release
DEFINE TREE: Creates
a tree control.
DEFINE TREE <ControlName>
[ OF | PARENT <ParentWindowName> ]
AT <nRow> ,<nCol>
WIDTH <nWidth>
HEIGHT <nHeight>
[ VALUE <nValue> ]
[ FONT <cFontname> SIZE <nFonSize> ]
[ TOOLTIP <cToolTipText> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ ON DBLCLICK <OnDblClickProcedure> | <bBlock> ]
[ BREAK ]
[ NODEIMAGES <aImgNode> [ ITEMIMAGES <aImgItem> ]
[ <noBut: NOROOTBUTTON> ]
[ ITEMIDS ]
[ HELPID <nHelpId> ]
...
...
[ NODE <cNodeCaption> ]
[ IMAGES <aImage> ]
[ ID <nItemId> ]
...
[ TREEITEM <cTreeItemCaption>
[ IMAGES <aImage> ]
[ ID <nItemId> ] ]
...
[ END NODE ]
...
...
END TREE
Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- Item ( nItemIndex | ItemId )
- ItemCount
- FontName
- FontSize
- FontBold
- FontItalic
- FontUnderline
- FontStrikeout
- ToolTip
- Name (R)
- Break (D)
- NodeImages (D)
- ItemImages (D)
- HelpId (D)
- Parent (D)
D: Available at control definition only
R: Read-Only
Events:
- OnGotFocus
- OnChange
- OnLostFocus
- OnDblClick
Methods:
- Show
- Hide
- AddItem ( cItemText , nParentItemIndex | nParentItemId )
- DeleteItem ( nItemIndex | nItemId )
- DeleteAllItems
- Expand ( nItemIndex | nItemId )
- Collapse ( nItemIndex | nItemId )
- SetFocus
- Release
- When ITEMIDS clause is specified, you can assign a numeric ID
(ID clause) to tree items and nodes. That way, all tree properties
and methods will work using these id's instead item position.
DEFINE TOOLBAR:
Creates a toolbar control.
DEFINE TOOLBAR <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ BUTTONSIZE <nWidth> , <nHeight> ]
[ IMAGESIZE <nWidth> , <nHeight> ]
[ STRICTWIDTH ]
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <cTooltipText> ]
[ FLAT ]
[ BOTTOM ]
[ RIGHTTEXT ]
[ GRIPPERTEXT ]
[ BORDER ]
[ BREAK ]
BUTTON <Controlname>
[ CAPTION <cCaption> ]
[ PICTURE <cPictureName> ]
[ ACTION | ON CLICK | ONCLICK <ActionProcedureName> | <bBlock> ]
TOOLTIP <cToolTipText>
[ SEPARATOR ]
[ AUTOSIZE ]
[ DROPDOWN ]
[ WHOLEDROPDOWN ]
[ CHECK ]
[ GROUP ]
...
END TOOLBAR
- ToolBar
Properties:
- Parent (D)
- ButtonSize (D)
- ImageSize (D)
- StrictWidth (D)
- Font (D)
- Size (D)
- Bold (D)
- Italic (D)
- UnderLine (D)
- StrikeOut (D)
- ToolTip (D)
- Flat (D)
- Bottom (D)
- RightText (D)
- GripperText (D)
- Border (D)
- Break (D)
- ToolBar Button
Properties:
- Enabled
- Caption
- Picture (D)
- Separator (D)
- DropDown (D)
- WholeDropDown (D)
- Check (D)
- Group (D)
- ToolTip (D)
- AutoSize (D)
D: Available at control definition only
- ToolBar Button
Events:
- OnClick
- Hints:
- GRIPPERTEXT Property works only for toolbars defined inside splitbox.
- "Action" and "WholeDropDown" clauses can't be used simultaneously
- Since ToolBar is a container, you can specify when refer to
properties or events of its child buttons, ie:
Win1.ToolBar1.Button1.Enabled := .F.