📄 advobj.hpp
字号:
};
class DELPHICLASS TFilePicture;
class PASCALIMPLEMENTATION TFilePicture : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
AnsiString FFilename;
int FWidth;
int FHeight;
Graphics::TPicture* FPicture;
void __fastcall SetFileName(const AnsiString Value);
public:
void __fastcall DrawPicture(Graphics::TCanvas* Canvas, const Types::TRect &r);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property AnsiString Filename = {read=FFilename, write=SetFileName};
__property int Width = {read=FWidth, nodefault};
__property int Height = {read=FHeight, nodefault};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TFilePicture(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TFilePicture(void) : Classes::TPersistent() { }
#pragma option pop
};
class DELPHICLASS TAdvGridButtonActionLink;
class DELPHICLASS TAdvGridButton;
class PASCALIMPLEMENTATION TAdvGridButton : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
int FGroupIndex;
Graphics::TBitmap* FGlyph;
bool FDown;
bool FDragging;
bool FAllowAllUp;
Buttons::TButtonLayout FLayout;
int FSpacing;
bool FTransparent;
int FMargin;
bool FFlat;
bool FMouseInControl;
Graphics::TColor FColorTo;
Graphics::TColor FColorHot;
Graphics::TColor FColorHotTo;
Graphics::TColor FColorDown;
Graphics::TColor FColorDownTo;
Graphics::TColor FBorderColor;
Graphics::TColor FBorderDownColor;
Graphics::TColor FBorderHotColor;
Graphics::TBitmap* FGlyphDisabled;
Graphics::TBitmap* FGlyphHot;
Graphics::TBitmap* FGlyphDown;
Graphics::TBitmap* FGlyphShade;
bool FShaded;
Classes::TNotifyEvent FOnMouseLeave;
Classes::TNotifyEvent FOnMouseEnter;
Graphics::TColor FColorChecked;
Graphics::TColor FColorCheckedTo;
TAdvGridButtonStyle FStyle;
int FLook;
bool FRounded;
bool FDropDownButton;
bool FAutoThemeAdapt;
bool FAutoXPStyle;
Classes::TNotifyEvent FOnDropDown;
Menus::TPopupMenu* FDropDownMenu;
bool FShowCaption;
void __fastcall GlyphChanged(System::TObject* Sender);
void __fastcall UpdateExclusive(void);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
void __fastcall SetDown(bool Value);
void __fastcall SetFlat(bool Value);
void __fastcall SetAllowAllUp(bool Value);
void __fastcall SetGroupIndex(int Value);
void __fastcall SetLayout(Buttons::TButtonLayout Value);
void __fastcall SetSpacing(int 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);
void __fastcall SetGlyphDisabled(const Graphics::TBitmap* Value);
void __fastcall SetGlyphDown(const Graphics::TBitmap* Value);
void __fastcall SetGlyphHot(const Graphics::TBitmap* Value);
void __fastcall GenerateShade(void);
void __fastcall SetShaded(const bool Value);
void __fastcall SetColorTo(const Graphics::TColor Value);
void __fastcall SetColorChecked(const Graphics::TColor Value);
void __fastcall SetColorCheckedTo(const Graphics::TColor Value);
void __fastcall SetStyle(const TAdvGridButtonStyle Value);
void __fastcall SetRounded(const bool Value);
void __fastcall SetDropDownButton(const bool Value);
void __fastcall SetShowCaption(const bool Value);
void __fastcall SetBorderColor(const Graphics::TColor Value);
void __fastcall SetLook(const int Value);
Graphics::TColor __fastcall GetColor(void);
HIDESBASE void __fastcall SetColor(const Graphics::TColor Value);
protected:
Buttons::TButtonState FState;
DYNAMIC TMetaClass* __fastcall GetActionLinkClass(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);
void __fastcall DrawButtonGlyph(Graphics::TCanvas* Canvas, const Types::TPoint &GlyphPos, Buttons::TButtonState State, bool Transparent);
void __fastcall DrawButtonText(Graphics::TCanvas* Canvas, const AnsiString Caption, const Types::TRect &TextBounds, Buttons::TButtonState State, int BiDiFlags);
Types::TRect __fastcall DrawButton(Graphics::TCanvas* Canvas, const Types::TRect &Client, const Types::TPoint &Offset, const AnsiString Caption, Buttons::TButtonLayout Layout, int Margin, int Spacing, Buttons::TButtonState State, bool Transparent, int BiDiFlags);
void __fastcall CalcButtonLayout(Graphics::TCanvas* Canvas, const Types::TRect &Client, const Types::TPoint &Offset, const AnsiString Caption, Buttons::TButtonLayout Layout, int Margin, int Spacing, Types::TPoint &GlyphPos, Types::TRect &TextBounds, int BiDiFlags);
virtual void __fastcall Paint(void);
__property bool MouseInControl = {read=FMouseInControl, nodefault};
virtual void __fastcall WndProc(Messages::TMessage &Message);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation);
void __fastcall ThemeAdapt(void);
void __fastcall SetAutoThemeAdapt(const bool Value);
public:
__fastcall virtual TAdvGridButton(Classes::TComponent* AOwner);
__fastcall virtual ~TAdvGridButton(void);
DYNAMIC void __fastcall Click(void);
__property int Look = {read=FLook, write=SetLook, nodefault};
__published:
__property Action ;
__property bool AllowAllUp = {read=FAllowAllUp, write=SetAllowAllUp, default=0};
__property Anchors = {default=3};
__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=SetAutoThemeAdapt, nodefault};
__property bool AutoXPStyle = {read=FAutoXPStyle, write=FAutoXPStyle, nodefault};
__property BiDiMode ;
__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, default=536870911};
__property Graphics::TColor BorderDownColor = {read=FBorderDownColor, write=FBorderDownColor, default=536870911};
__property Graphics::TColor BorderHotColor = {read=FBorderHotColor, write=FBorderHotColor, default=536870911};
__property Graphics::TColor Color = {read=GetColor, write=SetColor, default=-16777201};
__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=536870911};
__property Graphics::TColor ColorDown = {read=FColorDown, write=FColorDown, nodefault};
__property Graphics::TColor ColorDownTo = {read=FColorDownTo, write=FColorDownTo, default=536870911};
__property Graphics::TColor ColorHot = {read=FColorHot, write=FColorHot, nodefault};
__property Graphics::TColor ColorHotTo = {read=FColorHotTo, write=FColorHotTo, default=536870911};
__property Graphics::TColor ColorChecked = {read=FColorChecked, write=SetColorChecked, default=8421504};
__property Graphics::TColor ColorCheckedTo = {read=FColorCheckedTo, write=SetColorCheckedTo, default=536870911};
__property Constraints ;
__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};
__property bool Down = {read=FDown, write=SetDown, default=0};
__property bool DropDownButton = {read=FDropDownButton, write=SetDropDownButton, default=0};
__property Menus::TPopupMenu* DropDownMenu = {read=FDropDownMenu, write=FDropDownMenu};
__property Caption ;
__property Enabled = {default=1};
__property bool Flat = {read=FFlat, write=SetFlat, default=1};
__property Font ;
__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
__property Graphics::TBitmap* GlyphHot = {read=FGlyphHot, write=SetGlyphHot};
__property Graphics::TBitmap* GlyphDown = {read=FGlyphDown, write=SetGlyphDown};
__property Graphics::TBitmap* GlyphDisabled = {read=FGlyphDisabled, write=SetGlyphDisabled};
__property Buttons::TButtonLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property ParentBiDiMode = {default=1};
__property PopupMenu ;
__property bool Rounded = {read=FRounded, write=SetRounded, default=0};
__property bool Shaded = {read=FShaded, write=SetShaded, default=1};
__property bool ShowCaption = {read=FShowCaption, write=SetShowCaption, default=1};
__property ShowHint ;
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property TAdvGridButtonStyle Style = {read=FStyle, write=SetStyle, default=0};
__property Visible = {default=1};
__property OnClick ;
__property OnDblClick ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property Classes::TNotifyEvent OnMouseEnter = {read=FOnMouseEnter, write=FOnMouseEnter};
__property Classes::TNotifyEvent OnMouseLeave = {read=FOnMouseLeave, write=FOnMouseLeave};
__property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
};
class PASCALIMPLEMENTATION TAdvGridButtonActionLink : public Controls::TControlActionLink
{
typedef Controls::TControlActionLink inherited;
protected:
TAdvGridButton* FClient;
virtual void __fastcall AssignClient(System::TObject* AClient);
virtual bool __fastcall IsCaptionLinked(void);
virtual bool __fastcall IsCheckedLinked(void);
virtual bool __fastcall IsGroupIndexLinked(void);
virtual void __fastcall SetGroupIndex(int Value);
virtual void __fastcall SetChecked(bool Value);
virtual void __fastcall SetCaption(const AnsiString Value);
public:
#pragma option push -w-inl
/* TBasicActionLink.Create */ inline __fastcall virtual TAdvGridButtonActionLink(System::TObject* AClient) : Controls::TControlActionLink(AClient) { }
#pragma option pop
#pragma option push -w-inl
/* TBasicActionLink.Destroy */ inline __fastcall virtual ~TAdvGridButtonActionLink(void) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Advobj */
using namespace Advobj;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Advobj
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -