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 » TabCtrl » Why this doesn't work ?
Why this doesn't work ? [message #14173] Sun, 17 February 2008 23:30 Go to next message
mingodad is currently offline  mingodad
Messages: 46
Registered: February 2008
Location: UK
Member
Hello !

I'm lost, I'm trying get this to work, I read the examples and can see that they work but when I try this by myself it simply doesn't work.

I allways get a blank tab, no visible content on it.

I'm using upp 2008.1

I'm sending attached a small complete project with it.

Thanks to anyone that can help !

main.cpp
------
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <TabsTest/tab.lay>
#include <CtrlCore/lay.h>

class DBEdit : public WithDBEdit<TopWindow> {
typedef DBEdit CLASSNAME;
WithTabMainData<ParentCtrl> tab1;
WithTab2Layout<ParentCtrl> tab2;
public:
DBEdit();
};

DBEdit::DBEdit()
{
CtrlLayout(*this, "DB Edit");
tabData.Add(tab1.SizePos(), t_("Main"));
tabData.Add(tab2.SizePos(), t_("Prices"));
}

GUI_APP_MAIN
{
DBEdit dbEdit;
dbEdit.Run();
}
  • Attachment: TabsTest.zip
    (Size: 1.78KB, Downloaded 281 times)
Re: Why this doesn't work ? [message #14174 is a reply to message #14173] Mon, 18 February 2008 00:18 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 576
Registered: December 2005
Location: Budapest, Hungary
Contributor
DBEdit::DBEdit()
{
	CtrlLayout(*this, "DB Edit");
	CtrlLayout(tab1);
	CtrlLayout(tab2);
	tabData.Add(tab1.SizePos(), t_("Main"));
	tabData.Add(tab2.SizePos(), t_("Prices"));
}
Re: Why this doesn't work ? [message #14175 is a reply to message #14174] Mon, 18 February 2008 00:30 Go to previous message
mingodad is currently offline  mingodad
Messages: 46
Registered: February 2008
Location: UK
Member
Thanks a lot, even when I don't know exactly why we should do that !

It's working !
Previous Topic: [BUG - FIXED] Add() crashes system
Next Topic: TabDlg callback when another Tab is selected?
Goto Forum:
  


Current Time: Sat Feb 16 12:03:57 CET 2019

Total time taken to generate the page: 0.00550 seconds