HwGUI 2.20: справочное руководство  
назад Александр С. Кресин, Октябрь 2016 вперед


4. Команды

4.1. Команды для окон и диалогов

4.1.1. INIT WINDOW

Эта команда создает окно, главное, главное MDI или MDI CHILD. Чтобы оно появилось на экране, вам надо активировать его с помощью команды ACTIVATE WINDOW или метода Activate() объекта окна.

      INIT WINDOW <oWnd>
    	 [ MAIN ]
    	 [ MDI ]
    	 [ MDICHILD ]
         [ APPNAME <appname> ]
    	 [ TITLE <cTitle> ]
    	 [ AT <x>, <y> ]
    	 [ SIZE <width>, <height> ]
    	 [ ICON <ico> ]
    	 [ SYSCOLOR <sysclr> ]
    	 [ BACKCOLOR <clr> ]
         [ BACKGROUND BITMAP <oBmp>> ]
    	 [ STYLE <nStyle> ]
    	 [ FONT <oFont> ]
    	 [ MENUPOS <nPos> ]
    	 [ ON INIT <bInit> ]
    	 [ ON SIZE <bSize> ]
    	 [ ON PAINT <bPaint> ]
    	 [ ON GETFOCUS <bGfocus> ]
    	 [ ON LOSTFOCUS <bLfocus> ]
    	 [ ON CLOSEQUERY <bCloseQuery> ];
    	 [ ON OTHER MESSAGES <bOther> ]
    	 [ ON EXIT <bExit>]
         [ HELP <cHelp> ]
         [ HELPID <nHelpId> ]
    

MAIN,MDI,MDICHILD определяют тип окна, только один из этих clauses может быть использован в команде.
cTitle - заголовок окна;
x,y,width,height - координаты и размеры окна;
ico - иконка для окна, объект класса HIcon;
clr - цвет фона окна;
nStyle - WinAPI стиль окна;
oFont - шрифт для окна, объект класса HFont;
nPos - идентифицирует раздел меню, где будут располагаться элементы меню для MDI CHILD окон.
bSize - кодоблок, исполняемый при изменении размеров окна;
bPaint - кодоблок, отрисовывающий окно;
bGFocus - кодоблок, исполняемый при получении окном фокуса;
bLFocus - кодоблок, исполняемый при потере окном фокуса;
bExit - кодоблок, исполняемый когда окно закрывается;
bOther - кодоблок для всех сообщений;

4.1.2. INIT DIALOG

Эта команда создает диалог. Чтобы он появился на экране, его надо будет активировать при помощи команды ACTIVATE DIALOG или метода Activate().

      INIT DIALOG <oWnd>
    	 [ TITLE <cTitle> ] 
    	 [ AT <x>, <y> ] 
    	 [ SIZE <width>, <height> ] 
         [ ICON <ico> ] 
         [ BACKGROUND BITMAP <oBmp> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ BACKCOLOR <clr> ]
    	 [ CLIPPER ] 
    	 [ NOEXIT ] 
    	 [ NOEXITESC ]
    	 [ NOCLOSABLE ]
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
    	 [ ON OTHER MESSAGES <bOther> ] 
    	 [ ON EXIT <bExit> ] 
    	 [ HELPID <nHelpId>> ]
    

Все clauses аналогичны тем, что в команде INIT WINDOW, добавлены только два новых:
CLIPPER - для имитации Клипперовского диалога - клавиша Enter используется для перемещения между GET'ами;
NOEXIT - нажатие Enter на последнем GET не приводит к закрытию диалога.


4.1.3. ACTIVATE WINDOW
      ACTIVATE WINDOW <oWnd>
             [ NOSHOW ]
             [ MAXIMIZED ]
             [ MINIMIZED ]
             [ CENTER ]
             [ ON ACTIVATE <bInit> ]
    

Показывает предварительно созданное окно на экране и начинает обработку сообщений для него, эквивалентна вызову метода oWnd:Activate().


4.1.4. ACTIVATE DIALOG
      ACTIVATE DIALOG <oDlg>
             [ NOMODAL ]
             [ MAXIMIZED ]
             [ MINIMIZED ]
             [ CENTER ]
             [ ON ACTIVATE <bInit> ]
    

Показывает предварительно созданный диалог на экране и начинает обработку сообщений для него, эквивалентна вызову метода oDlg:Activate().


4.2. Меню

4.2.1. MENU

      MENU [ OF <oWnd> ] [ ID <nId> ] [ TITLE <cTitle> ]
    

4.2.2. ENDMENU

      ENDMENU
    

4.2.3. MENUITEM

    MENUITEM <item> [ ID <nId> ] 
        ACTION <act> 
        [ BITMAP <bmp> ] 
        [ ACCELERATOR <flag>, <key> ] 
        [ <lDisabled: DISABLED> ]
    

4.2.4. MENUITEMCHECK

    MENUITEMCHECK <item> [ ID <nId> ] 
        ACTION <act> 
        [ ACCELERATOR <flag>, <key> ] 
        [ <lDisabled: DISABLED> ]
    

4.2.5. SEPARATOR

      SEPARATOR
    

4.2.6. CONTEXT MENU

      CONTEXT MENU <oMenu>
    

4.2.7. ACCELERATOR

      ACCELERATOR <flag>, <key>  
                [ ID <nId> ] 
                ACTION <act>
    

4.3. Команды для виджетов

Все эти команды создают новые виджеты, они конвертируются препроцессором в вызовы метода New() соответствующих классов.


4.3.1. ADD STATUS TO

    ADD STATUS [ TO <oWnd> ]
    	 [ ID <nId> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ PARTS <aparts,...> ]
    

4.3.2. @ <x>,<y> SAY

    @ <x>,<y> SAY [ <oSay> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ TRANSPARENT ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.3.3. @ <x>,<y> EDITBOX

    @ <x>,<y> EDITBOX [ <oEdit> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
         [ ON KEYDOWN <bKeyDown>]
         [ ON CHANGE <bChange> ]
    	 [ STYLE <nStyle> ] 
         [ NOBORDER ] 
         [ PASSWORD ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.3.4. @ <x>,<y> BUTTON

    @ <x>,<y> BUTTON [ <oButton> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.3.5. @ <x>,<y> CHECKBOX

    @ <x>,<y> CHECKBOX [ <oCheck> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ TRANSPARENT ] 
    	 [ INIT <lInit> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.3.6. @ <x>,<y> COMBOBOX

    @ <x>,<y> COMBOBOX [ <oCombo> ITEMS ] <aItems>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ INIT <nInit> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CHANGE <bChange> ] 
         [ ON GETFOCUS <bWhen> ]
         [ ON LOSTFOCUS <bValid> ]
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ] 
    	 [ EDIT ] 
    	 [ TEXT ]
    	 [ DISPLAYCOUNT ]
    

4.3.7. @ <x>,<y> RADIOBUTTON

    @ <x>,<y> RADIOBUTTON [ <oRadio> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    	 [ TRANSPARENT ]
    

4.3.8. RADIOGROUP
       RADIOGROUP
    

4.3.9. END RADIOGROUP
       END RADIOGROUP [ SELECTED <nSel> ]
    

4.3.10. @ <x>,<y> PANEL

    @ <x>,<y> PANEL <oPanel>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ STYLE <nStyle> ]
    

4.3.11. ADD TOP PANEL

    ADD TOP PANEL [ <oPanel> ] TO <oWnd>
    	 [ ID <nId> ] 
         HEIGHT <height>
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ STYLE <nStyle> ]
    

4.3.12. ADD STATUS PANEL

    ADD STATUS PANEL [ <oPanel> ] TO <oWnd>
    	 [ ID <nId> ] 
         HEIGHT <height>
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON PAINT <bDraw> ] 
         [ FONT <oFont> ]
         [ HSTYLE <oStyle> ]
         [ PARTS <aparts,...> ]

    

4.3.13. @ <x>,<y> BROWSE

    @ <x>,<y> BROWSE <oBrowse>
    	 [ ARRAY ] 
    	 [ DATABASE ] 
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ ON RIGHTCLICK <bRClick> ] 
    	 [ ON GETFOCUS <bGetFocus> ] 
    	 [ ON LOSTFOCUS <bLostFocus> ] 
    	 [ STYLE <nStyle> ] 
         [ <lNoVScr: NO VSCROLL> ] 
         [ <lNoBord: NO BORDER> ] 
    	 [ FONT <oFont> ] 
         [ APPEND ] 
         [ AUTOEDIT ] 
         [ ON UPDATE <bUpdate> ] 
         [ ON KEYDOWN <bKeyDown> ] 
         [ ON POSCHANGE <bPosChg> ]
         [ MULTISELECT ]
    

4.3.14. @ <x>,<y> BROWSE <oBrw> FILTER

    @ <x>,<y> BROWSE <oBrowse> FILTER
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ ON RIGHTCLICK <bRClick> ] 
    	 [ ON GETFOCUS <bGetFocus> ] 
    	 [ ON LOSTFOCUS <bLostFocus> ] 
    	 [ STYLE <nStyle> ] 
         [ <lNoVScr: NO VSCROLL> ] 
         [ <lNoBord: NO BORDER> ] 
    	 [ FONT <oFont> ] 
         [ APPEND ] 
         [ AUTOEDIT ] 
         [ ON UPDATE <bUpdate> ] 
         [ ON KEYDOWN <bKeyDown> ] 
         [ ON POSCHANGE <bPosChg> ]
         [ MULTISELECT ]
         [ DESCEND> ]
         [ WHILE <bWhile> ]
         [ FIRST <bFirst> ]
         [ LAST <bLast> ]
         [ FOR <bFor> ]
    

4.3.15. ADD COLUMN

    ADD COLUMN <block> <
    	 TO <oBrowse>  
    	 [ HEADER <cTitle> ] 
    	 [ TYPE <type> ] 
    	 [ LENGTH <length> ] 
    	 [ DEC <dec> ] 
         [ <lEdit: EDITABLE> ] 
         [ JUSTIFY HEAD <nJusHead> ] 
         [ JUSTIFY LINE <nJusLine> ] 
         [ PICTURE <cPict> ] 
         [ VALID <bValid> ] 
         [ WHEN <bWhen> ] 
         [ ITEMS <aItem> ] 
         [ COLORBLOCK <bClrBlck> ]
         [ BHEADCLICK <bHeadClick> ]
    

4.3.16. INSERT COLUMN

    INSERT COLUMN <block> <
    	 TO <oBrowse>  
    	 [ HEADER <cTitle> ] 
    	 [ TYPE <type> ] 
    	 [ LENGTH <length> ] 
    	 [ DEC <dec> ] 
         [ <lEdit: EDITABLE> ] 
         [ JUSTIFY HEAD <nJusHead> ] 
         [ JUSTIFY LINE <nJusLine> ] 
         [ PICTURE <cPict> ] 
         [ VALID <bValid> ] 
         [ WHEN <bWhen> ] 
         [ ITEMS <aItem> ] 
         [ COLORBLOCK <bClrBlck> ]
         INTO <nPos>
    

4.3.17. @ <x>,<y> OWNERBUTTON

    @ <x>,<y> OWNERBUTTON <oOwnBtn>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FLAT ] 
    	 [ DISABLED ] 
    	 [ TEXT <cText> 
    	    [ COLOR <color> ] [ FONT <font> ] 
    	    [ COORDINATES <xt>, <yt>, <widthtt>, <heightt> ] 
    	 ] 
    	 [ BITMAP <bmp> [ FROM RESOURCE ] [ TRANSPARENT [COLOR  <trcolor> ] ]
    	    [ COORDINATES <xb>, <yb>, <widthtb>, <heightb> ] 
    	 ]
         [ TOOLTIP <ctoolt> ]
         [ CHECK ]
    

4.3.18. @ <x>,<y> SHADEBUTTON

    @ <x>,<y> SHADEBUTTON <oOwnBtn>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
         [ EFFECT <shadeID>  [ PALETTE <palet> ]
              [ GRANULARITY <granul> ] [ HIGHLIGHT <highl> ]
              [ COLORING <coloring> ] [ SHCOLOR <shcolor> ] ]
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FLAT ] 
    	 [ DISABLED ] 
    	 [ TEXT <cText> 
    	    [ COLOR <color> ] [ FONT <font> ] 
    	    [ COORDINATES <xt>, <yt>, <widthtt>, <heightt> ] 
    	 ] 
    	 [ BITMAP <bmp> [ FROM RESOURCE ] [ TRANSPARENT [COLOR  <trcolor> ] ]
    	    [ COORDINATES <xb>, <yb>, <widthtb>, <heightb> ] 
    	 ]
         [ TOOLTIP <ctoolt> ]
         [ CHECK ]
    

4.3.19. @ <x>,<y> GROUPBOX
    @ <x>,<y> GROUPBOX [ <oGroup> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ]
    

4.3.20. @ <x>,<y> DATEPICKER
    @ <x>,<y> DATEPICKER [ <oPicker> ]
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ]
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ INIT <value> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON GETFOCUS <bGetFocus> ] 
    	 [ ON LOSTFOCUS <bLostFocus> ]
    	 [ ON CHANGE <bChange> ]
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.3.21. @ <x>,<y> UPDOWN

    @ <x>,<y> UPDOWN [ <oUpDown> INIT ] <nInit>
    	 RANGE <nLower>, <nUpper> 
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ WIDTH <nUpdWidth> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.3.22. @ <x>,<y> TAB

    @ <x>,<y> TAB [ <oTab> ITEMS ] <aTabs>
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ ON CHANGE <bChange> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
    	 [ BITMAP <aBmp> [ FROM RESOURCE] [ BITCOUNT <nBC> ] ]
    

4.3.23. BEGIN PAGE

    BEGIN PAGE <cname> OF <oTab>
    


4.3.24. END PAGE, ENDPAGE

Два варианта одной и той же команды. Конец страницы TAB'а:

    END PAGE OF <oTab>
      или
    ENDPAGE OF <oTab>
    


4.3.25. @ <x>,<y> TREE

    @ <x>,<y> TREE [ <oTree> ]
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ FONT <oFont> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON CLICK <bClick> ] 
    	 [ STYLE <nStyle> ] 
             [ EDITABLE ] 
             [ BITMAP <aBmp>  [ FROM RESOURCE ] [ BITCOUNT <nBC> ] ]
    

4.3.26. INSERT NODE

    INSERT NODE [ <oNode> TITLE ] <cTitle>
    	 TO <oTree>  
    	 [ AFTER <oPrev> ] 
    	 [ BEFORE <oNext> ] 
    	 [ BITMAP <aBmp> ] 
    	 [ ON CLICK <bClick> ]
    

4.3.27. @ <x>,<y> BITMAP

    @ <x>,<y> BITMAP [ <oBmp> SHOW ] <bitmap> 
             [<res: FROM RESOURCE> ] 
                [ OF <oWnd> ] 
                [ ID <nId> ] 
                [ SIZE <width>, <height> ]
                [ BACKCOLOR <bcolor> ]
                [ STRETCH <nStretch>]
                [ TRANSPARENT> [COLOR  <trcolor> ]]
                [ ON INIT <bInit> ] 
                [ ON SIZE <bSize> ] 
                [ TOOLTIP <ctoolt> ]
    

4.3.28. @ <x>,<y> ICON

    @ <x>,<y> ICON [ <oBmp> SHOW ] <icon> 
             [<res: FROM RESOURCE> ] 
                [ OF <oWnd> ] 
                [ ID <nId> ] 
                [ SIZE <width>, <height> ] 
                [ ON INIT <bInit> ] 
                [ ON SIZE <bSize> ] 
                [ TOOLTIP <ctoolt> ]
    

4.3.29. @ <x>,<y> IMAGE

    @ <x>,<y> IMAGE [ <oBmp> SHOW ] <image> 
                [ OF <oWnd> ] 
                [ ID <nId> ] 
                [ ON INIT <bInit> ] 
                [ ON SIZE <bSize> ] 
                [ TOOLTIP <ctoolt> ]
    

4.3.30. @ <x>,<y> LINE

    @ <x>,<y> LINE [ <oLine> ] 
                [ LENGTH <length> ] 
                [ OF <oWnd> ] 
                [ ID <nId> ] 
                [ VERTICAL] 
                [ ON SIZE <bSize> ]
    

4.3.31. @ <x>,<y> RICHEDIT

    @ <x>,<y> RICHEDIT [ <oEdit> TEXT ] <vari> 
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ ON INIT <bInit> ] 
         [ ON SIZE <bSize> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
         [ ON CHANGE <bChange>]
         [[ON OTHER MESSAGES <bOther>]
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
         [ TOOLTIP <ctoolt> ]
    

4.3.32. @ <x>,<y> SPLITTER

    @ <x>,<y> SPLITTER [ <oSplit> ]  
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
         [ DIVIDE  <aLeft> FROM <aRight> ]
         [ LIMITS [<nFrom>][,<nTo>] ]
    

4.3.33. @ <x>,<y> GRAPH

    @ <x>,<y> GRAPH [ <oGraph> DATA ] <aData> 
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ ON SIZE <bSize> ] 
    	 [ FONT <oFont> ] 
         [ TOOLTIP <ctoolt> ]
    

4.3.34. @ <x>,<y> PROGRESSBAR

    @ <x>,<y> PROGRESSBAR <oPBar>  
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
         [ BARWIDTH <maxpos> ] 
         [ QUANTITY <nRange> ]
    

4.3.35. @ <x>,<y> MONTHCALENDAR

    @ <x>,<y> MONTHCALENDAR [ <oCalendar> ] 
         [ OF <oWnd> ] 
         [ ID <nId> ] 
         [ INIT <dInit> ] 
    	 [ SIZE <width>, <height> ] 
         [ ON INIT <bInit> ] 
         [ ON CHANGE <bChange> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
         [ TOOLTIP <ctoolt> ] 
         [ NOTODAY ] 
         [ NOTODAYCIRCLE ] 
         [ WEEKNUMBERS ]
    

4.3.36. @ <x>,<y> LISTBOX

    @ <x>,<y> LISTBOX [ <oList> ITEMS ] <aItems>  
         [ OF <oWnd> ] 
         [ ID <nId> ] 
         [ INIT <dInit> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ ON INIT <bInit> ] 
         [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
         [ ON CHANGE <bChange> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
         [ ON KEYDOWN <bKeyDown> ]
         [ ON DBLCLICK <bDblClick> ]
         [[ON OTHER MESSAGES <bOther>]
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
         [ TOOLTIP <ctoolt> ]
    

4.3.37. SPLASH

    SPLASH [ <oPBar> TO ] <oBitmap>  
                [ FROM RESOURCE ] 
                [ TIME <otime> ]
                [WIDTH <w> ]
                [HEIGHT <h> ]
    

4.3.38. @ <x>,<y> TRACKBAR

    @ <x>,<y> TRACKBAR [ <oTrack> ]  
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ RANGE <nLow>, <nHigh> ] 
         [ INIT <dInit> ] 
         [ ON INIT <bInit> ] 
         [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
         [ ON CHANGE <bChange> ] 
         [ ON DRAG <bDrag> ] 
    	 [ STYLE <nStyle> ] 
         [ TOOLTIP <ctoolt> ] 
         [ VERTICAL ] 
         [ AUTOTICKS ] 
         [ NOTICKS ] 
         [ BOTH ] 
         [ TOP ] 
         [ LEFT ]
    

4.3.39. @ <x>,<y> ANIMATION

    @ <x>,<y> ANIMATION [ <oAnimation> ]
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ STYLE <nStyle> ] 
    	 [ SIZE <width>, <height> ] 
         [ FILE <cFile> ] 
         [ AUTOPLAY ] 
         [ CENTER ] 
         [ TRANSPARENT ]
    

4.3.40. @ <x>,<y> GRID

    @ <x>,<y> GRID [ <oGrid> ]
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ STYLE <nStyle> ] 
    	 [ SIZE <width>, <height> ] 
         [ FONT <oFont> ] 
         [ ON INIT <bInit> ] 
         [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
         [ ON CLICK <bClick> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
         [ ON KEYDOWN <bKeyDown> ]
         [ ON POSCHANGE <bPosChg> ]
         [ ON DISPINFO <bdisp> ]
         [ ITEMCOUNT <nItemCount> ]
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ NOSCROLL> ]
         [ NOBORDER> ]
         [ NOGRIDLINES> ]
         [ NO HEADER> ]
         [BITMAP <aBit>]
    

4.3.41. ADD COLUMN TO GRID

    ADD COLUMN TO GRID <oGrid>
         [ HEADER <cHeader> ]
         [ WIDTH <nWidth> ]
         [ JUSTIFY HEAD <nJusHead> ]
         [ BITMAP <n> ]
    

4.3.42. ADDROW TO GRID

    ADD ROW TO GRID <oGrid>
         [ HEADER <cHeader> ]
         [ JUSTIFY HEAD <nJusHead> ]
         [ BITMAP <n> ]
         [ HEADER <cHeadern> ]
         [ JUSTIFY HEAD <nJusHeadn> ]
         [ BITMAP <nn> ]
    

4.3.43. @ <x>,<y> RECT

    @ <X>, <Y>, <X2>, <Y2> RECT 
         [ PRESS ]
         [OF <oWnd>]
         [RECT_STYLE <nST>]
    

4.3.44. @ <x>,<y> SAY (LINK)

    @ <x>,<y> SAY [ <oSay> CAPTION ] <caption>
    	 [ OF <oWnd> ]; 
    	 LINK <cLink>
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ TRANSPARENT ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bDraw> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
         [ VISITCOLOR <vcolor> ]
         [ LINKCOLOR <lcolor> ]
         [ HOVERCOLOR <hcolor> ]
    

4.3.45. @ <x>,<y> TOOLBAR

    @ <x>,<y> TOOLBAR [ <oTool> ]
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ]
    	 [ STYLE <nStyle> ]
    	 [ ITEMS <aItems> ]
    

4.3.46. TOOLBUTTON, ADD TOOLBUTTON

    TOOLBUTTON  <O< ;
         ID <nId> ;
         [ BITMAP <nBitIp> ];
    	 [ STYLE <nStyle> ]
         [ STATE <bstate>]
         [ TEXT <ctext> ]
         [ TOOLTIP <c> ]
         [ MENU <d>]
         ON CLICK <bclick>
    

4.3.47. @ <x>,<y> PAGER

    @ <x>,<y> PAGER [ <oPager> ]
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ]
    	 [ STYLE <nStyle> ]
    	 [ VERTICAL ]
    

4.3.48. @ <x>,<y> REBAR

    @ <x>,<y> REBAR [ <oRebar> ]
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ]
    	 [ STYLE <nStyle> ]
    

4.3.49. ADDBAND <oWnd> TO <oPage>

    ADDBAND <hWnd> TO <opage>
         [BACKCOLOR <b> ] [FORECOLOR <f>]
         [STYLE <nstyle>] [TEXT <t>]
    

4.3.50. @ <x>,<y> SHAPE

    @ <x>,<y> SHAPE [ <oShape> ]
         [ OF <oWnd> ] 
         [ ID <nId> ] 
    	 [ SIZE <width>, <height> ]
         [ BORDERWIDTH <nBorder> ]
         [ CURVATURE <nCurvature>]
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ BORDERSTYLE <nbStyle>]
         [ FILLSTYLE <nfStyle>]
         [ BACKSTYLE <nbackStyle>]
         [ ON INIT <bInit> ]
         [ ON SIZE <bSize> ]
    

4.3.51. @ <x>,<y> HCEDIT

    @ <x>,<y> HCEDIT [ <oEdit> ]
    	 [ OF <oWnd> ]; 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
    	 [ STYLE <nStyle> ] 
         [ NOBORDER ] 
         [ NO VSCROLL ] 
    	 [ FONT <oFont> ] 
    
4.4. Get система

Get система реализована на базе тех же классов, что и соответствующие виджеты ( HEdit, HCheckButton, и пр. ), изменяется только поведение объектов этих классов.


4.4.1. @ <x>,<y> GET

    @ <x>,<y> GET [ <oEdit> VAR ] <vari>
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ PICTURE <cPicture> ] 
    	 [ WHEN <bWhen> ] 
    	 [ VALID <bValid> ] 
         [ ON KEYDOWN <bKeyDown> ]
         [ ON CHANGE <bChange> ]
         [ ON INIT <bInit> ]
         [ ON SIZE <bSize> ]
         [ NOBORDER ] 
         [ PASSWORD ] 
         [ MAXLENGTH <lMaxLength> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.4.3. @ <x>,<y> GET CHECKBOX

    @ <x>,<y> GET CHECKBOX [ <oEdit> VAR ] <vari>
             CAPTION  <caption>
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ TRANSPARENT ]
    	 [ VALID,ON CLICK <bValid> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
         [ ON INIT <bInit> ]
         [ ON SIZE <bSize> ]
    	 [ TOOLTIP <ctoolt> ]
    	 [ WHEN <bWhen> ]
    

4.4.5. @ <x>,<y> GET COMBOBOX

    @ <x>,<y> GET COMBOBOX [ <oCombo> VAR ] <vari>
         ITEMS ] <aItems> 
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
         [ ON INIT <bInit> ]
         [ ON SIZE <bSize> ]
    	 [ ON CHANGE <bChange> ]
         [ WHEN <bWhen> ]
         [ VALID <bValid> ]
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ EDIT ] 
    	 [ TEXT ] 
    	 [ TOOLTIP <ctoolt> ]
    	 [ DISPLAYCOUNT <nDisplay>]
    

4.4.7. GET RADIOGROUP

       GET RADIOGROUP [ <ogr> VAR ] <vari>
    

4.4.8. @ <x>,<y> GET RADIOGROUP

       @ <x>,<y> GET RADIOGROUP [ <ogr> VAR ] <vari>
         [ CAPTION  <caption> ]
    	 [ OF <oWnd>]  
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ FONT <oFont> ] 
    	 [ STYLE <nStyle> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    

4.4.9. @ <x>,<y> GET DATEPICKER

    @ <x>,<y> GET DATEPICKER [ <oPick> VAR ] <vari>
    	 [ OF <oWnd>]  
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ WHEN <bWhen> ] 
    	 [ VALID <bValid> ] 
         [ ON INIT <bInit> ]
         [ ON SIZE <bSize> ]
    	 [ ON CHANGE <bChange> ]
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
    

4.4.10. @ <x>,<y> GET UPDOWN

    @ <x>,<y> GET UPDOWN[ <oUpDown> VAR ] <vari>
    	 RANGE <nLower>, <nUpper> 
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ WIDTH <nUpdWidth> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ PICTURE <cPicture> ] 
    	 [ WHEN <bWhen> ] 
    	 [ VALID <bValid> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
         [ ON INIT <bInit> ]
         [ ON SIZE <bSize> ]
    	 [ TOOLTIP <ctoolt> ]
    

4.4.11. GET IPADDRESS

    @ <x>,<y> GET IPADDRESS [ <oIp> VAR ] <vari>
    	 [ OF <oWnd>]  
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ ON GETFOCUS <bGfocus> ] 
    	 [ ON LOSTFOCUS <bLfocus> ] 
    

4.4.12. GET LISTBOX

    @ <x>,<y> GET LISTBOX[ <oList> VAR ] <vari>
    	 ITEMS <aItems>
    	 [ OF <oWnd> ] 
    	 [ ID <nId> ] 
    	 [ SIZE <width>, <height> ] 
    	 [ COLOR <tcolor> ] 
    	 [ BACKCOLOR <bcolor> ] 
    	 [ ON INIT <bInit> ] 
    	 [ ON SIZE <bSize> ] 
    	 [ ON PAINT <bPaint> ] 
    	 [ ON CHANGE <bChg> ]
    	 [ WHEN <bWhen> ] 
    	 [ VALID <bValid> ] 
    	 [ STYLE <nStyle> ] 
    	 [ FONT <oFont> ] 
    	 [ TOOLTIP <ctoolt> ]
         [ ON KEYDOWN <bKeyDown> ]
         [ ON DBLCLICK <bDblClick> ]
         [[ON OTHER MESSAGES <bOther>]
    

4.4.13. SET KEY

     SET KEY <nctrl>, <nkey> [ OF <oDlg> ] [ TO <func> ]
    

4.5. Печать
4.5.1. INIT PRINTER

    INIT PRINTER <oPrinter>
             [ NAME <cPrinter> ] 
             [ PIXEL ]
    

4.5.2. INIT DEFAULT PRINTER

    INIT DEFAULT PRINTER <oPrinter>
             [ PIXEL ]
    

4.6. Прочие команды
4.6.1. SET TIMER

    SET TIMER [ <oTimer> ]
    	 [ OF <oWnd> ]  
    	 [ ID <id> ] 
    	 VALUE <value>  
    	 ACTION <bAction>
    

4.6.2. SET RESOURCES TO

       SET RESOURCES TO [<cName>]
    

4.6.3. SET RESOURCES CONTAINER TO

Открывает файл бинарного контейнера cName и устанавливает его как текущий для извлечения ресурсов. Соответствующая функция: hwg_SetResContainer( cName ).

       SET RESOURCES CONTAINER TO [<cName>]
    

4.6.4. PREPARE FONT

    PREPARE FONT <oFont>
         NAME <cName>
         [ WIDTH <nWidth> ]
         [ HEIGHT <nHeight> ]
         [ WEIGHT <nWeight> ]
         [ CHARSET <charset> ]
         [ ITALIC ]
         [ UNDERLINE ]
         [ STRIKEOUT ]
    

назад содержание вперед
Начало   Функции