(c) 2002-2003 Roberto Lopez roblez@ciudad.com.ar
Building HMG applications:
COMPILE.BAT
The easiest way is to use the 'Compile.Bat' file located at \minigui\batch folder.
Usage:
Compile <MainProgramName> [/d] [/a] [/o] [/z] [/m]
/d: Debugger Support
/a: ADS
Support
/o: ODBC
Support
/z: ZIP
Support
/m: MySQL
Support
You must not include
extension for <MainProgramName>
MPM (Harbour
MiniGUI Project Manager)
MPM is a visual
tool intented to speed up the application building process. It uses MAKE tool
bundled with BCC compiler.
This way, only modified files are recompiled speeding
building process a lot.
MPM is located at: \minigui\utils\mpm
Look at SAMPLE\DEMO.MPM For
configuration details.
Environment settings (Bcc Folder, Harbour Folder, MiniGUI
Folder and Program Editor) are stored in 'mpm.ini' file, located at Windows
folder. This file is created the first time you run MPM and automatically
updated.
There is a command-line version of MPM. It is located at:
\monigui\utils\mpmc. See 'Readme.Txt' file for details
@...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
Related Commands:
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> ]
[ 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 <aOnHeadClickProcedure> | <abBlock>
]
[ VALID <abBlock>
]
[ VALIDMESSAGES <acValidationMessages>
]
[ READONLY <alReadOnlyFields> ]
[ LOCK ]
[ DELETE ]
[ NOLINES ]
[ IMAGE <acImageNames> ]
[ JUSTIFY <anJustifyValue> ]
[ NOVSCROLL ]
[ HELPID <nHelpId> ]
[ BREAK ]
DEFINE BROWSE <ControlName>
<PropertyName> <PropertyValue>...
<EventName> <EventProcedure> | <bBlock>...
END BROWSE
Properties:
Value
Enabled
Visible
Row
Col
Width
Height
Header (nColumnIndex)
FontName
FontSize
FontBold
FontItalic
FontUnderline
FontStrikeout
ToolTip
BackColor
FontColor
Name (R)
Parent (D)
Fields (D)
WorkArea (D)
Valid (D)
ValidMessages (D)
ReadOnlyFields (D)
Lock (D)
AllowAppend (D)
AllowDelete (D)
InPlaceEdit (D)
NoLines (D)
Image (D)
Justify (D)
VScrollBar (D)
HelpId (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.
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.
@...BUTTON / DEFINE BUTTON: Creates a button control.
@ <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 ]
@ <nRow> ,<nCol>
BUTTON <ButtonName>
[ OF<ParentWindowName> ]
PICTURE <cPictureName>
ACTION | ONCLICK | ON CLICK <ActionProcedureName> | <bBlock>
[ WIDTH <nWidth> HEIGHT <nHeight> ]
[ TOOLTIP <cToolTipText> ]
[ FLAT ]
[ TRANSPARENT ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
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)
TabStop (D)
HelpId (D)
Transparent (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 checkbuttoncontrol.
@ <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 <ItemSourceField> ]
[ 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> ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ GRIPPERTEXT <cGripperText> ]
[ INVISIBLE ]
[ SORT ]
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)
D: Available at control definition only
R: Read-Only
Events:
OnGotFocus
OnChange
OnLostFocus
OnDisplayChange
OnEnter
Methods:
Show
Hide
AddItem (
cItemText )
DeleteItem (
nItemIndex )
DeleteAllItems
SetFocus
Release
Tips:
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.
@...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 ]
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)
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> ]
[ OPAQUE ]
[ FRAME ]
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)
Opaque (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> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ [ ON DBLCLICK <OnDblClickProcedure> | <bBlock>
] | [ EDIT | ALLOWEDIT ] ]
[ ON HEADCLICK <aOnHeadClickProcedure> | <abBlock>
]
[ VIRTUAL ]
[ ITEMCOUNT <nItemCount> ]
[ ON QUERYDATA <OnQueryDataProcedure> | <bBlock> ]
[ MULTISELECT ]
[ NOLINES ]
[ IMAGE <acImageNames> ]
[ JUSTIFY <anJustifyValue> ]
[ HELPID <nHelpId> ]
[ BREAK ]
DEFINE GRID <ControlName>
<PropertyName> <PropertyValue>...
<EventName> <EventProcedure> | <bBlock>...
END GRID
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:
Value
Enabled
Visible
Item (
nItemIndex )
ItemCount
Row
Col
Width
Height
FontName
FontSize
FontBold
FontItalic
FontUnderline
FontStrikeout
ToolTip
BackColor
FontColor
Header (nColumnNumber)
Name (R)
Virtual (D)
Parent (D)
Widths (D)
MultiSelect (D)
NoLines (D)
Image (D)
Justify (D)
HelpId (D)
Break (D)
AllowEdit (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
Events:
OnGotFocus
OnChange
OnLostFocus
OnDblClick
OnHeadClick
OnQueryData
Methods:
Show
Hide
AddItem (
acItemText )
DeleteItem (
nItemIndex )
DeleteAllItems
SetFocus
Release
AddColumn ( [ nColIndex ] , [ cCaption ] , [ nWidth ] , [ nJustify ] )
DeleteColumn ( nColIndex )
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.
@...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> ]
[ 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)
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>]
[ BOLD ]
[ 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
If MULTISELECT clause is used VALUE must be
a numeric array, containing the index position of selected items.
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)
NoTAbStop (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
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 ]
[ SHOMODE ]
[ SHOWNAME ]
[ SHOWPOSITION ]
[ HELPID <nHelpId> ]
DEFINE PLAYER <ControlName>
<PropertyName> <PropertyValue>...
<EventName> <EventProcedure> | <bBlock>...
END PLAYER
Related Commands:
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
Release
@...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
The minimum value in the range can be from 0
to 65,535. Likewise, the maximum value can be from 0 to 65,535
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
@...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 ]
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)
Name (R)
Parent (D)
Spacing (D)
HelpId (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> ]
[ FONTCOLOR <aFontColor> ]
[ 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
FontColor
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
The minimum value in the range can be from 0
to 65,535. Likewise, the maximum value can be from 0 to 65,535
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
@...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
The minimum value in the range can be from 0
to 65,535. Likewise, the maximum value can be from 0 to 65,535
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
@...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
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
! Alphabetic Characters (Uppercase Conversion)
(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
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
Hint: Inputmask and Maxlength clauses can't be used simultaneously.
ACTIVATE WINDOW COMMAND / ACTIVATE METHOD
: Activate a window.
ACTIVATE WINDOW <WindowName1>
[,<WindowName2> ]
...
...
[,<WindowNameN> ]
<WindowName>.Activate
ACTIVATE WINDOW ALL: Activates all defined windows.
Using this command, all defined windows will
be activated simultaneously. All windows (excepting main) will be not visible at
activation until show method be used to make them visible. NOAUTORELEASE style
will be assumed for all non-main windows.
Main window should be defined prior to use this command.
ADD COLUMN COMMAND / ADDCOLUMN METHOD : Add a new column to a grid control.
ADD COLUMN [ INDEX <nColIndex> ] [ CAPTION <cCaption> ] [ WIDTH <nWidth> ] [ JUSTIFY <nJustify> ] TO <ControlName> OF <ParentWindowName>
<ParentWindowName>.<ControlName>. AddColumn ( [ nColIndex ] , [ cCaption ] , [ nWidth ] , [ nJustify ] )
When this command / method is used all items in grid (if any) will be lost.
ADD ITEM COMMAND / ADDITEM METHOD : Add a new item to a listbox, combobox or grid.
ADD ITEM <cItem> |
<acItem> TO
<ControlName> OF<ParentWindowName>
<ParentWindowName>.<ControlName>.AddItem (<cItem> | <acItem> )
<Item> type must be character for
lists and combos, and array for grids (in this case, the array lenght, must be
equal to column count)
BEGIN INI / GET / SET / END INI: INI files handling commands.
BEGIN INI [ FILENAME | FILE | DISK <cIniFile> ]
GET <uVar>
[ SECTION <cSection> ]
[ ENTRY <cEntry> ]
[ DEFAULT <uDefault> ]
SET [ SECTION <cSection> ]
[ ENTRY <cEntry> ]
[ TO <uVal> ]
DEL SECTION <cSection>
[ ENTRY <cEntry> ]
END INI
CAPTION PROPERTY: Set / Gets caption of a gui object.
<ParentWindowName>.<ControlName>.Caption [ (nIndex) ] :=
cCaption
<ParentWindowName>.<ControlName>.Caption [ (nIndex) ] --> cCaption
nIndex is available only for grids, radiogroup and tab controls.
CARETPOS PROPERTY: Set / Gets the caret position of a textbox control.
<ParentWindowName>.<ControlName>.CaretPos
:= nCaretPosition
<ParentWindowName>.<ControlName>.CaretPos --> nCaretPosition
CENTER WINDOW COMMAND / CENTER METHOD : Center a window.
CENTER WINDOW
<WindowName>
<WindowName>.Center
CHECKED PROPERTY: Set / Gets check state of a menu item.
<ParentWindowName>.<MenuItemName>.Checked := lCheckState
<ParentWindowName>.<MenuItemName>.Checked --> lCheckState
CLOSE CONNECTION: Closes a socket connection.
CLOSE CONNECTION <ConnectionName>
COL PROPERTY: Set / Gets column position of a gui object.
<ParentWindowName>.<ControlName>.Col := nCol
<ParentWindowName>.<ControlName>.Col --> nCol
COLOR CONSTANTS: It can be used with BACKCOLOR and FONTCOLOR clauses.
COMPRESS: Creates a ZIP file.
COMPRESS [ FILES ] <afiles>
TO <cZipFile>
BLOCK <bBlock>
[ LEVEL <nLevel> ]
[ OVERWRITE ]
CreateFolder(): Creates a Folder based upon given parameter.
CreateFolder(<cFolder>)->Nil
DECLARE (DLL): Declares a DLL Function.
DECLARE <Type> [ STATIC ] <FunctionName> ( [ <type1> <uParam1> ]
[, <typeN> <uParamN> ] ) IN <DllName> ALIAS <alias> [FLAGS <flags>]
Allowed Types:
DLL_TYPE_VOID
DLL_TYPE_UINT
DLL_TYPE_INT
DLL_TYPE_HANDLE
DLL_TYPE_HICON
DLL_TYPE_HBITMAP
DLL_TYPE_HCURSOR
DLL_TYPE_HBRUSH
DLL_TYPE_LPCSTR
DLL_TYPE_WNDPROC
DLL_TYPE_BOOL
DLL_TYPE_LPVOID
DLL_TYPE_DWORD
DLL_TYPE_WORD
DLL_TYPE_LPCTSTR
DLL_TYPE_COLORREF
DLL_TYPE_BYTE
DLL_TYPE_TCHAR
DLL_TYPE_HINSTANCE
DLL_TYPE_HWND
DLL_TYPE_LPARAM
DLL_TYPE_HGLOBAL
DLL_TYPE_WPARAM
DLL_TYPE_HKEY
DLL_TYPE_CHAR
DLL_TYPE_LONG
DLL_TYPE_BCHAR
DLL_TYPE_WCHAR
DLL_TYPE_DOUBLE
DLL_TYPE_LPTSTR
DLL_TYPE_LPSTR
DLL_TYPE_ULONG
DLL_TYPE_UCHAR
DLL_TYPE_SHORT
DLL_TYPE_USHORT
DLL_TYPE_LPOFNHOOKPROC
DLL_TYPE_LPCFHOOKPROC
DLL_TYPE_LPFRHOOKPROC
DLL_TYPE_LPPAGESETUPHOOK
DLL_TYPE_LPPAGEPAINTHOOK
DLL_TYPE_LPPRINTHOOKPROC
DLL_TYPE_LPSETUPHOOKPROC
DLL_TYPE_BFFCALLBACK
DLL_TYPE_HDC
DLL_TYPE_HIMAGELIST
Flags:
DC_MICROSOFT
DC_BORLAND
DC_CALL_CDECL
DC_CALL_STD
DECLARE WINDOW: Declares a window name..
DECLARE WINDOW <WindowName>
A window must be declared using this command, if you need to refer to it prior its definition in code, or when you refer to it in a different .prg file from the one it was defined using semi-oop syntax.
DECODE: Decodes database records or files.
DECODE [FROM <(file)>] ON <key>
FIELDS <fields,...>
[ PASSWORD <password> ]
[ FOR <for> ]
[ WHILE <while> ]
[ ALL ]
DECODE <file1> TO <file2> [ PASSWORD <password>] [DELETE]
DECODE FILE <file> [ PASSWORD <password> ]
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 ]
...
...
[ DEFINE POPUP <cPopupCaption> ]
MENUITEM <cItemCaption> ACTION<ActionProvedureName> |
<bBlock> [ NAME <MenuItemName>] [ IMAGE <cImageName> ]
...
...
[ SEPARATOR ]
...
...
[ END POPUP ]
END POPUP
...
...
END MENU
MenuItem Properties:
Checked
Enabled
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
Checked
Enabled
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
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 SCREENSAVER Creates a screensaver application.
DEFINE SCREENSAVER
WINDOW <ScrSaverName>
MAIN
[ NOSHOW> ]
[ ON INIT <InitProcedureName> | <bBlock> ]
[ ON RELEASE <ReleaseProcedureName> | <bBlock> ]
[ ON PAINT <WindowPaintProcedureName> | <bBlock> [ INTERVAL <nInterval> ]
]
[ BACKCOLOR <anBackColor>
]
Related commands:
INSTALL SCREENSAVER
[ TO FILE <cFileName> ]
[ <lShow: SHOW> ]
CONFIGURE SCREENSAVER <ConfigProcedure>
ACTIVATE SCREENSAVER
WINDOW <name, ...>
PARAMETERS <cParameters>
These commands were contributed by Grigory Filatov <gfilatov@freemail.ru>
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 and 'SplitChild' windows. You must omit '@ <row>,<col>' in control definition.
DEFINE STATUSBAR: Creates a StatusBar Control.
DEFINE STATUSBAR [ OF | PARENT <ParentWindowName> ] [ FONT <cFontName> SIZE <nFontSize> ] [ COLOR <nRedComponent>,<nGreenComponent>,<nBlueComponent>
]
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
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>
... 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 )
DEFINE TIMER: Creates a timer control.
DEFINE TIMER <ControlName>
OF<ParentWindowName>
INTERVAL<nInterval>
ACTION <ActionProcedureName> | <bBlock>
Events:
Action
Properties:
Value
Enabled
Release
Name (R)
R: Read-Only
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> ]
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <cTooltipText> ]
[ FLAT ]
[ BOTTOM ]
[ RIGHTTEXT ]
[ GRIPPERTEXT ]
[ BORDER ]
[ BREAK ]
[
CAPTION
<cCaption> ]
[
PICTURE
<cPictureName> ]
[
ACTION | ON CLICK | ONCLICK <ActionProcedureName> | <bBlock> ]
[
SEPARATOR ]
[ AUTOSIZE ]
[ DROPDOWN ]
[ WHOLEDROPDOWN ]
[ CHECK ]
[ GROUP ]
ToolBar Properties:
Parent
(D)
ButtonSize
(D)
Flat
(D)
Bottom (D)
RightText (D)
GripperText (D)
ToolBar Button Properties:
Caption
(D)
Picture (D)
Separator (D)
DropDown (D)
WholeDropDown (D)
Check (D)
Group (D)
D: Available at control definition only
ToolBar Button Events:
OnClick
GRIPPERTEXT Property works only for toolbars defined inside splitbox.
"Action" and "WholeDropDown" clauses can't be used simultaneously
DEFINE WINDOW: Creates a Window definition.
Standard Window:
DEFINE WINDOW <WindowName>
AT <nRow> ,<nCol>
WIDTH <nWindth>
HEIGHT <nHeight>
[ VIRTUAL WIDTH <nVirtualWindth> ]
[ VIRTUAL HEIGHT <nVirtualHeight> ]
[ TITLE <cTitle> ]
[ ICON <cIconName> ]
[ MAIN | CHILD ]
[ NOSHOW ]
[ TOPMOST ]
[ NOAUTORELEASE ]
[ NOMINIMIZE ]
[ NOMAXIMIZE ]
[ NOSIZE ]
[ NOSYSMENU ]
[ NOCAPTION ]
[ CURSOR <CursorName> ]
[ ON INIT<InitProcedureName> | <bBlock> ]
[ ON RELEASE <ReleaseProcedureName> | <bBlock> ]
[ ON MOUSECLICK<MouseClickProcedureName> | <bBlock> ]
[ ON MOUSEDRAG<MouseDragProcedureName> | <bBlock> ]
[ ON MOUSEMOVE<MouseMoveProcedureName> | <bBlock> ]
[ ON SIZE<WindowSizeProcedureName> | <bBlock> ]
[ ON MAXIMIZE <WindowMaximizeProcedureName> | <bBlock> ]
[ ON MINIMIZE <WindowMinimizeProcedureName> | <bBlock> ]
[ ON PAINT<WindowPaintProcedureName> | <bBlock> ]
[ BACKCOLOR <anBackColor> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ NOTIFYICON <cNotifyIconName> ]
[ NOTIFYTOOLTIP <cNotifyTooltip> ]
[ ON NOTIFYCLICK <NotifyClickProcedure> | <bBlock> ]
[ ON GOTFOCUS <ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <ProcedureName> | <bBlock> ]
[ ON SCROLLUP <ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <ProcedureName> | <bBlock> ]
[ ON SCROLLRIGHT <ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <ProcedureName> | <bBlock> ]
[ HELPBUTTON ]
... Control Definitions...
END WINDOW
Modal Window:
DEFINE WINDOW <WindowName>
AT <nRow> ,<nCol>
WIDTH <nWindth>
HEIGHT <nHeight>
[ VIRTUAL
WIDTH <nVirtualWindth> ]
[ VIRTUAL
HEIGHT <nVirtualHeight> ]
[ TITLE <cTitle> ]
[ ICON <cIconName> ]
MODAL
[ NOSHOW ]
[ NOAUTORELEASE ]
[ NOSIZE ]
[ NOSYSMENU ]
[ NOCAPTION ]
[ CURSOR <CursorName> ]
[ ON INIT<InitProcedureName> | <bBlock> ]
[ ON RELEASE<ReleaseProcedureName> | <bBlock> ]
[ ON MOUSECLICK<MouseClickProcedureName> | <bBlock> ]
[ ON MOUSEDRAG<MouseDragProcedureName> | <bBlock> ]
[ ON MOUSEMOVE<MouseMoveProcedureName> | <bBlock> ]
[ ON SIZE <WindowSizeProcedureName> | <bBlock> ]
[ ON PAINT<WindowPaintProcedureName> | <bBlock> ]
[ BACKCOLOR <anBackColor> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ ON GOTFOCUS <ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <ProcedureName> | <bBlock> ]
[ ON SCROLLUP <ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <ProcedureName> | <bBlock> ]
[ ON SCROLLRIGHT <ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <ProcedureName> | <bBlock> ]
[ HELPBUTTON ]
... Control Definitions...
END WINDOW
SplitChild Window:
DEFINE WINDOW <WindowName>
WIDTH <nWindth>
HEIGHT <nHeight>
[ VIRTUAL
WIDTH <nVirtualWindth> ]
[ VIRTUAL
HEIGHT <nVirtualHeight> ]
[ TITLE <cTitle> ]
SPLITCHILD
[ NOCAPTION ]
[ CURSOR <CursorName> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ GRIPPERTEXT ]
[ BREAK ]
[ FOCUSED ]
[ ON GOTFOCUS <ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <ProcedureName> | <bBlock> ]
[ ON SCROLLUP <ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <ProcedureName> | <bBlock> ]
[ ON SCROLLRIGHT <ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <ProcedureName> | <bBlock> ]
... Control Definitions...
END WINDOW
Window Properties:
Row
Col
Width
Height
Title
NotifyIcon
NotifyTooltip
FocusedControl
Cursor (R)
Name (R)
R: Read-Only
Window Methods:
Show
Hide
Center
Maximize
Minimize
Activate
Restore
Release
SetFocus
Toolbar's & SplitBox's parent window can't be a 'Virtual Dimensioned' window (use 'Virtual Dimensioned' splitchild's instead)
DELETE COLUMN COMMAND / DELETECOLUMN METHOD: Deletes a column from a grid control.
DELETE COLUMN [ INDEX ] <nColIndex> ] FROM <ControlName> OF <ParentWindowName>
<ParentWindowName>.<ControlName>. DeleteColumn ( <nColIndex>)
When this command / method is used all items in grid (if any) will be lost.
DELETE ITEM COMMAND / DELETEITEM METHOD : Deletes an item (or all items) from a listbox,
combobox or grid.
DELETE ITEM <nItemNumber> |
ALL FROM <ControlName> OF
<ParentWindowName>
<ParentWindowName>.<ControlName>. DeleteItem ( <nItemNumber>)
<ParentWindowName>.<ControlName>. DeleteAllItems ( <nItemNumber>)
DISPLAY HELP: Displays windows help
DISPLAY HELP MAIN | CONTEXT <nTopic> | POPUP
<nTopic>
DoMethod: Executes a method.
DoMethod
(<cWindowName>[,<cControlName>],<cMethodName> )
DO EVENTS: Forces system events processing
DO EVENTS
DO REPORT: Creates a report based upon given parameters.
DO REPORT
TITLE <ctitle>
HEADERS <aheaders1> , <aheaders2>
FIELDS <a>
WIDTHS <awidths>
[ TOTALS <ato> ]
[ NFORMATS <aformats> ]
WORKAREA <calias>
LPP <nlpp>
CPL <ncpl>
[ LMARGIN <nllmargin> ]
[ PAPERSIZE <nPaperSize> ]
[ DOSMODE ]
[ PREVIEW ]
[ SELECT ]
[ IMAGE <cgraphic> AT <nfi> , <nci> TO <nff> , <ncf> ]
[ MULTIPLE ]
[ GROUPED BY <cgrpby> ]
[ HEADRGRP <chdrgrp> ]
[ LANDSCAPE ]
DO REPORT FORM Executes a report from a given report definition file.
DO REPORT FORM <creportFormName[.rpt]>
DRAW / ERASE Commands:
DRAW GARPH
IN WINDOW <WindowName>
AT <nRow>,<nCol>
TO <nRow>,<nCol>
TITLE <cTitle>
TYPE [ BARS | LINES | POINTS ]
SERIES <aSeries>
YVALUES <aYValues>
DEPTH <nDepth>
BARWIDTH <nBarWidth>
HVALUES <nHorizaontalValues>
SERIENAMES <aSeriesNames>
COLORS <anColors>
[ 3DVIEW ]
[ SHOWGRID ]
[ SHOWXVALUES ]
[ SHOWYVALUES ]
[ SHOWLEGENDS ]
DRAW GRAPH IN WINDOW <window>
AT <nT>,<nL>
TO <nB>,<nR>
TITLE <cTitle>
TYPE PIE
SERIES <aSer>
DEPTH <nD>
SERIENAMES <aName>
COLORS <aColor>
[ 3DVIEW ]
[ SHOWXVALUES ]
[ SHOWLEGENDS ]
DRAW LINE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <nRow>,<nCol>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
DRAW RECTANGLE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <nRow>,<nCol>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
[FILLCOLOR <anFillColor>]
DRAW ROUNDRECTANGLE IN WINDOW <WindownNme>
AT <nRow>,<nCol>
TO <nRow>,<nCol>
ROUNDWIDTH <nWidth>
ROUNDHEIGHT <nHeight>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
[FILLCOLOR <anFillColor>]
DRAW ELLIPSE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <nRow>,<nCol>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
[FILLCOLOR <anFillColor>]
DRAW ARC IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <nRow>,<nCol>
FROM RADIAL <nRow>,<nCol>
TO RADIAL <nRow>,<nCol>
[PENCOLOR <anPenColor>]
[PENWIDTH <anFillColor>]
DRAW PIE IN WINDOW <windowname> AT <nRow>,<nCol>
TO <nRow>,<nCol>
FROM RADIAL <nRow>, <nCol>
TO RADIAL <nRow>, <nCol>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
[FILLCOLOR <anFillColor>]
DRAW POLYGON IN WINDOW <WindowName> ;
POINTS <anPoints>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
[FILLCOLOR <anFillColor>]
DRAW POLYBEZIER IN WINDOW <WindowName>
POINTS <anPoints>
[PENCOLOR <anPenColor>]
[PENWIDTH <nPenWidth>]
ERASE [ IN ] WINDOW <WindowName>
EDIT: Edits database records in the specified work area.
EDIT
WORKAREA <workarea>
[ TITLE <cTitle> ]
[ FIELDS <acFields> ]
[ READONLY <alReadOnlyFields> ]
[ SAVE <bSave> ]
[ SEARCH <bSearch> ]
EDIT EXTENDED
[ WORKAREA <cWorkArea> ]
[ TITLE <cTitle> ]
[ FIELDNAMES <acFieldNames> ]
[ FIELDMESSAGES <acFieldMessages> ]
[ FIELDENABLED <alFieldView> ]
[ TABLEVIEW <alTableView> ]
[ OPTIONS <aOptions> ]
[ ON SAVE <bSave> ]
[ ON FIND <bFind> ]
[ ON PRINT <bPrint> ]
ENABLED PROPERTY: Set / Gets enabled state of a control.
<WindowName>.<ControlName>.Enabled := lEnabledState
<WindowName>.<ControlName>.Enabled --> lEnabledState
ENCODE: Encodes database records or files.
ENCODE [FROM <(file)>] ON <key>
FIELDS <fields,...>
[ PASSWORD <password> ]
[ FOR <for> ]
[ WHILE <while> ]
[ ALL ]
ENCODE <file1> TO <file2> [ PASSWORD <password> ] [ DELETE ]
ENCODE FILE <file> [ PASSWORD <password> ]
EXECUTE COMMAND: The EXECUTE command opens or prints a specified
file. The file can be an executable file or a document file.
EXECUTE [ OPERATION <operation> ] [ FILE <file> ] [ PARAMETERS <parameters> ] [ DEFAULT <default>] [ MAXIMIZE | MINIMIZE]
EXECUTE [ FILE <file> ] [ MAXIMIZE | MINIMIZE ] WAIT
FETCH: Retrieves a window or control property value.
FETCH [ PROPERTY ] [ WINDOW ] <WindowName> <PropertyName> TO --> <ResultVar>
FETCH [ PROPERTY ] [ CONTROL ] <ControlName> OF <WindowName> <PropertyName> TO --> <ResultVar>
FONTNAME PROPERTY: Set / Gets gui object's font name.
<ParentWindowName>.<ControlName>.FontName
:= cFontName
<ParentWindowName>.<ControlName>.FontName --> cFontName
FONTSIZE PROPERTY: Set / Gets gui object's font size.
<ParentWindowName>.<ControlName>.FontSize
:= nFontSize
<ParentWindowName>.<ControlName>.FontSize --> nFontSize
FONTBOLD PROPERTY: Set / Gets gui object's font size.
<ParentWindowName>.<ControlName>.FontBold
:= lFontBold
<ParentWindowName>.<ControlName>.FontBold --> lFontBold
FONTITALIC PROPERTY: Set / Gets gui object's font size.
<ParentWindowName>.<ControlName>.FontItalic
:= lFontItalic
<ParentWindowName>.<ControlName>.FontItalic --> lFontItalic
FONTUNDERLINE PROPERTY: Set / Gets gui object's font size.
<ParentWindowName>.<ControlName>.FontUnderline
:= lFontUnderline
<ParentWindowName>.<ControlName>.FontUnderline --> lFontUnderline
FONTSTRIKEOUT PROPERTY: Set / Gets gui object's font size.
<ParentWindowName>.<ControlName>.FontStrikeOut
:= nFontStrikeOut
<ParentWindowName>.<ControlName>.FontStrikeOut --> nFontStrikeOut
GetProperty(): Retrieves a window or control property value.
GetProperty
(<cWindowName>[,<cControlName>]
,<cPropertyName>
)--> PropertyValue
GET URL: Gets data from a http socket connection.
GET URL <Url>
TO <VarName>
CONNECTION <ConnectionName>
GetColor(): Opens the system color selection dialog and
return selected color.
GetColor ( [<aInitColor>] ) --> aSelectedColor
GetCurrentFolder(): Returns the current folder as acharacter string.
GetCurrentFolder()->cCurrentFolder
GetData(): Gets data from another minigui application.
GetData ( )--> <Data>
If is not data available for active station,
Nil is returned.
GetFile(): Opens an open file window and return selected
filename.
GetFile ( acFilter , cTitle , cDefaultPath , lMultiSelect , lNoChangeDir )--> SelectedFileName
If <lMultiSelect> option is used, a character array containing selected filenames is returned.
GetFolder(): Opens a browse folder window and return selected
folder's path.
GetFolder ( [<cTitle>] )--> cSelectedFolderName
GetFont(): Opens the font selection dialog and returns the font
name, size and style selected.
GetFont ( [cInitFontName , nInitFontSize
, lBold , lItalic , anInitColor , lUnderLine , lStrikeOut , nCharset.] )--> aFont
The returned array has four elements:
aFont [1] : Font Name (Character)
aFont [2] : Font Size (Numeric)
aFont [3] : Font Bold (Logical)
aFont [4] : Font Italic (Logical)
aFont [5] : Font Color (three element numeric array)
aFont [6] : Font Underline (Logical)
aFont [7] : Font StrikeOut (Logical)
aFont [8] : Font Charset (Numeric)
If cancel is selected, the returned array
contains the following values:
aFont [1] : ""
aFont [2] : 0
aFont [3] : .F.
aFont [4] : .F.
aFont [5] : 0
aFont [6] : .F.
aFont [7] : .F.
aFont [8] : 0
Available Charsets
ANSI_CHARSET
DEFAULT_CHARSET
SYMBOL_CHARSET
SHIFTJIS_CHARSET
HANGEUL_CHARSET
HANGUL_CHARSET
GB2312_CHARSET
CHINESEBIG5_CHARSET
OEM_CHARSET
JOHAB_CHARSET
HEBREW_CHARSET
ARABIC_CHARSET
GREEK_CHARSET
TURKISH_CHARSET
VIETNAMESE_CHARSET
THAI_CHARSET
EASTEUROPE_CHARSET
RUSSIAN_CHARSET
MAC_CHARSET
BALTIC_CHARSET
GetDesktopFolder(): Returns the Desktop Folder path.
GetDesktopFolder ( ) --> cDesktopFolderPath
GetDesktopHeight(): Returns The Desktop Height In Pixels.
GetDesktopHeight ( ) --> nDesktopHeight
GetDesktopWidth(): Returns The Desktop Width In Pixels.
GetDesktopWidth ( ) --> nDesktopWidth
GetMyDocumentsFolder(): Returns the My Documents Folder path.
GetMyDocumentsFolder ( ) --> cMyDocumentsFolderPath
GetProgramFilesFolder(): Returns the Program Files Folder path.
GetProgramFilesFolder ( ) --> cProgramfilesFolderPath
GetSystemFolder(): Returns the System Folder path.
GetSystemFolder ( ) --> cSystemFolderPath
GetTempFolder(): Returns the Temp Folder path.
GetTempFolder ( ) --> cTempFolderPath
GetWindowsFolder(): Returns the Windows Folder path.
GetWindowsFolder ( ) --> cWindowsFolderPath
HIDE WINDOW / HIDE CONTROL COMMANDS /
HIDE METHOD: Hides a gui object.
HIDE WINDOW <WindowName>
HIDE CONTROL <ControlName> OF <WindowName>
<WindowName>.<ControlName>.Hide
<WindowName>.Hide
HEIGTH PROPERTY: Set / Gets heigth of a gui object.
<ParentWindowName>.<ControlName>.Heigth
:= nHeigth
<ParentWindowName>.<ControlName>.Heigth
-->
nHeigth
InputBox(): Displays a modal window used for input of a single string.
InputBox (cInputPrompt [, cWindowTitle] [, cDefaultValue] [, nTimeout , cTimeoutValue] [, lMultiLine ] )
ITEM PROPERTY: Set / Get item text in a listbox, combobox
or grid.
<WindowName>.<ControlName>. Item (<nItem>) := ItemText
<WindowName>.<ControlName> . Item
(<nItem>) --> ItemText
<ItemText>type is character for
lists and combos, and array for grids (in this case, the array lenght, is
equal to column count)
ITEMCOUNT PROPERTY: Get item count in a listbox, combobox
or grid.
<WindowName>.<ControlName>. ItemCount --> nItemCount
InputWindow(): Creates an
editing window automatically based upon values types.
InputWindow(<Title>,<acLabels>,<aInitialValues>,<aFormats>)
--> aResult
InputWindow() Argument Description
Argument | Meaning |
<Title> | Window Title |
<acLabels> | Character array containing labels with item descriptions. |
<aInitialValues> | Array containig initial values to edit. |
<aFormats> | Array containing format information for editing. |
InputWindow() Automatic Control Creation
Initial Value Type | Format Type | Control Created |
Character | Numeric (< 32) | TEXTBOX |
Character | Numeric (>= 32) | EDITBOX |
Logical | Nil | CHECKBOX |
Numeric | Character Array | COMBOBOX |
Numeric | Character (InputMask) | TEXTBOX(NUMERIC) |
Date | Nil | DATEPICKER |
IsControlDefined(): Determine if a control is defined.
IsControlDefined (<ControlName>,<WindowName>) --> lBoolean
IsWindowActive(): Determine if a window is active.
IsWindowActive (<WindowName>) --> lBoolean
IsWIndowDefined(): Determine if a window is defined.
IsWIndowDefined (<WindowName>) --> lBoolean
IsInsertActive(): Returns a logical value indicating INSERT key status
IsInsertActive() --> lBoolean
IsCapsLockActive(): Returns a logical value indicating CAPS LOCK key status
IsCapsLockActive() --> lBoolean
IsScrollLockActive(): Returns a logical value indicating insert SCROLL LOCKkey status
IsScrollLockActive() --> lBoolean
IsNumLockActive(): Returns a logical value indicating NUM LOCK key status
IsNumLockActive() --> lBoolean
LOAD WINDOW <WindowDefinitionFileName> [ AS <WindowName> ]
If you omit the AS clause, the window definition file name (without extension) is assumed as the window name.
A MiniGUI window definition file ('.fmg' file) is a text file containing a window definition, using standard minigui code, except the window name in the DEFINE WINDOW command (you must use TEMPLATE word instead).
MAXIMIZE WINDOW COMMAND / MAXIMIZE METHOD
: Maximize a window.
MAXIMIZE WINDOW
<WindowName>
<WindowName>.Maximize
MINIMIZE WINDOW COMMAND / MINIMIZE METHOD
: Minimize a Window.
MINIMIZE WINDOW
<WIndowName>
<WIndowName>.Minimize
MemoryStatus(): Determine the amount of available
free memory
MemoryStatus
( [<nExpr>] )--> nMBytes
MemoryStatus() Argument Values
Value | Meaning |
1 | Total memory |
2 | Available memory |
3 | Total page memory |
4 | Total page memory |
6 | Available virtual memory |
MiniGuiVersion(): Returns a character string indicating the MiniGUI version.
MiniGuiVersion() --> cVersion
MODIFY: Sets window / control property value.
MODIFY [ PROPERTY ]
[ WINDOW ] <WindowName> <PropertyName>
<PropertyValue>
MODIFY [ PROPERTY ] [ CONTROL ] <ControlName> OF <WindowName> <PropertyName> <PropertyValue>
MsgBox(): Show a message box.
MsgBox (<cMessage>,<cTitle>) --> Nil
MsgExclamation(): Show a message box with an exclamation icon.
MsgExclamation (<cMessage>,<cTitle>) --> Nil
MsgInfo(): Show a message box with an information icon.
MsgInfo (<cMessage>,<cTitle>) --> Nil
MsgOkCancel(): Show a message box with "Ok,Cancel"
buttons
MsgOkCancel (<cMessage>,<cTitle>) --> lResponse
MsgRetryCancel(): Show a message box with "Retry,Cancel"
buttons
MsgRetryCancel (<cMessage>,<cTitle>) --> lResponse
MsgStop(): Show a message box with an stop icon.
MsgStop (<cMessage>,<cTitle>) --> Nil
MsgYesNo(): Show a message box with "Yes,No" buttons
MsgYesNo ( <cMessage> , <cTitle> , <lRevertDefault> ) --> lResponse
NAME PROPERTY: Retrieves the name of a GUI object. This property is read-only after control definiton.
<Windowname> [. <ControlName>] . Name --> cObjectName
OPEN CONNECTION: Opens a socket connection.
OPEN CONNECTION <ConnectionName>
SERVER <ServerName>
PORT <PortNumber>
HTTP
ON KEY COMMAND: Allows to define a keyboard shortcut.
ON KEY <Key> [ OF <ParentWindow>] ACTION
<ActionProcedureName> | <bBlock>
<Key> must be one of the following:
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
BACK
TAB
RETURN
ESCAPE
END
HOME
LEFT
UP
RIGHT
DOWN
INSERT
DELETE
PRIOR
NEXT
ALT+A
ALT+B
ALT+C
ALT+D
ALT+E
ALT+F
ALT+G
ALT+H
ALT+I
ALT+J
ALT+K
ALT+L
ALT+M
ALT+N
ALT+O
ALT+P
ALT+Q
ALT+R
ALT+S
ALT+T
ALT+U
ALT+V
ALT+W
ALT+X
ALT+Y
ALT+Z
ALT+0
ALT+1
ALT+2
ALT+3
ALT+4
ALT+5
ALT+6
ALT+7
ALT+8
ALT+9
ALT+F1
ALT+F2
ALT+F3
ALT+F4
ALT+F5
ALT+F6
ALT+F7
ALT+F8
ALT+F9
ALT+F10
ALT+F11
ALT+F12
ALT+BACK
ALT+TAB
ALT+RETURN
ALT+ESCAPE
ALT+END
ALT+HOME
ALT+LEFT
ALT+UP
ALT+RIGHT
ALT+DOWN
ALT+INSERT
ALT+DELETE
ALT+PRIOR
ALT+NEXT
SHIFT+A
SHIFT+B
SHIFT+C
SHIFT+D
SHIFT+E
SHIFT+F
SHIFT+G
SHIFT+H
SHIFT+I
SHIFT+J
SHIFT+K
SHIFT+L
SHIFT+M
SHIFT+N
SHIFT+O
SHIFT+P
SHIFT+Q
SHIFT+R
SHIFT+S
SHIFT+T
SHIFT+U
SHIFT+V
SHIFT+W
SHIFT+X
SHIFT+Y
SHIFT+Z
SHIFT+0
SHIFT+1
SHIFT+2
SHIFT+3
SHIFT+4
SHIFT+5
SHIFT+6
SHIFT+7
SHIFT+8
SHIFT+9
SHIFT+F1
SHIFT+F2
SHIFT+F3
SHIFT+F4
SHIFT+F5
SHIFT+F6
SHIFT+F7
SHIFT+F8
SHIFT+F9
SHIFT+F10
SHIFT+F11
SHIFT+F12
SHIFT+BACK
SHIFT+TAB
SHIFT+RETURN
SHIFT+ESCAPE
SHIFT+END
SHIFT+HOME
SHIFT+LEFT
SHIFT+UP
SHIFT+RIGHT
SHIFT+DOWN
SHIFT+INSERT
SHIFT+DELETE
SHIFT+PRIOR
SHIFT+NEXT
CONTROL+A
CONTROL+B
CONTROL+C
CONTROL+D
CONTROL+E
CONTROL+F
CONTROL+G
CONTROL+H
CONTROL+I
CONTROL+J
CONTROL+K
CONTROL+L
CONTROL+M
CONTROL+N
CONTROL+O
CONTROL+P
CONTROL+Q
CONTROL+R
CONTROL+S
CONTROL+T
CONTROL+U
CONTROL+V
CONTROL+W
CONTROL+X
CONTROL+Y
CONTROL+Z
CONTROL+0
CONTROL+1
CONTROL+2
CONTROL+3
CONTROL+4
CONTROL+5
CONTROL+6
CONTROL+7
CONTROL+8
CONTROL+9
CONTROL+F1
CONTROL+F2
CONTROL+F3
CONTROL+F4
CONTROL+F5
CONTROL+F6
CONTROL+F7
CONTROL+F8
CONTROL+F9
CONTROL+F10
CONTROL+F11
CONTROL+F12
CONTROL+BACK
CONTROL+TAB
CONTROL+RETURN
CONTROL+ESCAPE
CONTROL+END
CONTROL+HOME
CONTROL+LEFT
CONTROL+UP
CONTROL+RIGHT
CONTROL+DOWN
CONTROL+INSERT
CONTROL+DELETE
CONTROL+PRIOR
CONTROL+NEXT
PICTURE PROPERTY: Set / Gets image name of a gui object.
<ParentWindowName>.<ControlName>.Picture := cImageName
<ParentWindowName>.<ControlName>.Picture --> cImageName
PlayAsterisk(): Plays system "asterisk" predefined sound.
PlayAsterisk() --> Nil
PlayBeep(): Beeps the PC speaker
PlayBeep() --> Nil
PlayExclamation(): Play system "exclamation" predefined sound
PlayExclamation() --> Nil
Playhand(): Play system "hand" predefined sound
PlayHand() --> Nil
PlayOk(): Play system "ok" predefined sound
PlayOk() --> Nil
PlayQuestion(): Play system "question" predefined sound
PlayQuestion() --> Nil
PLAY WAVE: Plays a wave from file or resource.
PLAY WAVE <cWaveName>
[ FROM RESOURCE ]
[ SYNC ]
[ NOSTOP ]
[ LOOP ]
[ NODEFAULT ]
Related Commands:
STOP WAVE [ NODEFAULT ]
PRINT COMMANDS: HBPRINTER LIBRARY COMMANDS
INIT PRINTSYS: Initializes
HBPRINTER library
START DOC: Signals a printer document start.
START PAGE : Signals a printer document page start
END PAGE : Signals a printer document page end
END DOC : Signals a printer document end.
RELEASE PRINTSYS : Releases from memory HBPRINTER
objects.
GET DEFAULT PRINTER TO <cPrinterName>
: Stores the default printer name in the specified variable
GET SELECTED PRINTER TO <cPrinter> : Stores the
selected printer name in the specified variable
GET PAPERS TO <aPapers> : Stores the available
paper for current printer in the specified array.
GET BINS TO <aBins> : Stores the available bins for
current printer in the specified array.
GET PRINTERS TO <aPrinters> : Stores the
available printers in the specified array.
GET PORTS TO <aPorts> : Stores the available
ports in the specified array.
HBPRNMAXROW : Returns the current greatest row
available
HBPRNMAXCOL : Returns the current greatest
column available
HBPRNERROR : Returns the current error code.
SET UNITS ROWCOL | MM | INCHES | PIXELS : Set mesure
units for @... commands.
SELECT :Selects a printer.
SELECT BY DIALOG [PREVIEW]
SELECT DEFAULT [ PREVIEW ]
SELECT PRINTER <cprinter> [ PREVIEW ]
SET
THUMBNAILS ON | OFF : Enables / Disables thumbails in print
preview.
SET PREVIEW RECT <row>,<col>,<row2>,<col2>
: Sets print preview area.
SET PREVIEW SCALE <scale> : Sets scale for print
preview.
SET PAGE: Sets various page settings.
SET PAGE [ORIENTATION <orient>] [PAPERSIZE <psize>] [FONT <cfont>]
SET ORIENTATION: Sets paper orientation.
SET ORIENTATION PORTRAIT
SET ORIENTATION LANDSCAPE
SET PAPERSIZE <psize> : Sets papersize.
SET QUALITY <quality> : Sets print
quality
SET COLORMODE <mode>: Sets printer color mode.
SET PREVIEW ON | OFF : Sets printer preview.
SET TEXTCOLOR <clr> | <aRGBColor> : Sets default
text color.
GET TEXTCOLOR [TO] <nVar> : Stores the current
textcolor into the specified variable.
SET BACKCOLOR <nColor> | <aRGBColor>: Sets default
background color.
GET BACKCOLOR [TO] <nColor> : Stores current
background color to the specified variable.
SET PRINT MARGINS [TOP <lm>] [LEFT <rm>] :
Set printing margins.
@<row>,<col> PICTURE <cpic> SIZE <row2>,<col2> [EXTEND <row3>,<col3>]
@<row>,<col>,<row2>,<col2> LINE [PEN <cpen>]
@<row>,<col> LINETO [PEN <cpen>]
@ <row>,<col> SAY <txt> [FONT <cfont>] [COLOR <color>] [ALIGN <align>] TO PRINT
DEFINE FONT <cfont>
[NAME <cface>]
[SIZE <size>]
[WIDTH <width>]
[ANGLE [BOLD]
[ITALIC] [ UNDERLINE] [ STRIKEOUT ] : Defines a font.
CHANGE FONT <cfont>
[NAME <cface>]
[SIZE <size>]
[WIDTH <width>]
[ANGLE <angle>]
[BOLD]
[NOBOLD]
[ ITALIC]
[NOITALIC]
[ UNDERLINE ]
[ NOUNDERLINE ]
[ STRIKEOUT ]
[ NOSTRIKEOUT ]
: Chages font attributes.
SELECT FONT <cfont> : Set default font.
SET CHARSET <charset> : Set default
charset.
Drawing Commands:
DEFINE BRUSH <cbrush> [STYLE <style>] [COLOR <clr>] [HATCH <hatch>]
CHANGE BRUSH <cbrush> [STYLE <style>] [COLOR <clr>] [HATCH <hatch>]
SELECT BRUSH <cbrush>
DEFINE PEN <cpen> [STYLE <style>] [WIDTH <width>] [COLOR <clr>]
CHANGE PEN <cpen> [STYLE <style>] [WIDTH <width>] [COLOR <clr>]
SELECT PEN <cpen> ;=> hbprn:selectpen(<cpen>)
@ <row>,<col>,<row2>,<col2> DRAW TEXT <txt> [STYLE <style>] [FONT <cfont>]
@ <row>,<col> TEXTOUT <txt> [FONT <cfont>]
@ <row>,<col>,<row2>,<col2> RECTANGLE [PEN <cpen>] [BRUSH <cbrush>]
@ <row>,<col>,<row2>,<col2> FILLRECT [BRUSH <cbrush>]
@ <row>,<col>,<row2>,<col2> ROUNDRECT [ROUNDR <tor>] [ROUNDC <toc>] [PEN <cpen>]
[BRUSH <cbrush>]
@ <row>,<col>,<row2>,<col2> FRAMERECT [BRUSH <cbrush>]
@ <row>,<col>,<row2>,<col2> INVERTRECT
@ <row>,<col>,<row2>,<col2> ELLIPSE [PEN <cpen>] [BRUSH <cbrush>]
@ <row>,<col>,<row2>,<col2> ARC RADIAL1 <row3>,<col3> RADIAL2 <row4>,<col4> [PEN
<cpen>]
@ <row>,<col> ARCTO RADIAL1 <row3>,<col3> RADIAL2 <row4>,<col4> [PEN <cpen>]
@ <row>,<col>,<row2>,<col2> CHORD RADIAL1 <row3>,<col3> RADIAL2 <row4>,<col4>
[PEN <cpen>] [BRUSH <cbrush>]
@ <row>,<col>,<row2>,<col2> PIE RADIAL1 <row3>,<col3> RADIAL2 <row4>,<col4> [PEN
<cpen>] [BRUSH <cbrush>]
POLYGON <apoints> [PEN <cpen>] [BRUSH <cbrush>] [STYLE <style>]
POLYBEZIER <aPoints> [PEN <cpen>]
POLYBEZIERTO <aPoints> [PEN <cpen>]
DEFINE RECT REGION <creg> AT <row>,<col>,<row2>,<col2>
DEFINE POLYGON REGION <creg> VERTEX <apoints> [STYLE <style>]
DEFINE ELLIPTIC REGION <creg> AT <row>,<col>,<row2>,<col2>
DEFINE ROUNDRECT REGION <creg> AT <row>,<col>,<row2>,<col2> ELLIPSE
<ewidth>,<eheight>
COMBINE REGIONS <creg1>,<creg2> TO <creg> [STYLE <style>]
SELECT CLIP REGION <creg>
DELETE CLIP REGION
SET POLYFILL MODE <mode>
SET POLYFILL ALTERNATE
SET POLYFILL WINDING
GET POLYFILL MODE TO <mode>
SET VIEWPORTORG <row>,<col>
GET VIEWPORTORG TO <aviewport>
SET RGB <red>,<green>,<blue> TO <nrgb>
SET TEXTCHAR EXTRA <col>
GET TEXTCHAR EXTRA TO <col>
SET TEXT JUSTIFICATION <col>
GET TEXT JUSTIFICATION TO <col>
SET TEXT ALIGN <style>
SET TEXT ALIGN LEFT
SET TEXT ALIGN RIGHT
SET TEXT ALIGN CENTER
GET TEXT ALIGN TO <style>
GET TEXT EXTENT <txt> [FONT <cfont>] TO <asize>
SET BKMODE :
SET BKMODE <mode>
SET BKMODE TRANSPARENT
SET BKMODE OPAQUE
GET BKMODE [TO] <mode>
HBPRNCOLOR(<clr>)
Bin selections
DMBIN_FIRST
DMBIN_UPPER
DMBIN_ONLYONE
DMBIN_LOWER
DMBIN_MIDDLE
DMBIN_MANUAL
DMBIN_ENVELOPE
DMBIN_ENVMANUAL
DMBIN_AUTO
DMBIN_TRACTOR
DMBIN_SMALLFMT
DMBIN_LARGEFMT
DMBIN_LARGECAPACITY
DMBIN_CASSETTE
DMBIN_FORMSOURCE
DMBIN_LAST DMBIN_FORMSOURCE
DMBIN_USER
Papersizes
DMPAPER_FIRST | |
DMPAPER_LETTER | |
DMPAPER_LETTER | Letter 8 1/2 x 11 in |
DMPAPER_LETTERSMALL | Letter Small 8 1/2 x 11 in |
DMPAPER_TABLOID | Tabloid 11 x 17 in |
DMPAPER_LEDGER | Ledger 17 x 11 in |
DMPAPER_LEGAL | Legal 8 1/2 x 14 in |
DMPAPER_STATEMENT | Statement 5 1/2 x 8 1/2 in |
DMPAPER_EXECUTIVE | Executive 7 1/4 x 10 1/2 in |
DMPAPER_A3 | A3 297 x 420 mm ) |
DMPAPER_A4 | A4 210 x 297 mm |
DMPAPER_A4SMALL | A4 Small 210 x 297 mm |
DMPAPER_A5 | A5 148 x 210 mm |
DMPAPER_B4 | B4 (JIS) 250 x 354 |
DMPAPER_B5 | B5 (JIS) 182 x 257 mm |
DMPAPER_FOLIO | Folio 8 1/2 x 13 in |
DMPAPER_QUARTO | Quarto 215 x 275 mm |
DMPAPER_10X14 | 10x14 in |
DMPAPER_11X17 | 11x17 in |
DMPAPER_NOTE | Note 8 1/2 x 11 in |
DMPAPER_ENV_9 | Envelope #9 3 7/8 x 8 7/8 |
DMPAPER_ENV_10 | Envelope #10 4 1/8 x 9 1/2 |
DMPAPER_ENV_11 | Envelope #11 4 1/2 x 10 3/8 |
DMPAPER_ENV_12 | Envelope #12 4 \276 x 11 |
DMPAPER_ENV_14 | Envelope #14 5 x 11 1/2 |
DMPAPER_CSHEET | C size sheet |
DMPAPER_DSHEET | D size sheet |
DMPAPER_ESHEET | E size sheet |
DMPAPER_ENV_DL | Envelope DL 110 x 220mm |
DMPAPER_ENV_C5 | Envelope C5 162 x 229 mm |
DMPAPER_ENV_C3 | Envelope C3 324 x 458 mm |
DMPAPER_ENV_C4 | Envelope C4 229 x 324 mm |
DMPAPER_ENV_C6 | Envelope C6 114 x 162 mm |
DMPAPER_ENV_C65 | Envelope C65 114 x 229 mm |
DMPAPER_ENV_B4 | Envelope B4 250 x 353 mm |
DMPAPER_ENV_B5 | Envelope B5 176 x 250 mm |
DMPAPER_ENV_B6 | Envelope B6 176 x 125 mm |
DMPAPER_ENV_ITALY | Envelope 110 x 230 mm |
DMPAPER_ENV_MONARCH | Envelope Monarch 3.875 x 7.5 in |
DMPAPER_ENV_PERSONAL | 6 3/4 Envelope 3 5/8 x 6 1/2 in |
DMPAPER_FANFOLD_US | US Std Fanfold 14 7/8 x 11 in |
DMPAPER_FANFOLD_STD_GERMAN | German Std Fanfold 8 1/2 x 12 in |
DMPAPER_FANFOLD_LGL_GERMAN | German Legal Fanfold 8 1/2 x 13 in |
DMPAPER_ISO_B4 | B4 (ISO) 250 x 353 mm |
DMPAPER_JAPANESE_POSTCARD | Japanese Postcard 100 x 148 mm |
DMPAPER_9X11 | 9 x 11 in |
DMPAPER_10X11 | 10 x 11 in |
DMPAPER_15X11 | 15 x 11 in |
DMPAPER_ENV_INVITE | Envelope Invite 220 x 220 mm |
DMPAPER_RESERVED_48 | RESERVED--DO NOT USE |
DMPAPER_RESERVED_49 | RESERVED--DO NOT USE |
DMPAPER_LETTER_EXTRA | Letter Extra 9 \275 x 12 in |
DMPAPER_LEGAL_EXTRA | Legal Extra 9 \275 x 15 in |
DMPAPER_TABLOID_EXTRA | Tabloid Extra 11.69 x 18 in |
DMPAPER_A4_EXTRA | A4 Extra 9.27 x 12.69 in |
DMPAPER_LETTER_TRANSVERSE | Letter Transverse 8 \275 x 11 in |
DMPAPER_A4_TRANSVERSE | A4 Transverse 210 x 297 mm |
DMPAPER_LETTER_EXTRA_TRANSVERSE | Letter Extra Transverse 9\275 x 12 in |
DMPAPER_A_PLUS | SuperA/SuperA/A4 227 x 356 mm |
DMPAPER_B_PLUS | SuperB/SuperB/A3 305 x 487 mm |
DMPAPER_LETTER_PLUS | Letter Plus 8.5 x 12.69 in |
DMPAPER_A4_PLUS | A4 Plus 210 x 330 mm |
DMPAPER_A5_TRANSVERSE | A5 Transverse 148 x 210 mm |
DMPAPER_B5_TRANSVERSE | B5 (JIS) Transverse 182 x 257 mm |
DMPAPER_A3_EXTRA | A3 Extra 322 x 445 mm |
DMPAPER_A5_EXTRA | A5 Extra 174 x 235 mm |
DMPAPER_B5_EXTRA | B5 (ISO) Extra 201 x 276 mm |
DMPAPER_A2 | A2 420 x 594 mm |
DMPAPER_A3_TRANSVERSE | A3 Transverse 297 x 420 mm |
DMPAPER_A3_EXTRA_TRANSVERSE | A3 Extra Transverse 322 x 445 mm |
DMPAPER_DBL_JAPANESE_POSTCARD | Japanese Double Postcard 200 x 148 mm |
DMPAPER_A6 | A6 105 x 148 mm |
DMPAPER_JENV_KAKU2 | Japanese Envelope Kaku #2 |
DMPAPER_JENV_KAKU3 | Japanese Envelope Kaku #3 |
DMPAPER_JENV_CHOU3 | Japanese Envelope Chou #3 |
DMPAPER_JENV_CHOU4 | Japanese Envelope Chou #4 |
DMPAPER_LETTER_ROTATED | Letter Rotated 11 x 8 1/2 11 in |
DMPAPER_A3_ROTATED | A3 Rotated 420 x 297 mm |
DMPAPER_A4_ROTATED | A4 Rotated 297 x 210 mm |
DMPAPER_A5_ROTATED | A5 Rotated 210 x 148 mm |
DMPAPER_B4_JIS_ROTATED | B4 (JIS) Rotated 364 x 257 mm |
DMPAPER_B5_JIS_ROTATED | B5 (JIS) Rotated 257 x 182 mm |
DMPAPER_JAPANESE_POSTCARD_ROTATED | Japanese Postcard Rotated 148 x 100 mm |
DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED | |
DMPAPER_A6_ROTATED | A6 Rotated 148 x 105 mm |
DMPAPER_JENV_KAKU2_ROTATED | Japanese Envelope Kaku #2 Rotated |
DMPAPER_JENV_KAKU3_ROTATED | Japanese Envelope Kaku #3 Rotated |
DMPAPER_JENV_CHOU3_ROTATED | Japanese Envelope Chou #3 Rotated |
DMPAPER_JENV_CHOU4_ROTATED | Japanese Envelope Chou #4 Rotated |
DMPAPER_B6_JIS | B6 (JIS) 128 x 182 mm |
DMPAPER_B6_JIS_ROTATED | B6 (JIS) Rotated 182 x 128 mm |
DMPAPER_12X11 | 12 x 11 in |
DMPAPER_JENV_YOU4 | Japanese Envelope You #4 |
DMPAPER_JENV_YOU4_ROTATED | Japanese Envelope You #4 Rotated |
DMPAPER_P16K | PRC 16K 146 x 215 mm |
DMPAPER_P32K | PRC 32K 97 x 151 mm |
DMPAPER_P32KBIG | PRC 32K(Big) 97 x 151 mm |
DMPAPER_PENV_1 | PRC Envelope #1 102 x 165 mm |
DMPAPER_PENV_2 | PRC Envelope #2 102 x 176 mm |
DMPAPER_PENV_3 | PRC Envelope #3 125 x 176 mm |
DMPAPER_PENV_4 | Eenvelope #4 110 x 208 mm |
DMPAPER_PENV_5 | PRC Envelope #5 110 x 220 mm |
DMPAPER_PENV_6 | PRC Envelope #6 120 x 230 mm |
DMPAPER_PENV_7 | PRC Envelope #7 160 x 230 mm |
DMPAPER_PENV_8 | PRC Envelope #8 120 x 309 mm |
DMPAPER_PENV_9 | PRC Envelope #9 229 x 324 mm |
DMPAPER_PENV_10 | Envelope #10 324 x 458 mm |
DMPAPER_P16K_ROTATED | PRC 16K Rotated |
DMPAPER_P32K_ROTATED | PRC 32K Rotated |
DMPAPER_P32KBIG_ROTATED | PRC 32K(Big) Rotated |
DMPAPER_PENV_1_ROTATED | PRC Envelope #1 Rotated 165 x 102 mm |
DMPAPER_PENV_2_ROTATED | PRC Envelope #2 Rotated 176 x 102 mm |
DMPAPER_PENV_3_ROTATED | PRC Envelope #3 Rotated 176 x 125 mm |
DMPAPER_PENV_4_ROTATED | PRC Envelope #4 Rotated 208 x 110 mm |
DMPAPER_PENV_5_ROTATED | PRC Envelope #5 Rotated 220 x 110 mm |
DMPAPER_PENV_6_ROTATED | PRC Envelope #6 Rotated 230 x 120 mm |
DMPAPER_PENV_7_ROTATED | PRC Envelope #7 Rotated 230 x 160 mm |
DMPAPER_PENV_8_ROTATED | PRC Envelope #8 Rotated 309 x 120 mm |
DMPAPER_PENV_9_ROTATED | PRC Envelope #9 Rotated 324 x 229 mm |
DMPAPER_PENV_10_ROTATED | PRC Envelope #10 Rotated 458 x 324 mm |
DMPAPER_USER |
Orientation
DMORIENT_PORTRAIT
DMORIENT_LANDSCAPE
Color enable/disable for color
printers
DMCOLOR_MONOCHROME
DMCOLOR_COLOR
Print qualities
DMRES_DRAFT
DMRES_LOW
DMRES_MEDIUM
DMRES_HIGH
Brush Styles
BS_SOLID
BS_NULL
BS_HOLLOW BS_NULL
BS_HATCHED
BS_PATTERN
BS_INDEXED
BS_DIBPATTERN
BS_DIBPATTERNPT
BS_PATTERN8X8
BS_DIBPATTERN8X8
BS_MONOPATTERN
Hatch Styles
HS_HORIZONTAL
HS_VERTICAL
HS_FDIAGONAL
HS_BDIAGONAL
HS_CROSS
HS_DIAGCROSS
Pen Styles
PS_SOLID
PS_DASH
PS_DOT
PS_DASHDOT
PS_DASHDOTDOT
PS_NULL
PS_INSIDEFRAME
PS_USERSTYLE
PS_ALTERNATE
PS_STYLE_MASK
Combine Region Styles
RGN_AND
RGN_OR
RGN_XOR
RGN_DIFF
RGN_COPY
RGN_MIN RGN_AND
RGN_MAX RGN_COPY
PolyFill Modes
ALTERNATE
WINDING
POLYFILL_LAST
Text Alignment Options
TA_NOUPDATECP
TA_UPDATECP
TA_LEFT
TA_RIGHT
TA_CENTER
TA_TOP
TA_BOTTOM
TA_BASELINE
TA_RTLREADING
TA_MASK
DrawText Format Flags
DT_TOP
DT_LEFT
DT_CENTER
DT_RIGHT
DT_VCENTER
DT_BOTTOM
DT_WORDBREAK
DT_SINGLELINE
DT_EXPANDTABS
DT_TABSTOP
DT_NOCLIP
DT_EXTERNALLEADING
DT_CALCRECT
DT_NOPREFIX
DT_INTERNAL
DT_EDITCONTROL
DT_PATH_ELLIPSIS
DT_END_ELLIPSIS
DT_MODIFYSTRING
DT_RTLREADING
DT_WORD_ELLIPSIS
DT_NOFULLWIDTHCHARBREAK
DT_HIDEPREFIX
DT_PREFIXONLY
Charsets
ANSI_CHARSET
DEFAULT_CHARSET
SYMBOL_CHARSET
SHIFTJIS_CHARSET
HANGEUL_CHARSET
HANGUL_CHARSET
GB2312_CHARSET
CHINESEBIG5_CHARSET
OEM_CHARSET
JOHAB_CHARSET
HEBREW_CHARSET
ARABIC_CHARSET
GREEK_CHARSET
TURKISH_CHARSET
VIETNAMESE_CHARSET
THAI_CHARSET
EASTEUROPE_CHARSET
RUSSIAN_CHARSET
MAC_CHARSET
BALTIC_CHARSET
Stock Logical Objects
WHITE_BRUSH
LTGRAY_BRUSH
GRAY_BRUSH
DKGRAY_BRUSH
BLACK_BRUSH
NULL_BRUSH
HOLLOW_BRUSH
NULL_BRUSH
WHITE_PEN
BLACK_PEN
NULL_PEN
OEM_FIXED_FONT
ANSI_FIXED_FONT
ANSI_VAR_FONT
SYSTEM_FONT
DEVICE_DEFAULT_FONT
DEFAULT_PALETTE
SYSTEM_FIXED_FONT
Sample:
INIT PRINTSYS
SELECT
DEFAULT PREVIEW
DEFINE FONT
"F0" NAME "Courier New" SIZE 24
START DOC
FOR I := 1 TO 10
START PAGE
@ 10,10 SAY "Page:" + str(I) FONT "F0" TO PRINT
END PAGE
NEXT
END DOC
RELEASE
PRINTSYS
Hints:
The best way to get the most similiar printout on various
printers is to use SET UNITS MM, remembering to use margins large enough for all
printers.
When setting units to rowcol, you must consider that the font is not mapped by
different printer drivers exactly the same. Row height is measured using mapped
printer DC font, so, it slightly differ on various printers.
Setting units mm, printout position is calculated using printer resolution in
pixels-per-inch, so this method is more exact than using units rowcol.
Note: Print preview shows printable area (not whole paper area)
HBPRINTER is a contribution by Ryszard Rylko
<rrylko@cirow.pl>.
PutFile(): Opens a save file window and return the saved
filename.
PutFile ( acFilter , cTitle , cIniFolder , lNoChangeDir )--> cSavedFileName
REGISTRY HANDLING COMMANDS:
OPEN REGISTRY <RegistryHandler> KEY <hKey>
SECTION <cKey>
GET VALUE <uVar>
[NAME <cKey>
]
[ OF
| REGISTRY> <Registryhandler>
]
SET VALUE <cKey>
[ OF
| REGISTRY> <RegistryHandler>
]
[ TO <uVal> ]
DELETE VALUE <cKey>
[ OF | REGISTRY> <oReg>]
CLOSE REGISTRY <RegistryHandler>
.
Random(): Returns an randomly generated number.
Random ( nLimit ) --> nRandomNumber
RELEASE WINDOW / RELEASE
CONTROL COMMANDS / RELEASE
METHOD : Releases GUI objecys from memory.
RELEASE WINDOW <WindowName> |
[ ALL | MAIN ]
RELEASE
CONTROL <ControlName>
OF <WindowName>
<WindowName>. Release
<WindowName>. <ControlName>. Release
If ALL / MAIN clause is used (or main window is specified) all active windows are released and the program is terminated.
RemoveFolder(): Removes specified folder.
RemoveFolder(<cFolder>)->Nil
RELEASE KEY: Releases a key defined via ON KEY command.
RELEASE KEY <Key> OF <WindowName>
Refer to ON KEY command for a list of available keys.
RESTORE WINDOW COMMAND / RESTORE METHOD : Restore a Window.
RESTORE WINDOW
<WindowName>
<WindowName>.Restore
ROW PROPERTY: Set / Gets row position of a gui object.
<ParentWindowName>.<ControlName>.Row := nCol
<ParentWindowName>.<ControlName>.Row --> nCol
SendData(): Send data to another minigui application.
SendData ( <cStationName> , <Data> )--> Nil
SetProperty(): Sets window / control property value.
SetProperty ( <cWindowName>[,<cControlName>],
<cPropertyName> , <PropertyValue>
)
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.
SET BROWSESYNC ON | OFF
SET COMMPATH: Sets the common path for inter-application
communication.
SET COMMPATH TO
<cCommonPathName>
SET FONT: Sets the default font for control definition.
SET HELPFILE :Sets the default help file for a MiniGUI application.
SET HELPFILE TO <cHelpFileName>
SET INTERACTIVECLOSE ON | OFF | QUERY [MAIN]: When setsto OFF the windows can’t be closed with ALT+F4 or Clicking [X]. When set to QUERY, the user is asked for confirmation. Using MAIN clause, user will be asked on close only for main program window.
SET MULTIPLE: Impede attempts to run multiple instaces of the program.
SET MULTIPLE ON | OFF [ WARNING ]
SET NAVIGATION EXTENDED: When set to EXTENDED, pressing ENTER key when focus is in TEXTBOX COMBOBOX or DATEPICKER, acts like TAB key.
SET NAVIGATION EXTENDED | STANDARD
SET REGION:Sets the shape of a window based upon given points coordinates.
SET REGION OF <WindowName>
RECTANGULAR <nRow>,<nCol>,<nWidth>,<nHeight>
SET REGION OF
<WindowName>
ELLIPTIC <nRow>,<nCol>,<nWidth>,<nHeight>
SET REGION OF
<WindowName>
POLYGONAL <aPoints> [ ALTERNATE | WINDING ]
SET REGION OF
<WindowName> RESET
SET STATIONNAME: Sets the station name for inter-application
communication.
SET STATIONNAME TO
<cStationname>
SETFOCUS COMMAND / SETFOCUS METHOD: Gives the focus to a control.
SETFOCUS <ControlName> OF <ParentWindowName>
<ParentWindowName>.<ControlName>. SetFocus
SetCurrentFolder(): Sets the default folder.
SetCurrentFolder(<cFolder>) ->Nil
ShellAbout(): Show the system about window.
ShellAbout
( <cTitle> , <cAdditionalText> ) --> Nil
SHOW WINDOW / SHOW CONTROL COMMANDS /
SHOW METHOD: Shows a gui object.
SHOW WINDOW <WIndowName>
SHOW CONTROL <ControlName> OF <WIndowName>
<WIndowName>. [<ControlName>] . Show
STORE KEY: Stores action block defined via ON KEY command to a variable:
STORE KEY <Key> OF <WindowName> TO <bVar>
THIS OBJECT REFERENCE. It provides a reference to the current control/window in event code.
This.<Property/MethodName>
THISWINDOW OBJECT REFERENCE. It provides a reference to the current control/window in event code.
ThisWindow.<Property/MethodName>
TITLE PROPERTY: Set / Gets title of a window..
<WindowName>.Title :=
cTitle
<WindowName>.Title --> cTitle
TOOLTIP PROPERTY: Set / Gets gui object's tooltip text.
<ParentWindowName>.<ControlName>.ToolTip
:= cToolTipText
<ParentWindowName>.<ControlName>.ToolTip --> cToolTipText
UNCOMPRESS: Uncompress a ZIP file.
UNCOMPRESS [ FILE ] <cZipFile>
EXTRACTPATH <cExtractPath>
[ BLOCK <bBlock> ]
[ CREATEDIR ]
[ PASSWORD <cPassword> ]
VALUE PROPERTY: Sets / Gets
gui object’s value.
<WindowName>.<ControlName>.Value
:= <Value>
<WindowName>.<ControlName>.Value
-> <Value>
<Value> type depends upon the control type:
DATEPICKER : Date.
MONTHCALENDAR: Date
TEXTBOX : Character.
TEXTBOX (Numeric) : Numeric.
TEXTBOX (Password) : Character.
RADIOGROUP : Numeric (Option Selected).
CHECKBOX : Logical.
COMBOBOX : Numeric (Row Selected).
LISTBOX : Numeric (Row Selected).
LISTBOX
(Multiselect): Numeric Array (Rows Selected).
GRID : Numeric (Row Selected).
GRID
(Multiselect): Numeric Array (Rows Selected).
EDITBOX : Character.
TAB : Numeric (Active Page).
SPINNER : Numeric.
SLIDER : Numeric.
BROWSE: Numeric (Selected Record Number (RecNo()))
TIMER : Numeric (Write Only)
PROGRESSBAR : Numeric (Write Only)
WIDTH PROPERTY: Set / Gets width of a gui object.
<ParentWindowName>.<ControlName>.Width := nWidth
<ParentWindowName>.<ControlName>.Width --> nWidth
WIndowsVersion(): Returns an three element array with the name of the used operating system, the service pack and the build number.
WIndowsVersion()--> aWIndowsVersionInfo