Advertisement
C_Volume2 Graphics #80428

Gradient Container Control v2.1

VERSION 2.0 (04/23/05): Made some necessary semi-major changes to this gradient container control. If you were using it before you'll want to redownload. Noticed some property conflicts that were causing problems in certain circumstances. Got rid of the BackGradientStyle and HeaderGradientStyle enum properties. They were conflicting with the BackAngle and HeaderAngle properties, which are all you really need for angled gradient drawing. Added BackMiddleOut and HeaderMiddleOut boolean properties to trigger middle-out gradient drawing. Changed BackDarkColor, BackLightColor, HeaderDarkColor and HeaderLightColor names to BackColor1, BackColor2, HeaderColor1 and HeaderColor2. Too often I found myself putting the light color in the DarkColor property and vice versa so this makes more sense. Changed the Style enum property, which was misnamed and needlessly complex, to boolean HeaderVisible. Changed the TextColor property name to CaptionColor. Changed the HeaderFont property name to CaptionFont. Changed the HeaderAngle property to a vertical/horizontal enum. Got rid of mouse-related events, since this is a simple custom frame control. To anyone that might be using the previous version of this, sorry about all the changes, but the changes make this a much better control (less code too).

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine