home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Internet 2000 May
/
MICD_2000_05.iso
/
CBuilder5
/
INSTALL
/
DATA1.CAB
/
Program_Built_Files
/
Include
/
Vcl
/
buttons.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-01
|
9KB
|
238 lines
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Buttons.pas' rev: 5.00
#ifndef ButtonsHPP
#define ButtonsHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Commctrl.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Buttons
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TButtonLayout { blGlyphLeft, blGlyphRight, blGlyphTop, blGlyphBottom };
#pragma option pop
#pragma option push -b-
enum TButtonState { bsUp, bsDisabled, bsDown, bsExclusive };
#pragma option pop
#pragma option push -b-
enum TButtonStyle { bsAutoDetect, bsWin31, bsNew };
#pragma option pop
typedef Shortint TNumGlyphs;
class DELPHICLASS TSpeedButton;
class PASCALIMPLEMENTATION TSpeedButton : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
int FGroupIndex;
void *FGlyph;
bool FDown;
bool FDragging;
bool FAllowAllUp;
TButtonLayout FLayout;
int FSpacing;
bool FTransparent;
int FMargin;
bool FFlat;
bool FMouseInControl;
void __fastcall GlyphChanged(System::TObject* Sender);
void __fastcall UpdateExclusive(void);
Graphics::TBitmap* __fastcall GetGlyph(void);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
TNumGlyphs __fastcall GetNumGlyphs(void);
void __fastcall SetNumGlyphs(TNumGlyphs Value);
void __fastcall SetDown(bool Value);
void __fastcall SetFlat(bool Value);
void __fastcall SetAllowAllUp(bool Value);
void __fastcall SetGroupIndex(int Value);
void __fastcall SetLayout(TButtonLayout Value);
void __fastcall SetSpacing(int Value);
void __fastcall SetTransparent(bool Value);
void __fastcall SetMargin(int Value);
void __fastcall UpdateTracking(void);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMButtonPressed(Messages::TMessage &Message);
MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
protected:
TButtonState FState;
DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
DYNAMIC HPALETTE __fastcall GetPalette(void);
virtual void __fastcall Loaded(void);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int
Y);
virtual void __fastcall Paint(void);
__property bool MouseInControl = {read=FMouseInControl, nodefault};
public:
__fastcall virtual TSpeedButton(Classes::TComponent* AOwner);
__fastcall virtual ~TSpeedButton(void);
DYNAMIC void __fastcall Click(void);
__published:
__property Action ;
__property bool AllowAllUp = {read=FAllowAllUp, write=SetAllowAllUp, default=0};
__property Anchors ;
__property BiDiMode ;
__property Constraints ;
__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};
__property bool Down = {read=FDown, write=SetDown, default=0};
__property Caption ;
__property Enabled ;
__property bool Flat = {read=FFlat, write=SetFlat, default=0};
__property Font ;
__property Graphics::TBitmap* Glyph = {read=GetGlyph, write=SetGlyph};
__property TButtonLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property TNumGlyphs NumGlyphs = {read=GetNumGlyphs, write=SetNumGlyphs, default=1};
__property ParentFont ;
__property ParentShowHint ;
__property ParentBiDiMode ;
__property PopupMenu ;
__property ShowHint ;
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property bool Transparent = {read=FTransparent, write=SetTransparent, default=1};
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
};
#pragma option push -b-
enum TBitBtnKind { bkCustom, bkOK, bkCancel, bkHelp, bkYes, bkNo, bkClose, bkAbort, bkRetry, bkIgnore,
bkAll };
#pragma option pop
class DELPHICLASS TBitBtn;
class PASCALIMPLEMENTATION TBitBtn : public Stdctrls::TButton
{
typedef Stdctrls::TButton inherited;
private:
Graphics::TCanvas* FCanvas;
void *FGlyph;
TButtonStyle FStyle;
TBitBtnKind FKind;
TButtonLayout FLayout;
int FSpacing;
int FMargin;
bool IsFocused;
bool FModifiedGlyph;
void __fastcall DrawItem(const tagDRAWITEMSTRUCT &DrawItemStruct);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
Graphics::TBitmap* __fastcall GetGlyph(void);
TNumGlyphs __fastcall GetNumGlyphs(void);
void __fastcall SetNumGlyphs(TNumGlyphs Value);
void __fastcall GlyphChanged(System::TObject* Sender);
bool __fastcall IsCustom(void);
bool __fastcall IsCustomCaption(void);
void __fastcall SetStyle(TButtonStyle Value);
void __fastcall SetKind(TBitBtnKind Value);
TBitBtnKind __fastcall GetKind(void);
void __fastcall SetLayout(TButtonLayout Value);
void __fastcall SetSpacing(int Value);
void __fastcall SetMargin(int Value);
MESSAGE void __fastcall CNMeasureItem(Messages::TWMMeasureItem &Message);
MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
protected:
DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
virtual void __fastcall CreateHandle(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
DYNAMIC HPALETTE __fastcall GetPalette(void);
virtual void __fastcall SetButtonStyle(bool ADefault);
public:
__fastcall virtual TBitBtn(Classes::TComponent* AOwner);
__fastcall virtual ~TBitBtn(void);
DYNAMIC void __fastcall Click(void);
__published:
__property Action ;
__property Anchors ;
__property BiDiMode ;
__property Cancel = {stored=IsCustom, default=0};
__property Caption = {stored=IsCustomCaption};
__property Constraints ;
__property Default = {stored=IsCustom, default=0};
__property Enabled ;
__property Graphics::TBitmap* Glyph = {read=GetGlyph, write=SetGlyph, stored=IsCustom};
__property TBitBtnKind Kind = {read=GetKind, write=SetKind, default=0};
__property TButtonLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property ModalResult = {stored=IsCustom, default=0};
__property TNumGlyphs NumGlyphs = {read=GetNumGlyphs, write=SetNumGlyphs, stored=IsCustom, default=1
};
__property ParentShowHint ;
__property ParentBiDiMode ;
__property ShowHint ;
__property TButtonStyle Style = {read=FStyle, write=SetStyle, default=0};
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnEnter ;
__property OnExit ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TBitBtn(HWND ParentWindow) : Stdctrls::TButton(ParentWindow
) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE Windows::TRect __fastcall DrawButtonFace(Graphics::TCanvas* Canvas, const Windows::TRect
&Client, int BevelWidth, TButtonStyle Style, bool IsRounded, bool IsDown, bool IsFocused);
} /* namespace Buttons */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Buttons;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Buttons