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 » U++ Widgets - General questions or Mixed problems » TabCtrl black fon
TabCtrl black fon [message #44666] Mon, 11 May 2015 20:41 Go to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
After the addition of bookmarks appears dark field
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <test/layer.lay>
#include <CtrlCore/lay.h>

class MyTabFrame : public Withframe<TopWindow> {
public:
	typedef MyTabFrame CLASSNAME;
	
	MyTabFrame() {
        CtrlLayout(*this);
	}
};

class App : public Withmain<TopWindow> {
public:
	typedef App CLASSNAME;
	MenuBar menu_;
	
	TabCtrl tab_;
	MyTabFrame frame_;
	SplitterFrame splitter_;
		
    App() {
        CtrlLayout(*this);
        
	tab_.Add(frame_.SizePos(), "Tab1");
	AddFrame(splitter_.Left(tab_, 350));
    }
};

GUI_APP_MAIN
{
	App w;
	w.Run();
}

[Updated on: Mon, 11 May 2015 20:41]

Report message to a moderator

Re: TabCtrl black fon [message #45042 is a reply to message #44666] Sun, 23 August 2015 20:43 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
This is because Frame area does not have defined any background. You can fix it easily though:

class App : public Withmain<TopWindow> {
public:
	typedef App CLASSNAME;
	MenuBar menu_;
	
	TabCtrl tab_;
	MyTabFrame frame_;
	SplitterFrame splitter_;
	StaticRect bg;
		
    App() {
        CtrlLayout(*this);
        
		tab_.Add(frame_.SizePos(), "Tab1");
		bg.Add(tab_.SizePos());
		AddFrame(splitter_.Left(bg, 350));
    }
};

Previous Topic: Upp svn8813 crashes on X11 backend
Next Topic: [FIXED] OpenGL / GLDrawDemo crash on Linux Ubuntu
Goto Forum:
  


Current Time: Fri Apr 19 12:37:42 CEST 2024

Total time taken to generate the page: 0.02265 seconds