Jump: Search:

Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access 2007/2010 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2010 (32 bit), 2007, 2003, 2002, 2000, and
Visual Basic 6.0!

Also available for:
Access 97/95


View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?

 

"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

 

 

 

 

 
Royalty free source code library modules for Microsoft Access, VB6, VBA, OfficeRoyalty free source code library modules for Microsoft Access, VB6, VBA, OfficeVBA and VB6 Source Code Library Download the free trial version of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA
Category: Microsoft Visual Basic 6 : Graphics
Description: Creating graphics using the Windows API and native VB6 commands

Class: CGDIEllipse

Class that draws an ellipse, using Windows API GDI calls.

An ellipse is a circle or oval region whose center is located in the middle of an imaginary bounding rectangle. The routines in this class allow you to draw the ellipse by calling the Windows API Ellipse function.

Procedure Name

Type

Description

(Declarations) Declarations Declarations and private variables for the CGDIEllipse class
BorderColor Property Sets the value of the color used to draw the ellipse
BorderWidth Property Sets the value of the BorderWidth used to draw the ellipse
Bottom Property Sets the Bottom location of the bounding rectangle for the ellipse
BrushStyle Property Gets the current style used to fill the ellipse
FillColor Property Sets the value of the color used to fill the ellipse
ForegroundMixMode Property Gets the current value of the ForegroundMixMode property, which defines how colors from the pen and the colors in the existing image are to be combined. The value should be one of the enumerated raster op values exposed in EnumEllipseRasterOps, or the equivalent VB "DrawModeConstants", such as vbCopyPen, vbXorPen etc. See "Drawing Constants" in the VB on-line help.
HatchStyle Property Gets the current value of the style used to fill the ellipse when the BrushStyle is set to hatched. The value of this property should be set to one of the Windows API Hatch Style constants (HS_HORIZONTAL, HS_BDIAGONAL, HS_CROSS etc.) which are exposed as EnumEllipseHatchStyles constants in this class.
Left Property Gets the Left location of the bounding rectangle for the ellipse
PenStyle Property Sets the style used to draw the ellipse The value of this property should be set to one of the Windows API Pen Style constants (PS_SOLID, PS_DASHDOT etc.) which are exposed as EnumEllipsePenStyles constants in this class.
Right Property Gets the Right location of the bounding rectangle for the ellipse
Top Property Gets the Top location of the bounding rectangle for the ellipse
Class_Initialize Initialize Set initial values to defaults which may be overridden with property settings
Draw3DEllipse Method Draws two Ellipses on a selected device so that they create a 3D effect. This method ignores the regular BorderColor and FillStyle properties, and instead uses the colors which are passed to it to draw a 3D ellipse.
DrawEllipse Method Draw an Ellipse on a selected device. The ellipse is bounded by the dimensions of a rectangle specified in the Left, Top, Bottom and Right properties.
TranslateVBColor Private Translates VB color constants for system colors into GDI equivalents. VB color constants, such as vbRed, or vbBlue, or values returned using the QBColor() or RGB() functions, can be used directly for the color values used with Windows API calls. However, the VB color constants for system colors (vbButtonFace, vb3DShadow etc.) do not map correctly to those expected by Windows. This wrapper function accepts either form of constant, and translates the value, if necessary, into the equivalent value expected by the Windows GDI subsystem.

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

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © FMS, Inc., Vienna, Virginia
Celebrating our 26th Year of Software Excellence