|
HOME, PRODUCTS, ARTICLESCONTACTGLOSS CONTOUR SUITE™ FOR .NET |
![]() GlossContourButton™ WALKTHROUGH |
|
DOWNLOAD OR BUY Gloss Contour Suite™GCSuite™ FEEDBACKGCSuite™ SUPPORTC# OR .NET TECHNICAL ARTICLE FEEDBACK |
|
GlossContourButton™. |
|
WALKTHROUGH 2 — DESIGNING GlossContourButtons™, DEPLOYING AS ContourServers™ OR ContourClients™ |
|
While its class name certainly refers to extended capabilities, GlossContourButton™ was designed to fill both flat or contoured button roles more efficiently other button alternatives. In other words, GlossContourButton™ was designed to be the basic button of your UI development efforts, even in flat, stand-alone form.
GlossContourButtons™ as ContourClients™ of their parent GlossContourSurface™. Besides expediting group drawing, ContourClient™ deployment eliminates substantial individual button configuration. As with GlossContourSurface™, most of your work with GlossContourButton™ will involve little configuration, because you will want to comply with your own cohesive style, and because most of the prototypes you will build will be based on SystemColors.Control.
|
|
ContourServer™ AND ContourClient™ ROLES |
In each of these groups, the button on the left can serve as a ContourServer™ to clients on the right — eliminating manual or programmatic configuration and expediting group drawing speed.
GlossContourButtons™ as typical ContourClients™ of a GlossContourSurface™. Both GC buttons and surfaces can serve as ContourServers™ to GlossContourButton™ instances. In the case of button ContourServers™ however, the server typically does not parent its clients. Instead, clients replicate the server at whatever position they occupy (as in the tinted button groups above). |
|
COLOR, CONTOURED REGIONS, CONTOUR TYPE, GLOSS, AND GLARE |
|
This page steps through a subset of regular documentation topics to introduce the basic modes of graphic configuration:
|
|
COLOR |
|
Color is manipulated by setting the base color, and optionally by modifying the base color with R, G, and B offset properties: public Color Colors.Fore Default = SystemColors.Control. Declared in GCServer_Base™. Buttons drawn from the color, SystemColors.Control. Specialized library OK button, distinguished by a blue-green Colors.Fore. A black GlossContourButton™ drew our site logos. Base color. public Int32 Colors.Offset.R, G, or B Default = 0, 0, 0 of -255...255 inclusive. Declared in GCServer_Base™. Declared in GlossContourButton.
Button groups distinguished by tinting SystemColors.Control (top) — red, green blue. OK button colored by tinting SystemColors.Control. Colors.Offset.R offsets Colors.Fore.R, Color_Base_DN.R, Colors.BorderDown.R, and Colors.BorderFocused.R. R/G/B "offsets" are generally used,
Explicit Colors.Fore prescriptions avoid graying. Where it is practical not to derive tinted colors from system constants, explicitly set Colors.Fore for gray free results. |
|
CONTOURED REGIONS |
|
GLOSS AND GLARE |
|
Gloss is manipulated by LuminosityDifferentials.Gloss. Undesirable white-out is automatically accounted for by AutoEliminateWhiteOut™ properties. Glyphs can be treated with additional gloss with the LuminosityDifferentials.GlyphGlare property. public Boolean AutoEliminateWhiteOut
Default = false. Declared in GCServer_Base™.
White-out engendered by user configuration (left).
AutoEliminateWhiteOut downwardly adjusts base color luminosity so that the least RGB component of color is no greater than AutoEliminateWhiteOut_MaxLeastRGB. See WORKING WITH ADVANCE GlossContourButton™ AND GlossContourSurface™ for related information. public Int32 AutoEliminateWhiteOut_MaxLeastRGB Default = 255 of 223...255 inclusive. Declared in GCServer_Base™.
AutoEliminateWhiteOut == false (left).
AutoEliminateWhiteOut downwardly adjusts base color luminosity so that the least RGB component of color is no greater than AutoEliminateWhiteOut_MaxLeastRGB. For example, if Colors.Fore.R == 200, Colors.Fore.G == 190, and Colors.Fore.B == 180 and AutoEliminateWhiteOut_MaxLeastRGB == 245, the maximum B of the glossed region will be no greater than 245. See WORKING WITH ADVANCE GlossContourButton™ AND GlossContourSurface™ for related information. public Int32 LuminosityDifferentials.Gloss
Default = 50 of 0...127 inclusive. Declared in GCServer_Base™. LuminosityDifferentials.Gloss == 10 (left), 32 (right), with AutoEliminateWhiteOut™ set to true. Prescribes the magnitude of the gloss effect.
public Int32 LuminosityDifferentials.GlyphGlare Default = 50 of 0...127 inclusive. Declared in GCServer_Base™.
LuminosityDifferentials.GlyphGlare == 0 (left), 100 (right). Luminosity differential applied in rendering glare over glossed regions of glyphs.
These are the few topics you must be familiar with to expertly manipulate graphic effects. |
|
Gloss Contour Suite™ for .NET DOCUMENTATION Introductory material and complete GCS technical documentation. HOW TO — ARTICLES AND EXAMPLE SOURCE GlossContour Suite™ INSTALLATION HOW TO IMPLEMENT EFFICIENT TOGGLE GROUP BEHAVIOR Writing efficient, type safe code to implement toggle group behavior. WALKTHROUGH 1 — DESIGNING GlossContourSurfaces™, DEPLOYING AS ContourServers™ Basic configuration of GlossContourSurfaces™ in preparation for Walkthrough 2. WALKTHROUGH 2 — DESIGNING GlossContourButtons™, DEPLOYING AS ContourServers™ OR ContourClients™ How to configure color, color offsets, gloss, glare, and 3D effects. ContourServer™/ContourClient™ implementation. NET TECHNICAL VITAL TECHNIQUES FOR USING OBJECTS AS .NET PROPERTIES Our experience with Visual Studio 2005™ demonstrates that function calls are not fired in outer set accessors of properties subject to TypeConverters. This article first revisits how to deploy TypeConverters so that your class properties will be displayed from a nested node in Properties View. It then demonstrates the necessary pattern for declaring DefaultValueAttributes, and for writing set accessors that will successfully fire vital accessor functions. |
|
|
|