Textfield's Helptag

Hi everyone !

I’ve a problem with textfield’s helptag.

I set a helptag in textfield :

textfield1.helptag="Data"

It works correctly when mouse enters the textfield, the helptag displays correctly.

But after, I empty the helptag :

textfield1.helptag=""

and when mouse enters the textfield, helptag still displays “Data”

I checked displaying the helptag content in a message box and the result is “” (empty).

Is this a bug ? My OS is Linux (Ubuntu 16.04).

Tested on 2016R1 & 2015R1 with ElementaryOS (Ubuntu 14.04 - Kernel 4.0.0-040000-generic)

it works as it should. (code in TextField.Open)

[quote=270341:@Axel Schneider]Tested on 2016R1 & 2015R1 with ElementaryOS (Ubuntu 14.04 - Kernel 4.0.0-040000-generic)

it works as it should. (code in TextField.Open)[/quote]

I Axel,

Please, could you try this :

  • Create un textfield
  • Create a pushbutton with in action event : textfield.helptag=“Hello”
  • Create a second pushbutton with in action event : textfield.helptag=""

Could you tell me if it works when mouse enters textfield ?

When I try the exemple I gave you, textfield.helptag is not removed when I press the second pushbutton.

Otherwise, if I put : textfield.helptag=“Goodbye” in action event of second pushbutton, it works correctly.

Thanks four your help.

You’re right. With Buttons it shows always “Hello”.

Here is an example using ToolTip, works better.

You have controls on the layout named TextField ?
I suspect that alone should give you problems

Thanks for trying my example and for sharing your solution.

Thanks for your help Axel !

[quote=270454:@Norman Palardy]You have controls on the layout named TextField ?
I suspect that alone should give you problems[/quote]

Yes, I have many controls on the layout named textfield.

Is this a bug ?

textfield ?
nothing more ?
and not named textfield1, textfield2 etc ?

if they’re named textfield there’s a real problem as that is the name of a class and the IDE should not let you do that

[quote=270504:@Norman Palardy]textfield ?
nothing more ?
and not named textfield1, textfield2 etc ?

if they’re named textfield there’s a real problem as that is the name of a class and the IDE should not let you do that[/quote]

I have many textfields named textfield1, textfield2, etc… No textfield named textfield.

I’ve also many pushbuttons and labels on the layout.

Was just rereading the therad and I see at first you said “textfield1” etc
Then in a second post you wrote

And that code made me wonder what your ui elements were named

FWIW I just opened 2016r1 on Ubuntu 15 and

  1. created a new desktop project
  2. added 3 text fields to the window (creatively named textfield1, textfield2, textfield3
  3. to each I added MouseEnter & MouseExit events
  4. for textfield1.mouseenter I put me.helptag = "help 1"
  5. for textfield2.mouseenter I put me.helptag = ""
  6. for textfield3.mouseenter I put me.helptag = "help 3"
    7)in all mouseexits I put me.helptag = ""

Run

I get the right help tags every time

[quote=270512:@Norman Palardy]FWIW I just opened 2016r1 on Ubuntu 15 and

created a new desktop project
added 3 text fields to the window (creatively named textfield1, textfield2, textfield3
to each I added MouseEnter & MouseExit events
for textfield1.mouseenter I put me.helptag = “help 1”
for textfield2.mouseenter I put me.helptag = “”
for textfield3.mouseenter I put me.helptag = “help 3”
7)in all mouseexits I put me.helptag = “”

Run

I get the right help tags every time[/quote]

I understand it this way:

He wants to change the helptag with buttons
Button1 - TextField1.HelpTag = “Hello”
Button2 - TextField1.HelpTag = “”

and that does not work.
After pressing the Button2, it still displays “Hello”

AH I misread what he was trying to do
Definitely seems a bug that if I set it using “me.helptag” it works but “fieldname.helptag” doesn’t

EDIT : Yup definitely seems a bug
I created a report about this - <https://xojo.com/issue/44206>