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 » How to resize TabCtrl?
How to resize TabCtrl? [message #10997] Mon, 13 August 2007 17:08 Go to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi there,

Ok so TabCtrl resizes just fine but the child controls in a tab layout do not get resized or moved when I resize the whole thing. Is there a flag I can set or some example code showing what I would need to override please?

[I have a tab ctrl as part of a dialog window and I have child controls within the layouts which form the tabs. Am wanting a GridCtrl to resize but I've checked and all child controls fail to be affected by the resizing of the tab.]

It seems (to me) like the default behaviour for a TabCtrl should be for its children to get resized when it gets resized same as a normal layout.

What do you think? Smile

Nick

[Updated on: Mon, 13 August 2007 17:09]

Report message to a moderator

Re: How to resize TabCtrl? [message #10998 is a reply to message #10997] Mon, 13 August 2007 18:05 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
You need to call SizePos on the layout/ctrl in the tab, then it should behave as a normal layout.
        WithSomeLayout<ParentCtrl> t1;

	CtrlLayout(t1);	
	t1.SizePos();
	tab.Add("Tab1").Slave(&t1);
Re: How to resize TabCtrl? [message #11019 is a reply to message #10998] Tue, 14 August 2007 16:44 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Thanks Embarassed
Previous Topic: [BUG - FIXED] TabDlg crashes the application
Next Topic: Deleting Tabs
Goto Forum:
  


Current Time: Wed Apr 24 00:22:01 CEST 2024

Total time taken to generate the page: 0.01704 seconds