advsmoothmenu.hpp
来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 455 行 · 第 1/2 页
HPP
455 行
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Advsmoothmenu.pas' rev: 10.00
#ifndef AdvsmoothmenuHPP
#define AdvsmoothmenuHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Advsmoothgdip.hpp> // Pascal unit
#include <Extctrls.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
#include <Gdipfill.hpp> // Pascal unit
#include <Gdippicturecontainer.hpp> // Pascal unit
#include <Advstyleif.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Advsmoothmenu
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAdvSmoothMenuLocation { plTopLeft, plTopCenter, plTopRight, plCenterLeft, plCenterCenter, plCenterRight, plBottomLeft, plBottomCenter, plBottomRight, plCustom };
#pragma option pop
class DELPHICLASS TWinCtrl;
class PASCALIMPLEMENTATION TWinCtrl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
public:
void __fastcall PaintCtrls(HDC DC, Controls::TControl* First);
public:
#pragma option push -w-inl
/* TWinControl.Create */ inline __fastcall virtual TWinCtrl(Classes::TComponent* AOwner) : Controls::TWinControl(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TWinCtrl(HWND ParentWindow) : Controls::TWinControl(ParentWindow) { }
#pragma option pop
#pragma option push -w-inl
/* TWinControl.Destroy */ inline __fastcall virtual ~TWinCtrl(void) { }
#pragma option pop
};
class DELPHICLASS TAdvSmoothMenuItem;
class PASCALIMPLEMENTATION TAdvSmoothMenuItem : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
#pragma pack(push,1)
Advsmoothgdip::TGPRectF FItemRect;
#pragma pack(pop)
#pragma pack(push,1)
Advsmoothgdip::TGPRectF FCaptionRect;
#pragma pack(pop)
AnsiString FCaption;
int FNotesTop;
int FNotesLeft;
AnsiString FNotes;
TAdvSmoothMenuLocation FNotesLocation;
Gdipfill::TFillPicturePosition FPicturePosition;
Advsmoothgdip::TAdvGDIPPicture* FPicture;
int FpictureWidth;
Gdipfill::TFillPictureSize FpictureSize;
int FPictureTop;
int FpictureHeight;
int FPictureLeft;
System::TObject* FObject;
int FTag;
void __fastcall SetCaption(const AnsiString Value);
void __fastcall SetNotes(const AnsiString Value);
void __fastcall SetNotesLeft(const int Value);
void __fastcall SetNotesLocation(const TAdvSmoothMenuLocation Value);
void __fastcall SetNotesTop(const int Value);
void __fastcall SetPicture(const Advsmoothgdip::TAdvGDIPPicture* Value);
void __fastcall SetPictureHeight(const int Value);
void __fastcall SetPictureLeft(const int Value);
void __fastcall SetPicturePosition(const Gdipfill::TFillPicturePosition Value);
void __fastcall SetPictureSize(const Gdipfill::TFillPictureSize Value);
void __fastcall SetPictureTop(const int Value);
void __fastcall SetPictureWidth(const int Value);
protected:
HIDESBASE void __fastcall Changed(void);
void __fastcall FontChanged(System::TObject* Sender);
void __fastcall PictureChanged(System::TObject* Sender);
void __fastcall Draw(void);
public:
__fastcall virtual TAdvSmoothMenuItem(Classes::TCollection* Collection);
__fastcall virtual ~TAdvSmoothMenuItem(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property System::TObject* ItemObject = {read=FObject, write=FObject};
__published:
__property AnsiString Caption = {read=FCaption, write=SetCaption};
__property AnsiString Notes = {read=FNotes, write=SetNotes};
__property TAdvSmoothMenuLocation NotesLocation = {read=FNotesLocation, write=SetNotesLocation, default=0};
__property int NotesLeft = {read=FNotesLeft, write=SetNotesLeft, default=0};
__property int NotesTop = {read=FNotesTop, write=SetNotesTop, default=0};
__property Advsmoothgdip::TAdvGDIPPicture* Picture = {read=FPicture, write=SetPicture};
__property Gdipfill::TFillPicturePosition PicturePosition = {read=FPicturePosition, write=SetPicturePosition, default=0};
__property int PictureLeft = {read=FPictureLeft, write=SetPictureLeft, default=0};
__property int PictureTop = {read=FPictureTop, write=SetPictureTop, default=0};
__property Gdipfill::TFillPictureSize PictureSize = {read=FpictureSize, write=SetPictureSize, default=0};
__property int PictureWidth = {read=FpictureWidth, write=SetPictureWidth, default=50};
__property int PictureHeight = {read=FpictureHeight, write=SetPictureHeight, default=50};
__property int Tag = {read=FTag, write=FTag, nodefault};
};
class DELPHICLASS TAdvSmoothMenuItems;
class DELPHICLASS TAdvSmoothMenu;
class DELPHICLASS TAdvSmoothMenuItemAppearance;
class DELPHICLASS TAdvSmoothMenuSplitter;
class PASCALIMPLEMENTATION TAdvSmoothMenuSplitter : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TAdvSmoothMenu* FOwner;
Classes::TNotifyEvent FOnChange;
Byte FOpacity;
Byte FOpacityTo;
Graphics::TColor FColor;
Graphics::TColor FColorTo;
bool FVisible;
int FHeight;
void __fastcall SetColor(const Graphics::TColor Value);
void __fastcall SetColorTo(const Graphics::TColor Value);
void __fastcall SetOpacity(const Byte Value);
void __fastcall SetOpacityTo(const Byte Value);
void __fastcall SetVisible(const bool Value);
void __fastcall SetHeight(const int Value);
protected:
void __fastcall Changed(void);
public:
__fastcall TAdvSmoothMenuSplitter(TAdvSmoothMenu* AOwner);
__fastcall virtual ~TAdvSmoothMenuSplitter(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property Graphics::TColor Color = {read=FColor, write=SetColor, default=16777215};
__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=16777215};
__property Byte Opacity = {read=FOpacity, write=SetOpacity, default=20};
__property Byte OpacityTo = {read=FOpacityTo, write=SetOpacityTo, default=255};
__property bool Visible = {read=FVisible, write=SetVisible, default=1};
__property int Height = {read=FHeight, write=SetHeight, default=28};
};
class PASCALIMPLEMENTATION TAdvSmoothMenuItemAppearance : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TAdvSmoothMenu* FOwner;
Classes::TNotifyEvent FOnChange;
Graphics::TFont* FFont;
TAdvSmoothMenuSplitter* Fsplitter;
Graphics::TFont* FSelectedFont;
Graphics::TFont* FHoverFont;
Graphics::TColor FGlowColorHover;
Byte FGlowOpacitySelected;
Byte FGlowOpacity;
Byte FGlowOpacityHover;
Graphics::TColor FGlowColorSelected;
Graphics::TColor FGlowColor;
Graphics::TFont* FNotesFont;
void __fastcall SetFont(const Graphics::TFont* Value);
void __fastcall SetSplitter(const TAdvSmoothMenuSplitter* Value);
void __fastcall SetHoverFont(const Graphics::TFont* Value);
void __fastcall SetSelectedFont(const Graphics::TFont* Value);
void __fastcall SetGlowColor(const Graphics::TColor Value);
void __fastcall SetGlowColorHover(const Graphics::TColor Value);
void __fastcall SetGlowColorSelected(const Graphics::TColor Value);
void __fastcall SetGlowOpacity(const Byte Value);
void __fastcall SetGlowOpacityHover(const Byte Value);
void __fastcall SetGlowOpacitySelected(const Byte Value);
void __fastcall SetNotesFont(const Graphics::TFont* Value);
protected:
void __fastcall Changed(void);
void __fastcall FontChanged(System::TObject* Sender);
void __fastcall SplitterChanged(System::TObject* Sender);
public:
__fastcall TAdvSmoothMenuItemAppearance(TAdvSmoothMenu* AOwner);
__fastcall virtual ~TAdvSmoothMenuItemAppearance(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property Graphics::TFont* HoverFont = {read=FHoverFont, write=SetHoverFont};
__property Graphics::TFont* SelectedFont = {read=FSelectedFont, write=SetSelectedFont};
__property Graphics::TFont* Font = {read=FFont, write=SetFont};
__property Graphics::TFont* NotesFont = {read=FNotesFont, write=SetNotesFont};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property TAdvSmoothMenuSplitter* Splitter = {read=Fsplitter, write=SetSplitter};
__property Graphics::TColor GlowColor = {read=FGlowColor, write=SetGlowColor, default=16777215};
__property Byte GlowOpacity = {read=FGlowOpacity, write=SetGlowOpacity, default=100};
__property Graphics::TColor GlowColorSelected = {read=FGlowColorSelected, write=SetGlowColorSelected, default=16777215};
__property Byte GlowOpacitySelected = {read=FGlowOpacitySelected, write=SetGlowOpacitySelected, default=100};
__property Graphics::TColor GlowColorHover = {read=FGlowColorHover, write=SetGlowColorHover, default=16777215};
__property Byte GlowOpacityHover = {read=FGlowOpacityHover, write=SetGlowOpacityHover, default=100};
};
class DELPHICLASS TAdvSmoothMenuAppearance;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?