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 #1776 is a reply to message #1767] Sat, 18 March 2006 15:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
Well, took a while as I have fixed AppendLine option in the process Smile

#include "ArrayCtrlEdit.h"

GUI_APP_MAIN
{
	Ctrl::SetXPStyle(false);
	EditString es1, es2;
	ArrayCtrl list;
	list.AddColumn(t_("hun")).Edit(es1);
	list.AddColumn(t_("fin")).Edit(es2);
	list.Appending().AppendLine();
	list.AutoAppending();
	list.DoAppend();
	TopWindow win;
	win.Add(list.SizePos());
	win.Run();
	win.Sizeable();
}


I guess key for you here is "AutoAppending".

I am not sure if you in fact want AppendLine - this ads one "odd" line at the end of of list that in fact is not part of list (its position is GetCount()), but can be used to append a line (by pressing the Enter). It is more or less intended to make inserting ortoghonal - without that, you cannot insert the last line, as inserting always takes place before the current line (ok, you can force ArrayCtrl to insert after the current line, but then you cannot insert the firt line..).

Mirek
 
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:54:25 CEST 2025

Total time taken to generate the page: 0.03925 seconds