Relative Content

Tag Archive for c#tooltip

How to recompute bounding rectangle for a tooltip?

I am working on a c# project where the tooltips will have three lines of text, I want the lines to align, so in the _Draw callback I’m using “Courier New” size 10, but I don’t know how to recompute the bounding rectangle and as a result its wrong when rendered.

How to recompute bounding rectangle for a tooltip?

I am working on a c# project where the tooltips will have three lines of text, I want the lines to align, so in the _Draw callback I’m using “Courier New” size 10, but I don’t know how to recompute the bounding rectangle and as a result its wrong when rendered.

How to adjust or set Bounds member of DrawToolTipEventArgs

I have added a Draw handler to draw the tool tips in an application, the Draw function sets a fixed space font and size, however as a result the bounding rectangle passed in via the DrawToolTipEventArgs parameter needs adjustment.