Jump to content
Software FX Community

SerLegBoxObj and vc++

User (Legacy)

Recommended Posts


I use ChartFx 98 with Visual C++ 6.

I'd like to put on my graph some legend : chart's Legend and some results.

But when I use SerLegBoxObj, nothing displays and I don't know where to

initialize the text.

So if someone could help me, thanks

Under example of my code

CWnd m_ChartFX;

IChartFXPtr m_pChartFX;

void CModChartFx::Tracebis(float *tabx[8], int n, int n1)


int i,j,k;


; allocation of points in ChartFX object



(m_pChartFX->SerLegBoxObj)->Left = 25;

for(k=0;k<4;k++) for(i=0;i<n;i++)



m_pChartFX->XValueEx[k][i]= tabx[k*2][i];


; put the Legend

(m_pChartFX->SerLegBoxObj)->Docked = TGFP_FIXED;


(m_pChartFX->SerLegBoxObj)->Width = 70;





F. Ceranski

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...