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 previous message
mingodad is currently offline  mingodad
Messages: 53
Registered: February 2008
Location: Spain
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 438 times)
 
Read Message
Read Message
Read Message
Previous Topic: [BUG - FIXED] Add() crashes system
Next Topic: TabDlg callback when another Tab is selected?
Goto Forum:
  


Current Time: Thu Apr 18 03:35:48 CEST 2024

Total time taken to generate the page: 0.02270 seconds