JVCL Help:TJvTrayIcon.GetIconRect

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

Search in JVCL Help

 
Search in all projects
 

Summary

Returns the rectangle of the tray icon.


Pascal

 functionGetIconRect(varIconRect: TRect): Boolean;


Parameters

Parameters Description
var IconRect: TRect The rectangle of the tray icon.


Return Value

True if the rectangle could be retrieved. If the icon is hidden or some error occurred, GetIconRect returns false.


Description

Call GetIconRect to obtain the rectangle of the tray icon. The rectangle is returned as the IconRect parameter.
For example, you could use GetIconRect to display a balloon using the TJvBalloonHint component at the icon position in the tray: var

 R: TRect;
begin
if JvTrayIcon1.GetIconRect(R) then
JvBalloonHint1.ActivateHintRect(R, 'Header', 'Hint');
end;


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