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 |
|
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
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
|
|
|
|
|
ArrayCtrl: Edit doesn't like Option
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Tue, 07 December 2010 09:37
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: unodgs on Tue, 07 December 2010 11:08
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Tue, 07 December 2010 11:22
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: unodgs on Tue, 07 December 2010 12:37
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Tue, 07 December 2010 12:39
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: unodgs on Tue, 07 December 2010 13:14
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Tue, 07 December 2010 14:03
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Wed, 08 December 2010 09:51
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Thu, 09 December 2010 09:31
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: mirek on Sun, 26 December 2010 01:12
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
By: kohait00 on Sun, 26 December 2010 09:46
|
|
|
Re: ArrayCtrl: Edit doesn't like Option
|
Goto Forum:
Current Time: Mon May 06 09:22:29 CEST 2024
Total time taken to generate the page: 0.02153 seconds
|