473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to change the ToolTip location?

Hello,

I have written a Custom Control which inherits from ToolTip and it is an
OwnerDraw tooltip.

In the Popup event I calculate the size of the tooltip I need to display
(rather large tooltip) and resize it using the ToolTipSize property.

In the Draw event, I draw my tooltip.

All that works well, but when I hover over a control associated with my
tooltip, if the control is closer to the right edge of the screen than my
tooltip is wide, my tooltip gets parly displayed off the screen.

I have 2 questions:

1. isn't a tooltip normally supposed to auto-adapt its position so that it
always stays entirely visible, even if the control which displays it is
close to a screen edge?

2. is there a way I can programmatically change the tooltip location (after
the Popup event fired and just before its gets displayed)?

It looks like C# computes the tooltip location BEFORE I change the tooltip
size in the Popup event and does NOT adapt the tooltip location when I
change its size in the Popup event!

Thanks for help!

Eric
Jan 25 '06 #1
0 4487

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mphanke | last post by:
Hi, I would like to place an Icon on an Image. If the mouse is over this Icon, I want to display the associated text in a tooltip. How would I do this? Any ideas? My last request wasn't...
2
by: Alexander Bolotnov | last post by:
Good day to everyone, I am trying to make a ToolTip for a couple of TextBoxes. What I do is: create a new ToolTip and make it a Balloon: ToolTip myToolTip = new ToolTip();...
5
by: Nikolay Petrov | last post by:
I have a ListBox, which is binded to a DataTable. I would like to display a tooltip when the mouse cursor hovers over the items in the ListBox. I don't know how to find the index if ListBox item,...
0
by: Boni | last post by:
Dear all, is it possible to set a tooltip location, to other coordinates than cursor location? Thanks, Boni
0
by: EricL | last post by:
Hello, I have written a Custom Control which inherits from ToolTip and it is an OwnerDraw tooltip. In the Popup event I calculate the size of the tooltip I need to display (rather large...
0
by: mscdex | last post by:
I have a tooltip control added to my form as well as a treeview control. By using a Microsoft KB article (http://support.microsoft.com/kb/319963) as a guide, I was able to add tooltip support for...
12
by: CJM | last post by:
I want a semantically-appropriate way of providing a tooltip or similar mechanism when a user hovers over a particular cell in a table. Specifically, I have an intranet application that enables...
0
by: Jake Montgomery | last post by:
I am using .NET 2.0 forms and running on Windows XP SP2. When I have a tooltip on a combo box, and the combo box is expanded (“dropped down”) using the arrow, it will no longer display it’s...
1
by: Tao | last post by:
hi. Group, Does somebody here know how to change font (including font, font size) in tooltip. thanks
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.