"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Module: modSimulatedControls
Routines to draw simulated controls. Windows contains a function "DrawFrameControl" to create an image of several standard Windows "widgets" -- check boxes, menu items, scroll bar controls and so forth. The functions in this module expose this function to your application.
You might want to use these simulated controls for several reasons. Perhaps you are creating documentation of the appearance of a form, and you wish to create a graphic you can display or print. You might be creating lightweight "graphical" user controls and wanting to draw the appearance of the controls on your user control rather than using an actual control.
Because the controls are drawn by Windows, their appearance depends on the users' Windows color and font preferences.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modSimulatedControls module
|
|
DrawCaptionClose
|
Procedure
|
Draw the image of the titlebar "close" button on a form or picture box
|
|
DrawCaptionHelp
|
Procedure
|
Draw the image of the titlebar "help" button on a form or picture box
|
|
DrawCaptionMax
|
Procedure
|
Draw the image of the titlebar "maximize" button on a form or picture box
|
|
DrawCaptionMin
|
Procedure
|
Draw the image of the titlebar "minimize" button on a form or picture box
|
|
DrawCaptionRestore
|
Procedure
|
Draw the image of the titlebar "restore" button on a form or picture box
|
|
DrawCheckBox
|
Procedure
|
Draw the image of a check box on a form or picture box
|
|
DrawMenuArrow
|
Procedure
|
Draw the image of a menu arrow on a form or picture box
|
|
DrawMenuArrowRight
|
Procedure
|
Draw the image of a menu arrow on a form or picture box (used for right-to-left language versions of Windows)
|
|
DrawMenuBullet
|
Procedure
|
Draw the image of a menu bullet on a form or picture box
|
|
DrawMenuCheck
|
Procedure
|
Draw the image of a menu check mark on a form or picture box
|
|
DrawOptionButton
|
Procedure
|
Draw the image of an option button on a form or picture box
|
|
DrawPushButton
|
Procedure
|
Draw the image of a push botton on a form or picture box
|
|
DrawScrollComboBox
|
Procedure
|
Draw the image of a combo box down-arrow on a form or picture box
|
|
DrawScrollDown
|
Procedure
|
Draw the image of a scroll bar down-arrow on a form or picture box
|
|
DrawScrollLeft
|
Procedure
|
Draw the image of a scrollbar left arrow on a form or picture box
|
|
DrawScrollRight
|
Procedure
|
Draw the image of a scrollbar right arrow on a form or picture box
|
|
DrawScrollSizeGrip
|
Procedure
|
Draw the image of a form's sizing grip on a form or picture box
|
|
DrawScrollSizeGripRight
|
Procedure
|
Draw the image of a form's sizing grip on a form or picture box (used for right-to-left language versions of Windows)
|
|
DrawScrollUp
|
Procedure
|
Draw the image of a scrollbar up arrow on a form or picture box
|
|
DrawTriStateCheckBox
|
Procedure
|
Draw the image of a three-state check box on a form or picture box
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|