Jump to content
Software FX Community

fill whole chart window with legend box

User (Legacy)

Recommended Posts

I am trying to setup LegendBoxObj in PrePaint handler:

void __stdcall CGraph::OnPrePaintChart(short w, short h, long lPaint, short*



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


> The LegendBox object (LegengBoxObj) has Width and Height properties that


> be adjusted from your program.


> --

> FP

> Software FX, Inc.



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...