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 » Community » Newbie corner » How to set the font controls?
How to set the font controls? [message #46013] Thu, 18 February 2016 15:20 Go to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello all!


Font fnt;
fnt.FaceName( "Gaura Times" );
deSanskrit.SetFont( fnt );

deSanskrit - DocEdit.
White letters on a white background. Nothing can be seen. How to set font color?

With best regards Navadvipa Chandra das.
Re: How to set the font controls? [message #46020 is a reply to message #46013] Fri, 19 February 2016 04:41 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Navadvipa Chandra das wrote on Thu, 18 February 2016 09:20
Hello all!


Font fnt;
fnt.FaceName( "Gaura Times" );
deSanskrit.SetFont( fnt );

deSanskrit - DocEdit.
White letters on a white background. Nothing can be seen. How to set font color?

With best regards Navadvipa Chandra das.

DocEdit is inherited from TextCtrl.
TextCtrl has method SetColor.

Hope this helps.


Regards,
Novo
Re: How to set the font controls? [message #46024 is a reply to message #46020] Fri, 19 February 2016 21:43 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello Sergey and all!

Thank you for answer!
Not helped. This code dont work in constructor TopWindow. Font Gaura Times installed in system.

Font fnt;
fnt.FaceName( "Gaura Times" );

deSanskrit.SetFont( fnt );
deSanskrit.SetColor( TextCtrl::INK_NORMAL, Red );



With best regards Navadvipa Chandra das.
Re: How to set the font controls? [message #46249 is a reply to message #46024] Sat, 02 April 2016 11:30 Go to previous message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello all!


Just I forgot to set the font size. Now everything works fine! Thank you all!

Font fnt;
fnt.FaceName( "Gaura Times" );
fnt.Height( 18 );
deSanskrit.SetFont( fnt );

Thanks!

With best regards Navadvipa Chandra das.
Previous Topic: Switch control on the main window
Next Topic: VC++ on Linux?
Goto Forum:
  


Current Time: Thu Apr 18 21:10:53 CEST 2024

Total time taken to generate the page: 0.02551 seconds