U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Ctrl * GetCallbackCtrl()
Re: Ctrl * GetCallbackCtrl() [message #6224 is a reply to message #6205] Thu, 02 November 2006 22:48 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

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.
 
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 Apr 25 12:41:58 GMT+2 2026

Total time taken to generate the page: 0.00583 seconds