Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
bold
(1/1)
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.
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:
*cough* *cough*
--- Code: ---<object class="wxStaticText" name="foo">
<font>
<weight>bold</weight>
</font>
<label>foobar</label>
</object>
--- End code ---
http://www.wxwidgets.org/manuals/2.6.2/wx_wxfilename.html#wxfilenamegetmodificationtime
http://www.wxwidgets.org/manuals/2.6.2/wx_wxfile.html#wxfilelength
http://www.wxwidgets.org/manuals/2.6.2/wx_wxfile.html#wxfileaccess
http://www.wxwidgets.org/manuals/2.6.2/wx_filefunctions.html#functionwxfileexists
http://www.wxwidgets.org/manuals/2.6.2/wx_filefunctions.html#wxgetfilekind
...to name a few examples.
killerbot:
Thanks Thomas,
You are a living knowledge base. :P
Lieven
Navigation
[0] Message Index
Go to full version