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  |
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  |
|
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 ).
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Apr 25 13:33:10 CEST 2025
Total time taken to generate the page: 0.02757 seconds
|