Hi,

I want to create a RichEdit field that handles the keyboard and mouse
events, and other events (like ENM_LINK).

I have imported all the events I want using:
use Win32::GUI qw(MB_OK MB_YESNO MB_ICONEXCLAMATION MB_ICONHAND ENM_CHANGE
ENM_KEYEVENTS ENM_LINK ENM_MOUSEEVENTS ENM_SELCHANGE);

Then right after defining the RichEdit field, I have put:

$Control->SetEventMask(ENM_MOUSEEVENTS);

I have also tried:
$Control->SetEventMask(ENM_CHANGE|ENM_KEYEVENTS|ENM_LINK|ENM_MOUSEEVENTS|ENM
_SELCHANGE);

I have defined a Control_Click and a Control_DblClick subroutines which
should be called by -onClick and -onDblClick, but nothing happends if I
click or double-click in the RichEdit field.

Should I do something else to activate those events?

Thank you.

Teddy


Reply via email to