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 » ArrayCtrl, HeaderCtrl & GridCtrl » Embed editfields in ArrayCtrl
Re: Embed editfields in ArrayCtrl [message #24300 is a reply to message #24295] Sat, 09 January 2010 12:47 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mdelfede wrote on Sat, 09 January 2010 03:38

luzr wrote on Sat, 09 January 2010 00:47



Not to say anything bad about your templat - it is clever "not knowing enough about interface definition" design. But it is sort of overkill - if you are going to override RightDown, you can skip the part about translating mouse coordinates...


ArrayCtrl::RightDown() doesn't need a correct mouse point ?



I mean that you can call menu.Execute directly, not care about ArrayCtrl RightDown. But now thinking about it, you need to move cursor too, right....

Quote:


Thinking a bit more, the solution should be :
1- Add the behaviour to ArrayCtrl, but...
2- Use your PostCallback way to handle the event



PostCallback sultion works quite well IMO. And it is sort of standard solution for these situations.

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
Previous Topic: problems with ArrayCtrl and SetFont
Next Topic: Assertion in GridCtrl
Goto Forum:
  


Current Time: Thu Apr 25 13:22:52 CEST 2024

Total time taken to generate the page: 0.02322 seconds