
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide
[^^Up^^]
[Menu] [About The Guide]
WToolbarDialog Toolbar dialog class
----------------------------------------------------------------------------
WToolbarDialog
Toolbar dialog class
----------------------------------------------------------------------------
Properties
Height The height of the dialog window, in pixels.
Visible A logical controlling whether the window is visible
WndStyle The dialog's usual style (a combination of WS_* values)
Methods
WToolbarDialog:Move() Re-position and/or change size of the status bar's window
WToolbarDialog:OnSetFocus() Input focus gained message
Inherits From
WDialog
Inherited By
Nothing.
Description
This is the class for a toolbar dialog. As a dialog, you can
use any controls in it.
Because Clip-4-Win uses "smart dialogs with dumb controls",
few properties and few methods are required in this class or
most sub-classes. (The WDialog class provides the logic,
rather than spreading it across the controls.)
Example
// From SOURCE\OO\CLASSES\TOOLBDLG.PRG:
METHOD Init(oParent, cnId_aDlg, lCreate) CLASS MyToolBar
// . . .
if cnId_aDlg == nil
INIT DIALOG self Style ::WndStyle At 0,0 Size 200,16
// . . .
else
@ Id IDD_BTN Button
@ Id IDD_BMPOPEN Button Bitmap ResId IDB_BMPOPEN ;
Help WHelp{"Open a file"}
@ Id IDD_BMPPRINT Button Bitmap ResId IDB_BMPPRINT ;
Help WHelp{"Print"}
@ Id IDD_BMPEXIT Button Bitmap ResId IDB_BMPEXIT Exit ;
Help WHelp{"Exit this application"}
@ Id IDD_BMPHELP Button Bitmap ResId IDB_BMPHELP ;
Help WHelp{"Help"}
@ Id IDD_EDIT Obj ::oName Edit Text "YOURNAME"
@ Id IDD_CBOX Obj ::oCB ComboBox Items {"A List", "Of Choices"}
endif
// . . .
See Also (press Enter)
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson