Robert,
Thanks for the code. I tried to tweak it around the 1024-char limitation:
sub btnChange_Click {
my $text1 = $re-Text();
my $maxlen = 1024;
I changed that to:
my $maxlen = 2+ 2 * length $text1;
and left everything else the same. The problem now is that there is a
Glenn Linderman wrote:
However, the code shown seems like it can't perform a round trip.
Right. I never implemented the return, as Dan's query was only for
getting the text out. I should have change the button label to reflect
this.
I haven't yet figured out the magic by which \u305?
Dan,
$re-Text() behind the scenes calls the win32api GetWindowText API,
which in turn sends a WM_GETTEXT message to the richedit control. As far
as I can see there is no Unicode version of GetWindowText.. You
actually need to send a EM_GETTEXTEX message (see msdn for more
information).
3 matches
Mail list logo