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

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: 14291
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: Sat Jul 04 16:11:56 GMT+2 2026

Total time taken to generate the page: 0.00704 seconds