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 can I change the TabCtrl font size and weight? (The tab names of bold and large font would be easier to read.)
How can I change the TabCtrl font size and weight? [message #46624] Wed, 15 June 2016 15:51 Go to next message
jfranks is currently offline  jfranks
Messages: 36
Registered: September 2014
Location: Houston, Texas
Member
The tab names are very hard to read on our equipment.

Is there a way to control both the font and weight?

-- Jeff
Re: How can I change the TabCtrl font size and weight? [message #46632 is a reply to message #46624] Thu, 16 June 2016 14:32 Go to previous messageGo to next message
omari is currently offline  omari
Messages: 264
Registered: March 2010
Experienced Member
Hi,
You can do that using QTF. for example:
	tab.Add("\1[ [ [6!Arial! Test]]]");
	tab.Add("\1[ [ [4!Courier! Test]]]");


see the menu "Assist/QTF designer" for more infos about QTF.


regards
omari.
Re: How can I change the TabCtrl font size and weight? [message #46635 is a reply to message #46632] Fri, 17 June 2016 13:55 Go to previous messageGo to next message
jfranks is currently offline  jfranks
Messages: 36
Registered: September 2014
Location: Houston, Texas
Member
Yes, we have tried that.
There are unintended complications because of internationalization.
Is there a way to separate out the text that needs translation from the surrounding QTF elements?

-- Jeff
Re: How can I change the TabCtrl font size and weight? [message #46637 is a reply to message #46635] Fri, 17 June 2016 21:02 Go to previous messageGo to next message
omari is currently offline  omari
Messages: 264
Registered: March 2010
Experienced Member
I think, you can use concatenation, and escape the Qtf from the translated string:
	tab.Add("\1[ [ [6!Arial! " + DeQtf(t_("Test")) + "]]]");
	tab.Add("\1[ [ [4!Courier! " + DeQtf(t_("Test")) + "]]]");


regards
omari.
Re: How can I change the TabCtrl font size and weight? [message #46650 is a reply to message #46624] Tue, 21 June 2016 23:04 Go to previous message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
Oh, I see. I tried this out and it works well in managing separation of concerns regarding not poluting T++ translation files with Qtf elements.

This is great !
Thank you.

-- Jeff
Previous Topic: Why does this code hang?
Next Topic: Coloring tab
Goto Forum:
  


Current Time: Fri Mar 29 05:43:31 CET 2024

Total time taken to generate the page: 0.01350 seconds