Jump to content
Software FX Community

Legend not sizing properly


User (Legacy)
 Share

Recommended Posts

I'm having difficulty with sizing the legend box appropriately. When I first 

generate my graph, the legend box (docked to right of window) is HUGE,

taking up over three quarters of the window, regardless of the size of the

text it encloses. If I re-dock the legend, it sizes perfectly, as it does if

I generate the same chart a second time.

The final manipulation of my chart object before displaying it (after all

the series have been added) is to add the legend box:

// set up the legend. (using VC6, DLL)

pChart->SerLegBoxObj->PutAutoSize(TRUE);

pChart->SerLegBoxObj->Docked = TGFP_RIGHT;

pChart->SerLegBoxObj->MultiLine = TRUE;

pChart->SerLegBoxObj->Visible = TRUE;

Any idea what could be causing this?

Andrew

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