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
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;
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
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
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
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
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
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
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
9 matches
Mail list logo