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 » ArrayCtrl: Edit doesn't like Option
Re: ArrayCtrl: Edit doesn't like Option [message #30071 is a reply to message #29522] Tue, 07 December 2010 09:37 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
i've got another problem, which is similar to yours, so i just reuse your thread Smile

problem: ArrayCtrl has got Option's as Editors, and some EditInt's.. everytime changes are made, i need to forward them in a custim action..(OnAction)


ArrayCtrl ac;
...
Ctrl* p = new Option();
p->WhenAction = THISBACK(OnAction);
SetCtrl(k, 1, p);
++k;
...
p = new EditInt();
p->WhenAction = THISBACK(OnAction);
ac.SetCtrl(k, 1, p);
...
void MyClass::OnAction()
{
   DoWork(ac.Get(0), ac.Get(1));
}


this works fine for EditInt, because the cursor is set properly, when EditInt is 'selected' to be edited, because EditField has SetFocus somewhere in it.. with Option, no cursor is set, when i cklick it, so the OnAction fails with an ASSERT.

when i manually select the row, clicking on the right remaining spot, that belongs to arrayctrl, and then, on the Option, it works..

any help, how to make Option be Focus aware? i dont like to mess with the upp code.. maybe i'm doing sth wrong ..


[Updated on: Tue, 07 December 2010 09:59]

Report message to a moderator

 
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: ArrayCtrl Write To Freed Memory Detected
Next Topic: Not able to remove Columns in Grid.
Goto Forum:
  


Current Time: Mon May 06 09:22:29 CEST 2024

Total time taken to generate the page: 0.02153 seconds