Jump to content
Software FX Community

SerLegBoxObj and vc++


User (Legacy)
 Share

Recommended Posts

Hello,

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;

j=0;

; allocation of points in ChartFX object

m_pChartFX->OpenDataEx(COD_VALUES,n1,n);

m_pChartFX->OpenDataEx(COD_XVALUES,n1,n);

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

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

{

m_pChartFX->ValueEx[k][i]=tabx[k*2+1][i];

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

}

; put the Legend

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

(m_pChartFX->SerLegBoxObj)->BkColor=RGB(255,0,0);

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

(m_pChartFX->SerLegBoxObj)->Height=50;

m_pChartFX->CloseData(COD_VALUES);

m_pChartFX->CloseData(COD_XVALUES);

}

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.

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

 Share

×
×
  • Create New...