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()
Ctrl * GetCallbackCtrl() [message #6110] Tue, 31 October 2006 08:56 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Hi!

Now in upp isn't possible to obtain ctrl address in its callback method eg:

Button btn;
btn <<= THISBACK(Action);

void Action()
{
//What ctrl is calling this action??
Ctrl * ctrl = GetCallbackCtrl();
}

Such method should work at least for default WhenAction (with such a restriction it can be coded at Ctrl class level)

I need it for my grid. I just have to move cursor to the proper line of grid - line where clicked ctrl is. Because now child control grabs all events the underlying grid dosn't recieve any messages from system and for examle LeftDown is not called (where I set the cursor line)

Is adding such a method possible?
 
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: Fri May 17 16:16:36 CEST 2024

Total time taken to generate the page: 0.03064 seconds