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 » About ArrayCtrl options
Re: About ArrayCtrl options [message #1767 is a reply to message #1762] Sat, 18 March 2006 09:18 Go to previous messageGo to previous message
kverko is currently offline  kverko
Messages: 8
Registered: December 2005
Location: Porva, Hungary
Promising Member
luzr wrote on Sat, 18 March 2006 08:52


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.

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... Wink

Mirek



Of course, DoAppend() is an action according to my design. If I remove it, I get an empty ArrayCtrl in the new window, and can start entering the values from the right-click menu only. But the behavior the same as I have written above: I get a new row after every SECOND <Enter>.

Miklós
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl strange colors in Navigate 602beta3 [BUG][FIXED]-Value problem
Next Topic: ArrayCtrl scroll position [BUG] [FIXED]
Goto Forum:
  


Current Time: Fri Jul 18 17:56:31 CEST 2025

Total time taken to generate the page: 0.06497 seconds