Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » About ArrayCtrl options
Re: About ArrayCtrl options [message #1762 is a reply to message #1741] |
Sat, 18 March 2006 08:52   |
 |
mirek
Messages: 14266 Registered: November 2005
|
Ultimate Member |
|
|
kverko wrote on Fri, 17 March 2006 01:44 | Well, to be preciser there is a NoInsertAppend method what is said switch off (with false) the default InsertAppend mechanism.
This is the whole object (constructor) I wish to use auto-appending in:
Inswindow::Inswindow(){
CtrlLayout(*this, t_("Add new words"));
ilist.AddColumn(t_("hun")).Edit(es1);
ilist.AddColumn(t_("fin")).Edit(es2);
swapper.WhenPush = THISBACK(Swap);
rdy.WhenPush = THISBACK(Cm);
cancel.WhenPush = Breaker(IDOK);
hufi = 1;
ilist.AppendLine(true);
ilist.DoAppend();
ilist.ShowAppendLine();
}
Of course ilist is an ArrayCtrl. And with the last 3 rows I can get in the new window a row with row cursor active (highlighted). I type the two values in, then hit <Enter> first time - then the highlight disappears, but not any new auto-appended row. If I hit <Enter> once again, then got a newer row.
I suspect non-adequate use rather than a bug, if it is so, you will spot right now.
Miklós
|
DoAppend actually issues appending - it is not "property", but the action. My guess is that this is the problem - your ArrayCtrl is already appending the line when it appears on the screen... 
Mirek
|
|
|
Goto Forum:
Current Time: Fri Jul 18 17:59:42 CEST 2025
Total time taken to generate the page: 0.00781 seconds
|