How do I keep the TextBox tooltip visible even if...

  • How do I keep the TextBox tooltip visible even if...

    ...the user clicks on the TextBox.

    In some Layout I need that tooltip to remain visible even in this case.

    But it does not seem to be, at least at first sigth, an easy way to archieve this.

    Any idea or experience?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The tooltip is an HTML property that you won't be able to change, not its behavior at least.

    If this behavior doesn't fit you, you should then try to replicate it. Each textBox could be put in a container with a text/spritefont object, so when one is created/destroyed, so is the other. The text would be used as a tooltip then, you just have to position it. You can also add a 9patch in the container to make a background for this tooltip. Then, all you have to add is display/hide the text/BG depending if the textBox is focused or not.

  • Then, all you have to add is display/hide the text/BG depending if the textBox is focused or not.

    Nice idea and clear description. I'll test it. Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)