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 |
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.
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 29 13:09:35 CEST 2024
Total time taken to generate the page: 0.02423 seconds
|