Home » U++ Library support » TabCtrl » How to change Tab name
How to change Tab name [message #35848] |
Wed, 28 March 2012 01:05 |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Hi there,
Having looked through all the TabCtrl functions and examples and this forum, I cannot see where to change the name of a Tab once created.
There must be a way to do this right?
Just to be clear....
...
towerDefs.Add();
CtrlLayout(towerDefs.Top());
towers.m_tab.Add(towerDefs.Top().SizePos(),"this is the name which I want to be able to change");
...
where m_tab is a TabCtrl.
Cheers,
Nick
|
|
|
Re: How to change Tab name [message #35852 is a reply to message #35848] |
Wed, 28 March 2012 07:47 |
|
Hi Nick,
sure, it is possible I believe you can do it like this:
...
towerDefs.Add();
CtrlLayout(towerDefs.Top());
towers.m_tab.Add(towerDefs.Top().SizePos(),"this is the name which I want to be able to change");
...
towers.m_tab.GetItem(0).Text("this is the changed text");
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Apr 26 21:13:45 CEST 2024
Total time taken to generate the page: 0.01860 seconds
|