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

Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » CtrlTab slaves
Re: CtrlTab slaves [message #9405 is a reply to message #9404] Sat, 05 May 2007 17:11 Go to previous messageGo to previous message
idaho is currently offline  idaho
Messages: 6
Registered: April 2007
Location: Frankfurt-am-Main
Promising Member

This is what I tried right now. Unfortunately, it doesn't work (i. e. the tab is empty even if I fill the ArrayCtrl with data), or did I miss something?

I created a simple project, with a top window, a tab control, and a button. When button is clicked, the folowing code is fired:

ArrayCtrl array;
	
if (tab.GetCount() == 0)
	tab.Add(array.SizePos(), "test");
else
{
	tab.Add(array.SizePos(), "test");
	tab.Set(tab.GetCount() - 1);
}
array.AddColumn("test1");
array.AddColumn("test2");
array.Add("test1", "test2");


When the second tab is created, and you try to switch to the first tab, an exception is thrown, like, EXCEPTION_ACCESS_VIOLATION.
When a grid control is used, there are no errors but still no result.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: howto clean up generated test data?
Next Topic: Quick question on erroneous build
Goto Forum:
  


Current Time: Tue Oct 13 20:03:28 GMT+2 2026

Total time taken to generate the page: 0.66863 seconds