User (Legacy) Posted January 29, 2004 Report Share Posted January 29, 2004 chartFx API Help is refer to ChartFX1.Axis(AXIS_Y).Font.Name = "Arial" I want to modify Font from default font to "MS Sans Serif". How can I? Link to comment Share on other sites More sharing options...
Software FX Posted January 29, 2004 Report Share Posted January 29, 2004 ChartFX1.Axis(AXIS_Y).Font.Name = "MS Sans Serif" Each element has it's own Font property. The code above changes the font for the Y-Axis. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 29, 2004 Author Report Share Posted January 29, 2004 I reproduced Cfx98 sample project for font test. I added following line to CCfxLabels::OnInitDialog() module, and I did build it. m_pChartFX->Axis->Item[AXIS_Y]->Font->Name = "MS Sans Serif"; And just then, I found error message as follow. ...CfxLabels.cpp(222) : error C2039: 'Font' : is not a member of 'ICfxAxis' chart fx client server\samples\mfc\debug\cfx4032.tlh(2664) : see declaration of 'ICfxAxis' ... I guessed that Library is not support 'Font' Object. I am concerned the cause. Link to comment Share on other sites More sharing options...
Software FX Posted January 30, 2004 Report Share Posted January 30, 2004 Well you didn't mention you were using C++ and the code that you pasted was in VB so I assumed you were using VB. In C++ you do: IFontDispPtr pFontDisp; m_pChartFX->Axis->Item[AXIS_Y]->get_Font(&pFontDisp); IFontPtr pFont = pFontDisp; pFont->put_Name(L"MS Sans Serif"); -- FP Software FX WindowsApplication5.zip Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.