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

Home » U++ Library support » TabCtrl » tabctrl contents not visible
Re: tabctrl contents not visible [message #37965 is a reply to message #37964] Sun, 25 November 2012 13:42 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

crydev wrote on Sun, 25 November 2012 13:00

I have the following code. To me it seems ok but it is not working. The contents of the ParentCtrl I want to put inside a tab is not visible! Can anybody help me out in this?


Hi crydev,

I've been caught by the same problem in the past and I remember how frustrating it was Smile But the reason is actually really simple. You are adding mLibraryTab without specifying any size for it, so it is not visible Wink You have to provide some sizing, this should work:
mLibraryTab
	<< bOk.Ok().SetLabel("OK").LeftPos(10, 50).BottomPos(10, 20)
	<< bCancel.SetLabel("Cancel").LeftPos(65, 50).BottomPos(10, 20)
	<< mDirectories.SetLabel("Library Directories").LeftPos(10, 300).TopPos(5, 110)
	<< mLibraryGeneral.SetLabel("Library General").LeftPos(10, 300).TopPos(120, 40)
	<< bBrowse.SetImage(MovieManagerIml::AddButton()).LeftPos(265, 40).TopPos(25, 40)
	<< bRemove.SetImage(MovieManagerIml::DeleteButton()).LeftPos(265, 40).TopPos(70, 40)
	<< mDirectoryList.LeftPos(20, 240).TopPos(25, 85)
	<< mForceResync.SetLabel("Synchronise when settings have changed.").LeftPos(20, 240).TopPos(135, 20)
;
	
mTabCtrl.Add(mLibraryTab.SizePos(), "Library"); // <-- SizePos() added
Add(mTabCtrl.SizePos());

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to dynamically add remove tabs
Next Topic: TabCtrl.WhenSet is called when app closes
Goto Forum:
  


Current Time: Mon Sep 14 10:32:28 GMT+2 2026

Total time taken to generate the page: 0.00934 seconds