Software FX Posted November 14, 2001 Report Share Posted November 14, 2001 This is a mistake in the docs. The TopFont property is not obsolete. -- FP Software FX, Inc. Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 14, 2001 Author Report Share Posted November 14, 2001 Hi, (This is related to the API documentation of the ChartFX Client Server 5 (5.0.3.0). I am using the dll version (Cfx4032.dll) from the application written in C++ (VC6) using the #import.) The documentation for the general property TopFont says that it is obsolete property (see Remarks tab), and that Fonts property should be used instead. I am setting charset of the fonts like this: try { // Smart pointer to font object. // CComQIPtr<IFont,&IID_IFont> pFont; HRESULT hr; // ??? Obsolete? // pFont = m_spChartFX->GetTopFont(); ATLASSERT(pFont != 0); hr = pFont->put_Charset(Charset); ATLASSERT(SUCCEEDED(hr)); // ... to compare with // pFont = m_spChartFX->GetAxis() ->GetItem(ChartfxLib::AXIS_Y)->GetTitleFont(); ATLASSERT(pFont != 0); hr = pFont->put_Charset(Charset); ATLASSERT(SUCCEEDED(hr)); ... } The documentation says something similar for LeftFont, but the Fonts property documentation gives the alternative for the LeftFont. This is not the case for the TopFont (see above and below). CHART_LEFTFT 0 Please refer to TitleFont CHART_RIGHTFT 1 Please refer to TitleFont CHART_TOPFT 2 Is used to change the font type for the Top Title. In other words, I did not find the replacement of GetTopFont() that also returns IFontDisp * (i.e. pointer to IFontDisp), in Cfx4032.tli. Did I overlooked something or is it a bug in the documentation? Thanks, Petr -- prikrylp at skil dot cz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.