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++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Ctrl * GetCallbackCtrl()
Re: Ctrl * GetCallbackCtrl() [message #6225 is a reply to message #6224] Thu, 02 November 2006 22:54 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
unodgs wrote on Thu, 02 November 2006 16:48

unodgs wrote on Thu, 02 November 2006 09:52

luzr wrote on Thu, 02 November 2006 09:15


virtual void ChildMouseAction(Ctrl * ctrl, int event, Point p)
{
   if(parent) parent->ChildMouseAction(ctrl, event, p);
}


Mirek

Good question. I have to think it over.


It seems that is unnecessary. I have created custom ctrl with StaticRect and Option in this rect. Then I add it to grid for each row (Ctrls()). Even if I was clicking most inner ctrl grid was recieving mouse events of this ctrl. It seems that one call in DispatchMouseEvent is enough as it sends events throug full ctrls chain.



If that is true, something is wrong Smile

(My bet is that "wrong" is implementation - DispatchMouseEvent really is not the right place).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debugger error
Next Topic: Copy and Paste changes colors in Icon Edit [BUG]
Goto Forum:
  


Current Time: Sat Aug 16 22:43:37 CEST 2025

Total time taken to generate the page: 0.05173 seconds