News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

bold

Started by killerbot, December 28, 2005, 09:57:34 PM

Previous topic - Next topic

killerbot

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

Der Meister

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.

killerbot

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

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

killerbot

Thanks Thomas,

You are a living knowledge base.  :P

Lieven