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 #6120 is a reply to message #6119] Tue, 31 October 2006 13:46 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:

How so? You do not know on which line you have placed the Button?

Anyway, instead of int line, you can use Ctrl *ctrl and THISBACK1(Action, &btn).


Yes, you're right, line is constant for ctrl..
Second solution is even better, I already thought about that.

Quote:

Of course. That is what I expect from the ArrayCtrl (moving focus moves cursor).

Actually, what I wanted to say is that perhaps not even WhenAction is enough here.... but OTOH all depends on what you really expect.


The problem is that in my case cursor should always change line if click is in another place. It is connected with callbacks
WhenUpdateRow, WhenUpdateCell mostly used to updating a database. If I click option ctrl in cell the value of cell is changed - WhenUpdateCell should be called and cursor should be moved to this row - to update provious row and to be prepare to call WhenUpdateRow at the new row.
Moving cursor for all controls is more logical to me. Wide used developer express grid behave the same.
 
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:25 CEST 2025

Total time taken to generate the page: 0.04123 seconds