NotifyIcon
Previous  Next

Methods

New1(form AS Form, iconpath AS String) : Creates a new NotifyIcon associated with form and with the icon on iconpath. Form is a string for a native Form or a ControlRef for a FormEx.


Properties

ControlRef : Control [I] : Gets a reference to the underlying control.

ContextMenu: Control [I/O] : Gets or sets the context menu of the control.LeftClick: Bool [I] : If true the last click was a left button click otherwise it's the right button (or maybe the middle button).

Icon: Icon [I/O] : Gets or sets the icon of the control.

MouseButton : Int [I] : Gets the state of the mouse buttons on the last click event : 0 None : 1 Left : 2 Right : 4 Middle.

Text : String [I/O] : Gets or sets the text associated with the control. This text is displayed when the mouse hovers over thew icon in the System Tray.

Visible : Boolean [I/O] : Gets or sets whether the control is visible.


Events


Click-: The control has been clicked. It is possible to see if it is a left, middle or right button mouse click from the MouseButton property.

Resize-: The form with which the NotifyIcon is associated is being or has been resized. This event can occur multiple time during a user resize. On a FormEx form you can check the forms' WindowState property to find its' current state.