# trayicon class An implementation of the the system tray icon.
Inherits
object
Description
This class provides a standard trayicon functionality.
Functions
`setIcon(<image_id>).`
Sets the tray icon. See the image identifier documentation for the explaination of the <image_id> parameter.
`setTooltip(<tooltip:string>).`
Sets the tray icon tooltip.
`show()`
Shows the tray icon.
`hide()`
Hides the tray icon.
`isVisible()`
Returns '1' if the tray icon is currently visible.
`showMessage(<title:string>,<message:string>,<message_icon:string>,<timeout:integer>)`
Shows a balloon message for the entry with the given title, message and message_icon for the time specified in millisecondsTimeoutHint. title and message must be plain text strings. Message can be clicked by the user; the messageClickedEvent() will be triggered when this occurs. Valid values for message_icon are: - NoIcon : No icon is shown. - Information : An information icon is shown. - Warning : A standard warning icon is shown. - Critical : A critical warning icon is shown.
`setContextMenu(<popupmenu:hobject>).`
Associates the given <popupmenu> with the tray icon.
`activatedEvent(<reason:string>)`
This event is triggered when the user click the tray icon. If you reimplement this function the reason parameter will be passed as $0. Values for reason are: - Unknown : Unknown reason. - Context : The context menu for the tray icon was requested. - DoubleClick : The tray icon was double clicked. - Trigger : The tray icon was clicked. - MiddleClick : The tray icon was clicked with the middle mouse button. The default implementation emits the $activated() signal.
`messageClickedEvent()`
This event is triggered when the message displayed using $showMessage() was clicked by the user. The default implementation emits the $messageClicked() signal.
Signals
`$activated()`
This signal is emitted by the default implementation of $activatedEvent.
`$messageClicked()`
This signal is emitted by the default implementation of $messageClickedEvent.

Index, Object Classes

KVIrc 4.2.0.6190 Documentation
Generated by root at Tue Sep 24 07:25:10 2013