From: Piske, Harald <Harald.Piske@bo...> - 2001-04-06 06:14:43
I'd like to share a solution to a problem that has been driving me nuts for
a while. I changed a Textfield control to a RichEdit and it would not give
me the _Change event. I dug in the GUI.xs and could find nothing wrong. I
finally tracked it down to the eventmask being zero, which means that the
notification messages don't come to the GUI message loop in the first place.
The workaround is to do
$MainWindow->myRichEditField->SendMessage (0x445, 0, 1);
that sends EM_SETEVENTMASK (0x445) to the control with the ENM_CHANGE bit
set. Hope that spares somebody else a headache.
Get latest updates about Open Source Projects, Conferences and News.