Author Topic: bold  (Read 6165 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
bold
« on: December 28, 2005, 09:57:34 pm »
Implementing a feature request and in some dialog I want to show the contents of a text ctrl or a static text in bold.

Any quick way of doing that :
 - some wxSTYLE I can fill in the xrc file ??? (would prefer this)
 - function call ?

Lieven

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: bold
« Reply #1 on: December 28, 2005, 10:19:07 pm »
I had a similar problem a few days ago in another project using wxWidgets and solved it by creating a wxFont instance with the flags I needed and then I assigned this font to the control via its SetFont method. I'm not sure if there is an easier way but at least it works this way.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: bold
« Reply #2 on: December 28, 2005, 11:59:00 pm »
Thanks,

I solved it like you suggested.

Other question :
what wx... class provides for a file : date/time modification/creation, and it's size ?

Lieven

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
« Last Edit: December 29, 2005, 01:02:03 am by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: bold
« Reply #4 on: December 29, 2005, 09:25:42 am »
Thanks Thomas,

You are a living knowledge base.  :P

Lieven