Well, to get the _Change event working, just send this message:
$RichEdit->SendMessage(0x445, 0, 1);

This will help me. This has probably been posted before. I wish the search function on the mailing archives would work. Ah well, if wishes were fishes...

Unfortunately, theres a slight problem...

This line is complaining that it needs another paramater.

my $currentline = $RichEdit->LineFromChar;

Sorry, forgot something:

($x,$y) = $RichEdit->Selection;
$currentline = $RichEdit->LineFromChar;

should be:

$currentline = $RichEdit->LineFromChar($y);

Of course, you could also put $x, but if you're actively typing, your selection size will be 0 and $x and $y will be the same, and if you have a longer bit selected, you probably want the whole selection visible.

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Reply via email to