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 » Can TabCtrl be created this way?
Can TabCtrl be created this way? [message #33497] Sat, 13 August 2011 18:14 Go to next message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member
Hi,
i don't want to put a TabCtrl in a layout, instead i want it be created dynamically. Is it possible?
Thanks
Re: Can TabCtrl be created this way? [message #33498 is a reply to message #33497] Sat, 13 August 2011 19:11 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

o_wild wrote on Sat, 13 August 2011 18:14

Hi,
i don't want to put a TabCtrl in a layout, instead i want it be created dynamically. Is it possible?
Thanks

Hi o_wild

Of course, just as any other Ctrl. You just have to have an instance of TabCtrl and than Add() it to a parent where you want it. You'll most probably also need to set position/size using LeftPos(),SizePos(), etc. How you get the instance is up to you - it can be a class member, it can be created inside a container (e.g. 'Array<TabCtrl>::Add()' or One<TabCtrl>) or even created using operator new (but that is really discouraged Wink ).

Best regards,
Honza
Previous Topic: TabBar broken makeactive behaviour
Next Topic: How do i create tabs??
Goto Forum:
  


Current Time: Thu Mar 28 12:18:18 CET 2024

Total time taken to generate the page: 0.01322 seconds