Hi all!.
Today I have a curious trouble.
I have a button, ex. “btnPDFALL” I set Enabled=False by default.
And I have a Listbox. And thats how it must behave:
When I click the Listbox, the Enable turns “True”
But when I lost focus from It or click in another control, It will return to Enabled=False
So I used that events on the Listbox.
CellClick - For Listen when I click the Listbox, and I do this:
winFacturasRecibidas.btnPDFALL.Enabled = True
LostFocus - For Listen when I lost Focus, and I to this:
winFacturasRecibidas.btnPDFALL.Enabled = False.
The Idea works pretty well on Mac, but doesn’t Work on Windows.
When I run it on Windows do the following:
- When I click the Listbox change Enabled to True (At this point it’s OK)
- When I Lost Focus Enabled again sets to False
But the Issue happens When I click the Button. It doesn’t Nothing “Like Perry the Platypus”
Even I Tried putting a simple Msgbox “Say Hello” and Nothing happens.
But when I change the name of the Button, It works, but without the desired “Enabling” behavior.
Also I set a Test and I see that the failure is on LOSTFOCUS event.
When I disable the code that I written, It works.
The code run flawlessly. But obviously without the behavior of Lostfocus
Am I doing something wrong, Or Is this a Xojo Failure?
As I said Only happens in Windows, not in Mac. (I haven’t tested on Linux).
Regards