Tech Off Thread

3 posts

Tooltip when using custom painting on form

Back to Forum: Tech Off
  • User profile image
    GurliGebis

    Hey.

    I'm having a little problem.
    I have a form that I manually paint something on, by using the Paint event.
    I want to be able to show a tooltip when I move the mouse over a certain section, so I have implemented the MouseMove section, and that works fine.

    The problem is, that when the tooltip is displayed, the form is invalidated, and the custom painting gets drawn again, on top of the tooltip, which makes it disappear.

    So, is there a way to use tooltips when painting directly on the surface?

  • User profile image
    W3bbo

    I think Tooltips are drawn to their own window rather than painted on an existing window (otherwise they don't show when they extend outside the bounds of the window)

  • User profile image
    GurliGebis

    hmm, okay, but that doesn't explain why it does behave this way.
    Should I create a test projekt that demonstrate the problem, and upload it, might be easier to find the problem then?

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.