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 change Tab name
How to change Tab name [message #35848] Wed, 28 March 2012 01:05 Go to next message
nixnixnix is currently offline  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 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1779
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Nick,

sure, it is possible Smile 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
Previous Topic: Tabs with same layout but different "threads"
Next Topic: A few questions regarding TabCtrl
Goto Forum:
  


Current Time: Fri Jan 22 17:11:25 CET 2021

Total time taken to generate the page: 0.01080 seconds