{========================================================================} {= (c) 1995-98 SwiftSoft Ronald Dittrich =} {========================================================================} {= All Rights Reserved =} {========================================================================} {= D 01099 Dresden = Tel.: +0351-8012255 =} {= Loewenstr.7a = info@swiftsoft.de =} {========================================================================} {= Actual versions on http://www.swiftsoft.de/mmtools.html =} {========================================================================} {= This code is for reference purposes only and may not be copied or =} {= distributed in any format electronic or otherwise except one copy =} {= for backup purposes. =} {= =} {= No Delphi Component Kit or Component individually or in a collection=} {= subclassed or otherwise from the code in this unit, or associated =} {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =} {= without express permission from SwiftSoft. =} {= =} {= For more licence informations please refer to the associated =} {= HelpFile. =} {========================================================================} {= $Date: 20.01.1998 - 18:00:00 $ =} {========================================================================} unit MMObj; {$I COMPILER.INC} interface Uses {$IFDEF WIN32} Windows, {$ELSE} WinTypes, WinProcs, {$ENDIF} SysUtils, Dialogs, Messages, Classes, Controls, ExtCtrls, Forms, Graphics, MMAbout; type {-- TMMObject -------------------------------------------------------------} TMMObject = class(TPersistent) public property OnChange: TNotifyEvent read FOnChange write FOnChange; end; {-- TMMBevel --------------------------------------------------------------} TMMBevel = class(TMMObject) public constructor Create; virtual; procedure Assign(Source: TPersistent); override; property BevelExtend: Integer read GetBevelExtend; function PaintBevel(Canvas: TCanvas; FrameRect: TRect): TRect; virtual; published property BevelInner: TPanelBevel read FBevelInner write SetBevelInner; property BevelOuter: TPanelBevel read FBevelOuter write SetBevelOuter; property BevelInnerWidth: TBevelWidth read FBevelInnerWidth write SetBevelInnerWidth; property BevelOuterWidth: TBevelWidth read FBevelOuterWidth write SetBevelOuterWidth; property BorderStyle: TBorderStyle read FBorderStyle write SetBorderStyle; property BorderWidth: TBorderWidth read FBorderWidth write SetBorderWidth; property BorderSpace: TBorderWidth read FBorderSpace write SetBorderSpace; property BorderColor: TColor index 0 read FBorderColor write SetColors; property BorderSpaceColor: TColor index 1 read FBorderSpaceColor write SetColors; property InnerLightColor : TColor index 2 read FInnerLightColor write SetColors; property InnerShadowColor: TColor index 3 read FInnerShadowColor write SetColors; property OuterLightColor : TColor index 4 read FOuterLightColor write SetColors; property OuterShadowColor: TColor index 5 read FOuterShadowColor write SetColors; end; {-- TMMComponent ----------------------------------------------------------} TMMComponent = class(TComponent) published {$IFDEF TRIAL} property About: TMMAboutBox read FAbout write FAbout stored False; {$ENDIF} end; {-- TMMWinControl ---------------------------------------------------------} TMMWinControl = class(TWinControl) public function ClientToClient(Source: TControl; const Point: TPoint): TPoint; published {$IFDEF TRIAL} property About: TMMAboutBox read FAbout write FAbout stored False; {$ENDIF} end; {-- TMMCustomControl ------------------------------------------------------} TMMCustomControl = class(TCustomControl) public constructor Create(AOwner: TComponent); override; destructor Destroy; override; function ClientToClient(Source: TControl; const Point: TPoint): TPoint; function BevelExtend: Integer; function BeveledRect: TRect; function ScreenRect(aRect: TRect): TRect; property Canvas; published {$IFDEF TRIAL} property About: TMMAboutBox read FAbout write FAbout stored False; {$ENDIF} end; {-- TMMCustomPanel --------------------------------------------------------} TMMCustomPanel = class(TCustomPanel) public constructor Create(AOwner: TComponent); override; destructor Destroy; override; function ClientToClient(Source: TControl; const Point: TPoint): TPoint; function BevelExtend: Integer; function BeveledRect: TRect; function ScreenRect(aRect: TRect): TRect; property OnPaint: TNotifyEvent read FOnPaint write FOnPaint; property Canvas; property Caption; published {$IFDEF TRIAL} property About: TMMAboutBox read FAbout write FAbout stored False; {$ENDIF} end; {-- TMMGraphicControl -----------------------------------------------------} TMMGraphicControl = class(TGraphicControl) public constructor Create(AOwner: TComponent); override; destructor Destroy; override; function ClientToClient(Source: TControl; const Point: TPoint): TPoint; function BevelExtend: Integer; function BeveledRect: TRect; function ScreenRect(aRect: TRect): TRect; property Canvas; published {$IFDEF TRIAL} property About: TMMAboutBox read FAbout write FAbout stored False; {$ENDIF} end; {-- TMMCommonDialog -------------------------------------------------------} TMMCommonDialog = class(TCommonDialog) published {$IFDEF TRIAL} property About: TMMAboutBox read FAbout write FAbout stored False; {$ENDIF} end; {$I MMCONST.INC} function LoadResStr(const ResID: Word): String; {$I MMCURSOR.INC} function LoadResCursor(const ResID: Word): HCURSOR; implementation