U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » first row strange behaviour
Re: first row strange behaviour [message #4907 is a reply to message #4906] Thu, 24 August 2006 21:10 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
The trouble here is that no window is opened at the "GoBegin" time.

This again works:

#include <CtrlLib/CtrlLib.h>

GUI_APP_MAIN
{
	ArrayCtrl a;
	a.AddColumn("1");
	a.AddColumn("2").Ctrls<EditDate>();
	
	for(int i = 0; i < 300; i++)
		a.Add(i, GetSysDate() + i);

	TopWindow win;
	win.Sizeable();
	win.Add(a.SizePos());
	win.Open();
	a.GoBegin();
	win.Run();
}


Anyway, I will try to fix it to work even in the "unopened" mode.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About GetClickRow() and GetCursor()
Next Topic: How set read-only state to a editable column?
Goto Forum:
  


Current Time: Thu Sep 17 06:06:35 GMT+2 2026

Total time taken to generate the page: 0.00628 seconds