wxLogWindow font Topic is solved

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
fantaz
I live to help wx-kind
I live to help wx-kind
Posts: 169
Joined: Mon Sep 13, 2004 10:07 am
Location: Croatia

wxLogWindow font

Post by fantaz »

hi,
I've searched through the docs, but I couldn't find the way to change
font in the wxLogWindow. I would like to show log messages in different font than default one.Is it possible?
thanx,
fantaz
Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor »

From the wxLogWindow, you can retrieve the wxFrame associated with it and probably retrieve the control displaying the log.

http://www.wxwidgets.org/manuals/2.6.3/ ... owgetframe
What is little and green, witch go up and down ??
Yoda playing with the force.
Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor »

Yes, in effect, the wxLogWindow::GetFrame return a frame whitch embed a wxTextCtrl to display the log.
As the wxLogFrame class is private (only for implementation), you can list all children of the wxLogWindow's frame to find it.
When you have a pointer to the wxTextCtrl, you just have to work with text style.

Good code.
What is little and green, witch go up and down ??
Yoda playing with the force.
fantaz
I live to help wx-kind
I live to help wx-kind
Posts: 169
Joined: Mon Sep 13, 2004 10:07 am
Location: Croatia

Post by fantaz »

Cursor wrote: As the wxLogFrame class is private (only for implementation), you can list all children of the wxLogWindow's frame to find it.
That's what I thought. Thanx...
Post Reply