MidiMountain 0.4.0


Units
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Unit MMUtils

Description

MidiMountain Utilities
Unit holding global utility functions and procedures

Functions and Procedures

Overview

function ChangeColorBrightness( const aColor: TColor; const aFactor: real ): TColor;
function ColorToStr( aColor: TColor ): string;
function InflateRect( const aRect: TRect; const aAmount: integer ): TRect;
procedure SetEnable( const aWinControl: TWinControl; const aEnable: boolean );
procedure SetParents( aForm: TForm; const aDest: TWinControl );
function StrToColor( aColor: string ): TColor;

Description

function ChangeColorBrightness( const aColor: TColor; const aFactor: real ): TColor;

change the brightness of a color with a factor. 1=same, 0.9 darker, 1.1 ligher

function ColorToStr( aColor: TColor ): string;

convert a Borland TColor to a HTML color #000000

function InflateRect( const aRect: TRect; const aAmount: integer ): TRect;

inflate a rectangle by n pixels

procedure SetEnable( const aWinControl: TWinControl; const aEnable: boolean );

enable/disable a win control. enable color=window, disable color=button face

procedure SetParents( aForm: TForm; const aDest: TWinControl );

set all the parents to aDest of the controls in the source

function StrToColor( aColor: string ): TColor;

convert a HTML color to a Borland TColor


MidiMountain 0.4.0 ©1999-2002 Adrian Meyer, developed with Delphi and Kylix


Generated by DIPasDoc 0.8.0 on Wed 29 Oct 2003 21:59:09