CXTTipWindow |
Post Reply |
Author | ||
Karnize
Newbie Joined: 20 October 2003 Location: Italy Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 17 December 2003 at 8:04am |
|
Hello, I start to use your CXTTipWindow to display tooltips in my program and found some constraints. If tooltip popups near the screen border it can partly goes outside the screen, but standard Windows tooltips always shown entirely. The same problem with Windows taskbar. There is no possibility to calculate the rect of the tooltip before it will be showed so there is no possibility to solve this problem in my sources. It will be very good if CXTTipWindow modify the point there it will be displayed to fit the screen or you add the function to calculate the tooltip rect before show the tooltip. |
||
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
|
Hi Giovanni: If you are interested here is the code for a derivative of CXTTipWindow that will make sure the popup fully displays (provided it is not too big to fit) on the screen. In cases where there is more than one monitor then the tip will display on the same monitor that contains the mouse pointer. Actually, I found that this is the only way to make the tip show up at all. Ignore the class name, I pulled the code from a class that has many more mods including Notifications to parent to allow updating of the tooltip text just before displaying the tip. Hence the suffix Notify. Header File
|
||
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
|
Noticed a bug in CXTTipWindow that does not display the drop shadow if delayed display is selected. I copied the SetWindow... line from OnTimer which has the bug. change that line in CXTTipWindowNotify::OnTimer to:
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |