ToolTip Auto Position On Screen

  • 2 Replies
  • 250 Views
*

sors

  • *
  • 14
    • View Profile
ToolTip Auto Position On Screen
« on: 09 June 2021, 20:42:17 »
Hello, tell me please how i can set automatic position ToolTip on Button.
In this time i have a ToolTip crawling out from window.

*

texus

  • *****
  • 1631
    • View Profile
    • Texus's Blog
Re: ToolTip Auto Position On Screen
« Reply #1 on: 09 June 2021, 22:40:19 »
It's currently not possible.
I might have a look at implementing this in the next few days. It doesn't look that difficult, I think this line just has to check if the position plus size of the tooltip is larger than the size of m_view.

*

texus

  • *****
  • 1631
    • View Profile
    • Texus's Blog
Re: ToolTip Auto Position On Screen
« Reply #2 on: 11 June 2021, 19:42:23 »
The TGUI version from github now places the tool tip so that it doesn't fall (partially) outside the window.