Title SetFont ? |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
Posted: 16 October 2014 at 6:06pm |
Never mind.. Solved.
This might help someone else though Problem was blank title when setting the font via a CXTPPropertyGridItemFont: LOGFONT lf; ZeroMemory(&lf, sizeof(LOGFONT)); ((CXTPPropertyGridItemFont*)pItem)->GetFont(&lf); COLORREF color = ((CXTPPropertyGridItemFont*)pItem)->GetColor(); CXTPChartContent* pContent = GetEditor()->m_wndChartControl.GetContent(); CXTPChartTitle* pTitle = pContent->GetTitles()->GetAt(0); pTitle->GetFont()->SetLogFont(&lf); // replaced this CXTPChartColor titlecolor; titlecolor.SetFromCOLORREF(color); pTitle->SetTextColor(titlecolor); // Added this to update the title pTitle->OnChartChanged(); |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |