text format and text style

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 09, 2007 1:01 am
Location: Manila,Philippines

text format and text style

Post by jkbagain » Fri May 11, 2007 4:37 am

hello everyone,,,I just want to ask if you know how to change the size and style of txt because I am currently working on wxStaticText......I want to make my text on frame a little bit bigger and change the font style of the text....

I hope,,you could help me with this one....
What important in a problem is not the solution but the lessons you learned in finding the solution.

Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Post by lester » Fri May 11, 2007 4:48 am

wxFont tFont = *wxNORMAL_FONT;
tFont.SetWeight( wxBOLD );
tFont.SetPointSize( 20 );

ctrl->SetFont( tFont );

Please, first read wxWidgets docs - it`s not hard...

Post Reply