User (Legacy) Posted June 19, 2003 Report Share Posted June 19, 2003 How to fill whole chart window with legend box without displaying chart itself? David Modell. Link to comment Share on other sites More sharing options...
Software FX Posted June 19, 2003 Report Share Posted June 19, 2003 The LegendBox object (LegengBoxObj) has Width and Height properties that can be adjusted from your program. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 19, 2003 Author Report Share Posted June 19, 2003 I am trying to setup LegendBoxObj in PrePaint handler: void __stdcall CGraph::OnPrePaintChart(short w, short h, long lPaint, short* nRes) { m_pChartFX->LegendBoxObj->Top = 0; m_pChartFX->LegendBoxObj->Left = 0; m_pChartFX->LegendBoxObj->Width = w; m_pChartFX->LegendBoxObj->Height = h; *nRes = 0; } The rest of legend is set in Init, like m_pChartFX->LegendBox = TRUE; m_pChartFX->LegendBoxObj->Visible = TRUE; m_pChartFX->LegendBoxObj->Docked = TGFP_FIXED; It does not work at all. "SoftwareFX Support" <support@softwarefx.com> wrote in message news:JlrmjVqNDHA.2848@webserver1.softwarefx.com... > The LegendBox object (LegengBoxObj) has Width and Height properties that can > be adjusted from your program. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted June 20, 2003 Report Share Posted June 20, 2003 You can not do anything that redraws the chart within a Paint event, this would cause an infinite loop. Changing the legend size generates a Re-paint of the chart. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.