Open rdimeo opened 1 year ago
@rdimeo thanks for this nice bug report and how to reproduce --- will be cured soon
@rdimeo I've tested and do not have this behaviour at all. IDL and GDL behave the same. What I get is:
what is your platform ? ( !version and !gdl outputs)
GDL> print,!version
{
x64
Windows
Windows
Windows
8.2
Feb 21 2023
64
64
}
GDL> print,!gdl
{
1.0.2 Git
Feb 21 2023
1676955600
1
0
0
}
The unusual behavior that I described is repeatable in GDL (for me) but works as expected on IDL.
Ah, not fully tested under Windows, I'm afraid. wxWidgets may not behave exactly the same under Windows, eventhough they claim to be portable. Strangely, !GDL says it is compiled without wxWidgets ?
tested with windows 10, I find the same events as above, but text is not edited : that's already one bug.
Redone test. Apparently with GDL/wxwidgets one can get two '0' with one keystroke (adding a character), so indeed there could be a problem, although the handler is supposed to deal with any type of events and that's should be transparent.
.FU
seems OK, also.
Opening an issue for this .
I came across unusual and unexpected behavior when attempting to process events returned from a text widget. The following short program below demonstrates this behavior.
The first time I run the program after doing a full reset (.FU), it does not return EVENT.TYPE 0 events after pressing ENTER (as I would expect a text widget should). Other event types seem to be returned properly. The next time I run the program (after NOT doing a full reset), when I change the text in the short program below and press ENTER, I get the following error:
So the WIDGET_TEXT does not seem to be returning events and event types as I would expect. And it also seems to depend whether or not I've done a full reset (though the behavior is still unexpected). Thanks in advance!