⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 advalertwindow.hpp

📁 TMS component pack v4.2 for delphi
💻 HPP
📖 第 1 页 / 共 3 页
字号:
	void __fastcall SetAlphaStart(const Byte Value);
	void __fastcall SetAlphaActual(const Byte Value);
	void __fastcall SetImages(const Controls::TImageList* Value);
	int __fastcall SetAlertPos(void);
	void __fastcall ThreadDone(System::TObject* Sender);
	void __fastcall UpdateAlertMessages(void);
	void __fastcall AlertMessagesOnChange(System::TObject* Sender);
	void __fastcall AlertMessagesOnDeleteItem(System::TObject* Sender, int index);
	void __fastcall AlertWindowMouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	void __fastcall AlertWindowOnMouseLeave(System::TObject* Sender);
	void __fastcall AlertWindowOnClose(System::TObject* Sender);
	void __fastcall AlertWindowOnCanClose(System::TObject* Sender, bool &CanClose);
	void __fastcall AlertWindowOnNextMessage(System::TObject* Sender);
	void __fastcall AlertWindowOnPrevMessage(System::TObject* Sender);
	void __fastcall AlertWindowOnDelete(System::TObject* Sender, int index);
	void __fastcall AlertWindowOnPopupBtnClick(System::TObject* Sender);
	void __fastcall OnTimer(System::TObject* Sender);
	void __fastcall SetDisplayTime(const int Value);
	void __fastcall SetWindowPosition(const TWindowPosition Value);
	void __fastcall AlertWindowMoved(System::TObject* Sender);
	void __fastcall SetTimer(bool Active);
	void __fastcall SetStyle(const TAdvAlertWindowStyle Value);
	void __fastcall SetComponentStyle(Advstyleif::TTMSStyle AStyle);
	void __fastcall SetGlyphDelete(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphNext(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphPrev(const Graphics::TBitmap* Value);
	void __fastcall SetAutoHide(const bool Value);
	void __fastcall SetAutoDelete(const bool Value);
	void __fastcall SetShowDelete(const bool Value);
	void __fastcall SetShowPopup(const bool Value);
	void __fastcall SetGlyphClose(const Graphics::TBitmap* Value);
	int __fastcall GetActiveMessage(void);
	void __fastcall SetActiveMessage(const int Value);
	void __fastcall SetPositionFormat(const AnsiString Value);
	void __fastcall SetBackground(const Graphics::TPicture* Value);
	void __fastcall ThemeAdapt(void);
	void __fastcall SetGlyphPopup(const Graphics::TBitmap* Value);
	void __fastcall SetPopupMenu(const Menus::TPopupMenu* Value);
	bool __fastcall GetVisible(void);
	int __fastcall GetLeft(void);
	int __fastcall GetTop(void);
	void __fastcall SetLeft(const int Value);
	void __fastcall SetTop(const int Value);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	int __fastcall GetVersionNr(void);
	unsigned __fastcall GetWindowHandle(void);
	
protected:
	void __fastcall WindowAnchorClick(System::TObject* Sender, AnsiString Anchor, int index);
	void __fastcall AlertClick(System::TObject* Sender);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation);
	void __fastcall CreateAlertWindow(void);
	void __fastcall ApplyStyle(void);
	void __fastcall SetMessages(void);
	void __fastcall TextChanged(System::TObject* Sender);
	void __fastcall AlertDestroyed(System::TObject* Sender);
	void __fastcall CustomPaint(System::TObject* Sender, Graphics::TCanvas* ACanvas, const Types::TRect &ARect, bool &DefaultDraw);
	__property int BorderSize = {read=FBorderSize, write=FBorderSize, nodefault};
	__property Byte AlphaActual = {read=FAlphaActual, write=SetAlphaActual, nodefault};
	__property bool AutoHiding = {read=FAutoHiding, write=FAutoHiding, nodefault};
	
public:
	__fastcall virtual TAdvAlertWindow(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvAlertWindow(void);
	virtual void __fastcall Loaded(void);
	void __fastcall Update(void);
	void __fastcall Show(void);
	void __fastcall Hide(void);
	void __fastcall CloseAlert(void);
	void __fastcall Next(void);
	void __fastcall Previous(void);
	void __fastcall First(void);
	void __fastcall Last(void);
	void __fastcall SavePosition(void);
	void __fastcall LoadPosition(void);
	__property int ActiveMessage = {read=GetActiveMessage, write=SetActiveMessage, nodefault};
	__property bool IsVisible = {read=GetVisible, nodefault};
	__property bool IsFading = {read=FFading, nodefault};
	__property unsigned Handle = {read=GetWindowHandle, nodefault};
	
__published:
	__property TMsgCollection* AlertMessages = {read=FAlertMessages, write=FAlertMessages};
	__property bool AlwaysOnTop = {read=FAlwaysOnTop, write=FAlwaysOnTop, nodefault};
	__property bool AutoHide = {read=FAutoHide, write=SetAutoHide, nodefault};
	__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=FAutoThemeAdapt, default=0};
	__property bool AutoSize = {read=FAutoSize, write=FAutoSize, nodefault};
	__property bool AutoDelete = {read=FAutoDelete, write=SetAutoDelete, nodefault};
	__property Graphics::TPicture* Background = {read=FBackground, write=SetBackground};
	__property Graphics::TColor BorderColor = {read=FBorderColor, write=FBorderColor, nodefault};
	__property Graphics::TColor BtnHoverColor = {read=FBtnHoverColor, write=FBtnHoverColor, nodefault};
	__property Graphics::TColor BtnHoverColorTo = {read=FBtnHoverColorTo, write=FBtnHoverColorTo, nodefault};
	__property Graphics::TColor BtnDownColor = {read=FBtnDownColor, write=FBtnDownColor, nodefault};
	__property Graphics::TColor BtnDownColorTo = {read=FBtnDownColorTo, write=FBtnDownColorTo, nodefault};
	__property Graphics::TColor CaptionColor = {read=FCaptionColor, write=FCaptionColor, nodefault};
	__property Graphics::TColor CaptionColorTo = {read=FCaptionColorTo, write=FCaptionColorTo, nodefault};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property TGradientDirection GradientDirection = {read=FGradientDirection, write=FGradientDirection, nodefault};
	__property Graphics::TBitmap* GlyphPrev = {read=FGlyphPrev, write=SetGlyphPrev};
	__property Graphics::TBitmap* GlyphNext = {read=FGlyphNext, write=SetGlyphNext};
	__property Graphics::TBitmap* GlyphDelete = {read=FGlyphDelete, write=SetGlyphDelete};
	__property Graphics::TBitmap* GlyphClose = {read=FGlyphClose, write=SetGlyphClose};
	__property Graphics::TBitmap* GlyphPopup = {read=FGlyphPopup, write=SetGlyphPopup};
	__property AnsiString HintNextBtn = {read=FHintNextBtn, write=FHintNextBtn};
	__property AnsiString HintPrevBtn = {read=FHintPrevBtn, write=FHintPrevBtn};
	__property AnsiString HintCloseBtn = {read=FHintCloseBtn, write=FHintCloseBtn};
	__property AnsiString HintDeleteBtn = {read=FHintDeleteBtn, write=FHintDeleteBtn};
	__property AnsiString HintPopupBtn = {read=FHintPopupBtn, write=FHintPopupBtn};
	__property bool Hover = {read=FHover, write=FHover, nodefault};
	__property Controls::TImageList* Images = {read=FImages, write=SetImages};
	__property int MarginX = {read=FMarginX, write=FMarginX, nodefault};
	__property int MarginY = {read=FMarginY, write=FMarginY, nodefault};
	__property int MaxWidth = {read=FMaxWidth, write=FMaxWidth, default=0};
	__property int MaxHeight = {read=FMaxHeight, write=FMaxHeight, default=0};
	__property bool PersistPosition = {read=FPersistPosition, write=FPersistPosition, default=0};
	__property Picturecontainer::TPictureContainer* PictureContainer = {read=FContainer, write=FContainer};
	__property int PopupLeft = {read=GetLeft, write=SetLeft, nodefault};
	__property int PopupTop = {read=GetTop, write=SetTop, nodefault};
	__property int PopupWidth = {read=FWidth, write=FWidth, nodefault};
	__property int PopupHeight = {read=FHeight, write=FHeight, nodefault};
	__property Menus::TPopupMenu* PopupMenu = {read=FPopupMenu, write=SetPopupMenu};
	__property AnsiString PositionFormat = {read=FPositionFormat, write=SetPositionFormat};
	__property AnsiString RegistryKey = {read=FRegistryKey, write=FRegistryKey};
	__property Graphics::TColor WindowColor = {read=FWindowColor, write=FWindowColor, nodefault};
	__property Graphics::TColor WindowColorTo = {read=FWindowColorTo, write=FWindowColorTo, nodefault};
	__property bool ShowScrollers = {read=FShowScrollers, write=FShowScrollers, nodefault};
	__property bool ShowDelete = {read=FShowDelete, write=SetShowDelete, nodefault};
	__property bool ShowPopup = {read=FShowPopup, write=SetShowPopup, nodefault};
	__property Byte AlphaEnd = {read=FAlphaEnd, write=SetAlphaEnd, nodefault};
	__property Byte AlphaStart = {read=FAlphaStart, write=SetAlphaStart, nodefault};
	__property int FadeTime = {read=FFadeTime, write=FFadeTime, default=50};
	__property int DisplayTime = {read=FDisplayTime, write=SetDisplayTime, nodefault};
	__property Byte FadeStep = {read=FFadeStep, write=FFadeStep, nodefault};
	__property TWindowPosition WindowPosition = {read=FWindowPosition, write=SetWindowPosition, nodefault};
	__property int ScreenMarginX = {read=FScreenMarginX, write=FScreenMarginX, default=0};
	__property int ScreenMarginY = {read=FScreenMarginY, write=FScreenMarginY, default=0};
	__property TAdvAlertWindowStyle Style = {read=FStyle, write=SetStyle, default=0};
	__property Graphics::TColor URLColor = {read=FURLColor, write=FURLColor, default=16711680};
	__property AnsiString Version = {read=GetVersion, write=SetVersion};
	__property TOnAnchorClickEvent OnAnchorClick = {read=FOnAnchorClick, write=FOnAnchorClick};
	__property Classes::TNotifyEvent OnAlertClick = {read=FOnAlertClick, write=FOnAlertClick};
	__property Classes::TNotifyEvent OnAutoHide = {read=FOnAutoHide, write=FOnAutoHide};
	__property TCanDeleteEvent OnCanDeleteMessage = {read=FOnCanDeleteMessage, write=FOnCanDeleteMessage};
	__property TDeleteMessageEvent OnDeleteMessage = {read=FOnDeleteMessage, write=FOnDeleteMessage};
	__property Classes::TNotifyEvent OnClose = {read=FOnClose, write=FOnClose};
	__property TCanCloseEvent OnCanClose = {read=FOnCanClose, write=FOnCanClose};
	__property TCustomPaintEvent OnCustomPaint = {read=FOnCustomPaint, write=FOnCustomPaint};
	__property Classes::TNotifyEvent OnNextMessage = {read=FOnNextMessage, write=FOnNextMessage};
	__property Classes::TNotifyEvent OnPrevMessage = {read=FOnPrevMessage, write=FOnPrevMessage};
	__property Classes::TNotifyEvent OnPopupClick = {read=FOnPopupClick, write=FOnPopupClick};
	__property Classes::TNotifyEvent OnShowMessage = {read=FOnShowMessage, write=FOnShowMessage};
private:
	void *__ITMSStyle;	/* Advstyleif::ITMSStyle */
	
public:
	operator ITMSStyle*(void) { return (ITMSStyle*)&__ITMSStyle; }
	
};


class PASCALIMPLEMENTATION TFadeThread : public Classes::TThread 
{
	typedef Classes::TThread inherited;
	
private:
	TAdvAlertWindow* FLayeredWindow;
	
protected:
	virtual void __fastcall Execute(void);
	
public:
	__fastcall TFadeThread(TAdvAlertWindow* aLayeredWindow);
public:
	#pragma option push -w-inl
	/* TThread.Destroy */ inline __fastcall virtual ~TFadeThread(void) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TMsgCollectionItem : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	Classes::TStringList* FText;
	int FImageIndex;
	int FTag;
	Graphics::TColor FColor;
	Graphics::TColor FColorTo;
	void __fastcall SetImageIndex(const int Value);
	void __fastcall SetText(const Classes::TStringList* Value);
	void __fastcall TextChanged(System::TObject* Sender);
	void __fastcall SetTag(const int Value);
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	
public:
	__fastcall virtual TMsgCollectionItem(Classes::TCollection* Collection);
	__fastcall virtual ~TMsgCollectionItem(void);
	
__published:
	__property Classes::TStringList* Text = {read=FText, write=SetText};
	__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
	__property int Tag = {read=FTag, write=SetTag, nodefault};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=536870911};
	__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=536870911};
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint CloseBtnSize = 0x14;
static const Shortint ScrollBtnHeight = 0x19;
static const Shortint ScrollBtnWidth = 0x14;
static const Shortint MAJ_VER = 0x1;
static const Shortint MIN_VER = 0x5;
static const Shortint REL_VER = 0x3;
static const Shortint BLD_VER = 0x1;

}	/* namespace Advalertwindow */
using namespace Advalertwindow;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Advalertwindow

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -