Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

change font for control

Is there no way for me to change the font size duiring run time (programatically)?
I've tried doing that on the graph and slider
0 Kudos
Message 1 of 3
(3,237 Views)
Ugh, having editing problems; see post below.

Message Edited by drohacek on 04-06-2005 09:50 AM

0 Kudos
Message 2 of 3
(3,238 Views)
How are you trying to change the font? The following code (also attached) changes the font of a CNiGraph named m_graph to bold Courier, size 15:


void CChangeFontAtRuntimeDlg::OnSetFontButton()
{
m_graph.Font.Name = "Courier";
m_graph.Font.Bold = true;
m_graph.Font.Size = 15;
}
0 Kudos
Message 3 of 3
(3,233 Views)