advtrackbar.hpp
来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 1,003 行 · 第 1/4 页
HPP
1,003 行
void __fastcall SetTrackLabel(const TTrackBarLabel* Value);
protected:
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall DoEnter(void);
DYNAMIC void __fastcall DoExit(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
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 Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
virtual void __fastcall SetPosition(int Value);
virtual void __fastcall RepeatTimerExpired(System::TObject* Sender);
virtual bool __fastcall CanMoveOnTickClick(void);
virtual AnsiString __fastcall GetTrackLabelText();
virtual TTrackBarSlider* __fastcall CreateTrackBarSlider(void);
virtual bool __fastcall CanClipThumb(void);
virtual bool __fastcall CanMovePosition(int Value);
virtual int __fastcall GetPosiblePositionMin(void);
virtual int __fastcall GetPosiblePositionMax(void);
Types::TRect __fastcall InternalClientRect();
Types::TRect __fastcall TrackClientRect();
Types::TRect __fastcall TickMarkTopRect();
Types::TRect __fastcall TickMarkBottomRect();
Types::TRect __fastcall SliderRect();
Types::TRect __fastcall ThumbRect();
Types::TRect __fastcall TrackingRect();
Types::TRect __fastcall TrackLabelRect(bool TextRect = false);
tagSIZE __fastcall RateSize();
Types::TRect __fastcall RateRect(int Index);
int __fastcall IndexOfRate(int X, int Y);
Types::TRect __fastcall MinButtonRect();
Types::TRect __fastcall MaxButtonRect();
int __fastcall ButtonWidth(void);
void __fastcall ClickMinButton(void);
void __fastcall ClickMaxButton(void);
int __fastcall IndexOfTickAt(int X, int Y);
void __fastcall DrawBackGround(void);
virtual void __fastcall DrawSlider(void);
void __fastcall DrawTickMarks(void);
void __fastcall DrawInternalThumb(TTrackBarThumb* Thumb, const Types::TRect &R, bool ThumbHot, bool ThumbDown, int Position);
virtual void __fastcall DrawThumb(void);
void __fastcall DrawTrackLabel(void);
void __fastcall DrawRate(int Index);
void __fastcall DrawRates(void);
void __fastcall DrawMinButton(void);
void __fastcall DrawMaxButton(void);
void __fastcall DrawButtons(void);
bool __fastcall IsRating(void);
void __fastcall InvalidateTrackLabel(void);
__property int Max = {read=FMax, write=SetMax, default=10};
__property int Min = {read=FMin, write=SetMin, default=0};
__property Comctrls::TTrackBarOrientation Orientation = {read=FOrientation, write=SetOrientation, default=0};
__property int PageSize = {read=FPageSize, write=FPageSize, default=1};
__property int Position = {read=FPosition, write=SetPosition, default=0};
__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, nodefault};
__property Graphics::TColor BorderColorDisabled = {read=FBorderColorDisabled, write=SetBorderColorDisabled, nodefault};
__property int BorderWidth = {read=FBorderWidth, write=SetBorderWidth, default=1};
__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, nodefault};
__property Graphics::TColor ColorDisabled = {read=FColorDisabled, write=SetColorDisabled, nodefault};
__property Graphics::TColor ColorDisabledTo = {read=FColorDisabledTo, write=SetColorDisabledTo, nodefault};
__property TGradientDirection Direction = {read=FDirection, write=SetDirection, nodefault};
__property Gdipicture::TGDIPPicture* BackGround = {read=FIBackGround, write=SetBackGround};
__property Gdipicture::TGDIPPicture* BackGroundDisabled = {read=FIBackGroundDisabled, write=SetBackGroundDisabled};
__property bool BackGroundStretched = {read=FBackGroundStretched, write=SetBackGroundStretched, default=0};
__property bool Transparent = {read=FTransparent, write=SetTransparent, default=1};
__property TTrackBarThumb* Thumb = {read=FThumb, write=SetThumb};
__property TTrackBarSlider* Slider = {read=FSlider, write=SetSlider};
__property bool ShowFocus = {read=FShowFocus, write=FShowFocus, default=0};
__property bool TrackHint = {read=FTrackHint, write=FTrackHint, nodefault};
__property TTrackBarTick* TickMark = {read=FTickMark, write=SetTickMark};
__property Imglist::TCustomImageList* TickImages = {read=FImages, write=SetImages};
__property Gdipicture::TGDIPPicture* RateActive = {read=FIRateActive, write=SetRateActive};
__property Gdipicture::TGDIPPicture* RateInActive = {read=FIRateInActive, write=SetRateInActive};
__property TTrackBarButtons* Buttons = {read=FButtons, write=SetButtons};
__property TTrackBarLabel* TrackLabel = {read=FTrackLabel, write=SetTrackLabel};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property TGetTrackHintEvent OnGetTrackHint = {read=FOnGetTrackHint, write=FOnGetTrackHint};
__property TDrawTickEvent OnDrawTick = {read=FOnDrawTick, write=FOnDrawTick};
public:
__fastcall virtual TCustomTrackBar(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomTrackBar(void);
void __fastcall SetComponentStyle(Advstyleif::TTMSStyle AStyle);
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TCustomTrackBar(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
#pragma option pop
private:
void *__ITMSStyle; /* Advstyleif::ITMSStyle */
public:
operator ITMSStyle*(void) { return (ITMSStyle*)&__ITMSStyle; }
};
class PASCALIMPLEMENTATION TTrackBarThumb : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
int FSteps;
Graphics::TColor FColor;
Graphics::TColor FColorTo;
Classes::TNotifyEvent FOnChange;
Graphics::TColor FBorderColor;
Graphics::TColor FColorHotTo;
Graphics::TColor FColorHot;
Graphics::TColor FBorderColorHot;
int FWidth;
Graphics::TColor FColorDisabledTo;
Graphics::TColor FBorderColorDown;
Graphics::TColor FBorderColorDisabled;
Graphics::TColor FColorDown;
Graphics::TColor FColorDownTo;
Graphics::TColor FColorDisabled;
Gdipicture::TGDIPPicture* FIPicture;
TThumbShape FShape;
TThumbStyle FStyle;
Gdipicture::TGDIPPicture* FIPictureDisabled;
Gdipicture::TGDIPPicture* FIPictureDown;
Gdipicture::TGDIPPicture* FIPictureHot;
Graphics::TColor FColorMirrorHot;
Graphics::TColor FColorMirror;
Graphics::TColor FColorMirrorTo;
Graphics::TColor FColorMirrorDisabledTo;
Graphics::TColor FColorMirrorDisabled;
Graphics::TColor FColorMirrorHotTo;
Graphics::TColor FColorMirrorDown;
Graphics::TColor FColorMirrorDownTo;
TGDIPGradient FGradient;
TGDIPGradient FGradientMirror;
bool FPictureStretched;
TCustomTrackBar* FAdvTrackBar;
int FSize;
bool FShowAtMinMax;
void __fastcall SetColor(const Graphics::TColor Value);
void __fastcall SetColorTo(const Graphics::TColor Value);
void __fastcall SetSteps(const int Value);
void __fastcall SetBorderColor(const Graphics::TColor Value);
void __fastcall SetBorderColorHot(const Graphics::TColor Value);
void __fastcall SetColorHot(const Graphics::TColor Value);
void __fastcall SetColorHotTo(const Graphics::TColor Value);
void __fastcall SetBorderColorDisabled(const Graphics::TColor Value);
void __fastcall SetBorderColorDown(const Graphics::TColor Value);
void __fastcall SetColorDisabled(const Graphics::TColor Value);
void __fastcall SetColorDisabledTo(const Graphics::TColor Value);
void __fastcall SetColorDown(const Graphics::TColor Value);
void __fastcall SetColorDownTo(const Graphics::TColor Value);
void __fastcall SetPicture(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetShape(const TThumbShape Value);
void __fastcall SetStyle(const TThumbStyle Value);
void __fastcall SetWidth(const int Value);
void __fastcall PictureChanged(System::TObject* Sender);
void __fastcall SetPictureDisabled(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetPictureDown(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetPictureHot(const Gdipicture::TGDIPPicture* Value);
void __fastcall SetColorMirrorDisabled(const Graphics::TColor Value);
void __fastcall SetColorMirrorDisabledTo(const Graphics::TColor Value);
void __fastcall SetColorMirror(const Graphics::TColor Value);
void __fastcall SetColorMirrorTo(const Graphics::TColor Value);
void __fastcall SetGradientMirror(const TGDIPGradient Value);
void __fastcall SetGradient(const TGDIPGradient Value);
void __fastcall SetSize(const int Value);
void __fastcall SetShowAtMinMax(const bool Value);
protected:
void __fastcall Changed(void);
__property int Steps = {read=FSteps, write=SetSteps, default=64};
__property TThumbStyle Style = {read=FStyle, write=SetStyle, nodefault};
__property TCustomTrackBar* AdvTrackBar = {read=FAdvTrackBar, write=FAdvTrackBar};
public:
__fastcall TTrackBarThumb(void);
__fastcall virtual ~TTrackBarThumb(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, nodefault};
__property Graphics::TColor BorderColorHot = {read=FBorderColorHot, write=SetBorderColorHot, nodefault};
__property Graphics::TColor BorderColorDown = {read=FBorderColorDown, write=SetBorderColorDown, nodefault};
__property Graphics::TColor BorderColorDisabled = {read=FBorderColorDisabled, write=SetBorderColorDisabled, nodefault};
__property Graphics::TColor Color = {read=FColor, write=SetColor, nodefault};
__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, nodefault};
__property Graphics::TColor ColorDown = {read=FColorDown, write=SetColorDown, nodefault};
__property Graphics::TColor ColorDownTo = {read=FColorDownTo, write=SetColorDownTo, nodefault};
__property Graphics::TColor ColorHot = {read=FColorHot, write=SetColorHot, nodefault};
__property Graphics::TColor ColorHotTo = {read=FColorHotTo, write=SetColorHotTo, nodefault};
__property Graphics::TColor ColorDisabled = {read=FColorDisabled, write=SetColorDisabled, nodefault};
__property Graphics::TColor ColorDisabledTo = {read=FColorDisabledTo, write=SetColorDisabledTo, nodefault};
__property Graphics::TColor ColorMirror = {read=FColorMirror, write=SetColorMirror, nodefault};
__property Graphics::TColor ColorMirrorTo = {read=FColorMirrorTo, write=SetColorMirrorTo, nodefault};
__property Graphics::TColor ColorMirrorHot = {read=FColorMirrorHot, write=FColorMirrorHot, nodefault};
__property Graphics::TColor ColorMirrorHotTo = {read=FColorMirrorHotTo, write=FColorMirrorHotTo, nodefault};
__property Graphics::TColor ColorMirrorDown = {read=FColorMirrorDown, write=FColorMirrorDown, nodefault};
__property Graphics::TColor ColorMirrorDownTo = {read=FColorMirrorDownTo, write=FColorMirrorDownTo, nodefault};
__property Graphics::TColor ColorMirrorDisabled = {read=FColorMirrorDisabled, write=SetColorMirrorDisabled, nodefault};
__property Graphics::TColor ColorMirrorDisabledTo = {read=FColorMirrorDisabledTo, write=SetColorMirrorDisabledTo, nodefault};
__property TGDIPGradient Gradient = {read=FGradient, write=SetGradient, nodefault};
__property TGDIPGradient GradientMirror = {read=FGradientMirror, write=SetGradientMirror, nodefault};
__property Gdipicture::TGDIPPicture* Picture = {read=FIPicture, write=SetPicture};
__property Gdipicture::TGDIPPicture* PictureHot = {read=FIPictureHot, write=SetPictureHot};
__property Gdipicture::TGDIPPicture* PictureDown = {read=FIPictureDown, write=SetPictureDown};
__property Gdipicture::TGDIPPicture* PictureDisabled = {read=FIPictureDisabled, write=SetPictureDisabled};
__property bool ShowAtMinMax = {read=FShowAtMinMax, write=SetShowAtMinMax, default=1};
__property int Size = {read=FSize, write=SetSize, default=15};
__property int Width = {read=FWidth, write=SetWidth, default=10};
__property TThumbShape Shape = {read=FShape, write=SetShape, nodefault};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
};
class DELPHICLASS TAdvTrackBar;
class PASCALIMPLEMENTATION TAdvTrackBar : public TCustomTrackBar
{
typedef TCustomTrackBar inherited;
__published:
__property Align = {default=0};
__property Anchors = {default=3};
__property BackGroundStretched = {default=0};
__property BackGround ;
__property BackGroundDisabled ;
__property BorderColor ;
__property BorderColorDisabled ;
__property Buttons ;
__property ColorTo ;
__property ColorDisabled ;
__property ColorDisabledTo ;
__property Ctl3D ;
__property Direction ;
__property DragCursor = {default=-12};
__property DragKind = {default=0};
__property DragMode = {default=0};
__property Enabled = {default=1};
__property Constraints ;
__property Color = {default=-16777211};
__property HelpContext = {default=0};
__property Hint ;
__property Max = {default=10};
__property Min = {default=0};
__property Orientation = {default=0};
__property ParentCtl3D = {default=1};
__property ParentShowHint = {default=1};
__property PageSize = {default=1};
__property PopupMenu ;
__property Position = {default=0};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?