delphi2010 comes TTrayIcon tray icon controls Use

The main property of TTrayIcon:
TrayIcon.Icon
specified tray icon has several uses:
1, design choice;
2, the object is to give it a TIcon;
3, using the current program icon: TrayIcon1.Icon: = Application.Icon;
. 4, TrayIcon1.SetDefaultIcon; this is also using the current program icon.
TrayIcon.Icons and TrayIcon1.IconIndex
TrayIcon.Icons corresponds to a TImageList, with TrayIcon.IconIndex to specify the first icon TImageList in.
this combined with other features to make TrayIcon icon animation no problem.
TrayIcon.PopupMenu
TrayIcon.PopupMenu corresponds to a TPopupMenu, ultimately, the general tray icon context menu.
TrayIcon.Visible
hide or show the system tray icon; though simple, but crucial, because the default is False.
TrayIcon.Hint
with the mouse pointer prompt text, this is old-fashioned, here are new.
TrayIcon.BalloonHint, BalloonTitle, BalloonFlags, BalloonTimeout
this is a new Hint related.
TrayIcon.BalloonHint: Hint text
TrayIcon.BalloonTitle: Hint title
TrayIcon.BalloonFlags: Hint icon style
TrayIcon.BalloonTimeout: Hint residence time
required by ShowBalloonHint method TrayIcon start display
TrayIcon.Animate and TrayIcon1.AnimateInterval
TrayIcon new Hint (BalloonHint) can be set animation.
TrayIcon.Animate: This determines whether the animation is enabled
TrayIcon1.AnimateInterval: animation intervals
main event of TTrayIcon:
OnAnimate: animation code writing events
OnBalloonClick: ... when you click BalloonHint
the OnClick: when you click the icon ...
the OnDblClick
OnMouseDown
OnMouseMove
OnMouseUp
TTrayIcon there are two methods that have been mentioned earlier:
TTrayIcon .SetDefaultIcon;
TTrayIcon.ShowBalloonHint;

Guess you like

Origin www.cnblogs.com/jijm123/p/12602680.html