Home » U++ Library support » LineEdit, EditFields, DocEdit » lostfocus
Re: lostfocus [message #6057 is a reply to message #6055] |
Sun, 29 October 2006 11:47 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to previous message](theme/default/images/down.png) |
fallingdutch
Messages: 258 Registered: July 2006
|
Experienced Member |
|
|
use the virtual method
virtual Image MouseEvent(int event, Point p, int zdelta, dword keyflags)
where event == MOUSELEAVE, so eg this:
Image MyCtrl::MouseEvent(int event, Point p, int zdelta, dword keyflags) {
if(event == MOUSELEAVE) {
//do something here
return NULL;
}
else {
return Ctrl::MouseEvent(event, p, zdelta, keyflags);
}
};
[edit: just saw, that EditCtr has the virtual function "LostFocus" - just use that]
Bas
[Updated on: Sun, 29 October 2006 12:22] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jun 17 06:32:58 CEST 2024
Total time taken to generate the page: 0.02040 seconds
|