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

Get help using Construct 2

Post » Tue Mar 04, 2014 12:06 pm

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?
B
17
S
4
G
1
Posts: 105
Reputation: 1,874

Post » Tue Mar 04, 2014 12:57 pm

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.
B
17
S
8
G
4
Posts: 473
Reputation: 6,191

Post » Tue Mar 04, 2014 8:11 pm

Guizmus wrote: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!
B
17
S
4
G
1
Posts: 105
Reputation: 1,874


Return to How do I....?

Who is online

Users browsing this forum: KTML5 and 26 guests