dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

c# tooltip draw function bounding rectangle issue

Open SPlatten opened this issue 1 year ago • 5 comments

I am trying to create a custom tool tip which consists of 3 lines, due to the content I have switched the font in the _Draw event to "Courier New", size 8. However its clear from the results that the bounding rectangle needs to be recomputed, but I cannot see how. Looking at the many samples online none of these show how to adjust the bounding rectangle.

I also tried implementing the _Popup event handler with odd results where the event handler is just not being called.

Labels: c#, tooltips, bounding rectangle

SPlatten avatar May 22 '24 13:05 SPlatten

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

ghost avatar May 22 '24 13:05 ghost

How do I add a label?

On 22 May 2024, at 14:21, dotnet-issue-labeler[bot] @.***> wrote:

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

— Reply to this email directly, view it on GitHub https://github.com/dotnet/dotnet-api-docs/issues/9942#issuecomment-2124785495, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3LKEVYY2RUQTHPV2E6IHTZDSLVZAVCNFSM6AAAAABIDUQR4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRUG44DKNBZGU. You are receiving this because you authored the thread.

SPlatten avatar May 22 '24 13:05 SPlatten

@SPlatten can you please share some code samples? It's unclear which UI framework are you using.

antonfirsov avatar Jun 02 '24 21:06 antonfirsov

This issue has been marked needs-author-action and may be missing some important information.

Tagging subscribers to this area: @dotnet/wpf-developers