JVCL Help:TJvTrayIcon.DoDoubleClick

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Responds when the user double-clicks the tray icon.


Pascal

 procedureDoDoubleClick(Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);


Parameters

Parameters Description
Button: TMouseButton Determines which mouse button the user pressed.
Shift: TShiftState Indicates which keys (Shift, Ctrl, and Alt) were down when the user pressed the mouse button.
X: Integer Indicates the new x-coordinate of the mouse pointer.
Y: Integer Indicates the new y-coordinate of the mouse pointer.


Description

Do not call DoDoubleClick. It is called automatically when the user double-clicks the icon. As implemented in TJvTrayIcon, DoDoubleClick checks if an OnDblClick event handler is assigned. If so, DoDoubleClick triggers the OnDblClick event.
If no OnDblClick event handler is assigned, then it first checks if property PopupMenu is assigned, and if so executes the default shortcut menu command of PopupMenu, if it exists. Finally it checks if tvRestoreDbClick or tvMinimizeDbClick is included in property Visibility, and if so restores the visibility of the application by including tvVisibleTaskBar in property Visibility, or hides the application by excluding tvVisibleTaskBar from property Visibility.


See Also

TJvTrayIcon.OnDblClick, TJvTrayIcon.PopupMenu, TJvTrayIcon.Visibility


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page