RE: [perl-win32-gui-users] How do I recognize that the user has pressed enter inside a text box?

2002-07-01 Thread Steven Swenson
Thanks Roger, '-mulitline' seems to do the trick! I will have to do some cleaning but I think I can get it to work. I already had a similar test for Text() to check for return character by character and Text doesn't return those characters. Thanks for your help. --steve At 09:02

RE: [perl-win32-gui-users] How do I recognize that the user has pressed enter inside a text box?

2002-07-01 Thread Rogers, John
Hi, If you specify, -multiline=>1, when you define the textfield, then the Change() event occurs when the user presses enter. My idea is you could search the text string as each character is typed and match on "enter". something like this, #untested code sub textfield_Change{my $rtest = 0;

RE: [perl-win32-gui-users] How do I recognize that the user has pressed enter inside a text box?

2002-07-01 Thread Steven Swenson
Basically I want the equivalent of the pascal readln or perl $input = ; from within a textbox. the Text() method does allow me to gain access to the information entered but does not tell me whether the information was committed to by the user. I don't want to use a button if I can get away with

RE: [perl-win32-gui-users] How do I recognize that the user has pressed enter inside a text box?

2002-07-01 Thread Steven Swenson
Basically I want the equivalent of the pascal readln or perl $input = ; from within a textbox. the Text() method does allow me to gain access to the information entered but does not tell me whether the information was committed to by the user. I don't want to use a button if I can get away with

RE: [perl-win32-gui-users] How do I read the information in a tex tbox?

2002-07-01 Thread Piske, Harald
I'm assuming you want to get the contents of a text field, not text file ... ;-) There is the Text() method, defined as a general function, i.e. should be valid for all widgets. It returns all of a field's contents. If you want the bit that's selected: ($from, $to) = $Main->MyField->Selection() $s

[perl-win32-gui-users] How do I read the information in a textbox?

2002-07-01 Thread Steven Swenson
Ok, This feels like a silly question. However the documentation I have on Win32::Gui does not seem to specify a method by which I can actually read the content of a text file. All select, selectAll do is tell me they are successful. And Change() is called for every character... so I hope som

RE: [perl-win32-gui-users] crashes...

2002-07-01 Thread Chris Ingrassia
Heh... should've mentioned I tried it under two builds of ActivePerl and v558 and 665 of Win32::GUI :) What I have found is that if I load up DestroyWindow via Win32::API, and then do an "exit", right afterwards, it disappears (presumably because the perl environment thinks it's dying, and

RE: [perl-win32-gui-users] crashes...

2002-07-01 Thread Piske, Harald
Win32-GUI Versions 0.558 and 0.665 are totally different, the latter being a thorough rework. If you use one, try the other to see if it helps. I've made a post the other day about GUI crashing when I use DoEvents() - like you, I could only do some magic to shift the crash to a different point. Wh

[perl-win32-gui-users] crashes...

2002-07-01 Thread Chris Ingrassia
If anyone could offer any insight here, it would be greatly aprpecaited. I have been struggling with Win32::GUI for a few days now, and I keep running into the same problem. Using ActivePerl (the latest build, I can't remember the build number off the top of my head) inside a Windows Scr