Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 messageGo to previous message
fallingdutch is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Right aligned EditField?
Next Topic: Bug "Self-invalidating time in EditTime"?
Goto Forum:
  


Current Time: Mon Jun 17 06:32:58 CEST 2024

Total time taken to generate the page: 0.02040 seconds