Joe,
Something like
my ($x, $y) = $RE->Selection();
should do it. $x and $y will be the character positions of the
selection, the whole text in the richedit being treated as a
single long string. If you want to find out line numbers you
can use
my $line1=$RE->LineFromChar($x);
my $line2=$RE->LineFromChar($y);
Cheers,
Kev.
|---------+------------------------------------------------>
| | [EMAIL PROTECTED] |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | ceforge.net |
| | |
| | |
| | 07/11/2002 18:01 |
| | |
|---------+------------------------------------------------>
>----------------------------------------------------------------------------------------------|
|
|
| To: [email protected]
|
| cc:
|
| Subject: [perl-win32-gui-users] Richedit selected text
|
>----------------------------------------------------------------------------------------------|
Hello,
I know that if you have some text selected in Richedit you can get the
start and end position but how to you get the actuall text that is
selected?
Thanks,
Joe
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Perl-Win32-GUI-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users