Home page HwGUI 2.16 reference manual  
prev Alexander S.Kresin, September 2006 next


5. Functions

5.1. Common dialogs
5.1.1. hwg_SelectFont( [ oFont ] )

This function calls the standard dialog for font selecting.

Usually it isn't needed to call this function directly, use HFont():Select( oFont ) instead.

5.1.2. hwg_SelectFile( xDescript,xMask,[ cInitDir ], [ cTitle ] )

This function calls the standard dialog for file selecting.


5.1.3. hwg_SaveFile( cPrompt,cDescript,cMask,cInitDir,cTitle )

This function calls the standard dialog for file saving.


5.1.4. hwg_PrintSetup( @cPrinterName )

This function calls the standard dialog for printer selecting.


5.1.5. hwg_ChooseColor( nColorCurrent )

This function calls the standard dialog for color selecting.


5.2. MessageBoxes and HwGUI dialogs
5.2.1. MsgInfo( cMessage,cTitle )


5.2.2. MsgStop( cMessage,cTitle )


5.2.3. MsgOkCancel( cMessage,cTitle )


5.2.4. MsgYesNo( cMessage,cTitle )


5.2.5. MsgBeep( nSound )


5.2.6. MsgGet( cTitle, cText, nStyle, x, y, nDlgStyle )


5.2.7. WChoice( arr, cTitle, nLeft, nTop, oFont, clrT, clrB, clrTSel, clrBSel, cOk, cCancel )


5.3. Drawing functions.
5.3.1. Overview

This is a set of functions, which is intended for drawing on a window or control surface. There are few things I want to note before these functions will be described:

5.4. Menu functions
5.4.1. CheckMenuItem( [oMenu|hWindow], nId, lCheck )

Checks or unchecks a menu item.


5.4.2. IsCheckedMenuItem( [oMenu|hWindow], nId )

Returns .T. if the menu item is checked, and .F. in other case.


5.4.3. EnableMenuItem( [oMenu|hWindow], nId|nPos, lEnable[, lId] )

Enables or disables a menu item.

If you enable/disable top level menu item, you need to call DrawMenuBar( hWindow ) function ( where hWindow is a handle of the window - menu owner ) to repaint the menu.


5.4.4. IsEnabledMenuItem( [oMenu|hWindow], nId|nPos[, lId] )

Returns .T. if the menu item is Enabled, and .F. in other case.


5.4.5. SetMenuCaption( [oMenu|hWindow], nId, cCaption )

Change a caption of a menu item.


prev table of contents next
commands   classes