Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 ChartText
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jack1974

10 Posts

Posted - 04 Nov 2005 :  10:56:12  Show Profile  Reply with Quote
I am trying to work with the ChartText to display info to the user. I was wondering if there was a way to the back ground visible at a particular size when there is no text in the area.

thanks
jack1974

quinncurtis

1164 Posts

Posted - 04 Nov 2005 :  11:43:10  Show Profile  Reply with Quote
The background box of the ChartText object is sized to the text. There is no way to set the background rectangle independent of the associated text.

You could probably use the RTTextFrame object to acheive the same result. It places an opaque frame behind a ChartText object that can be sized independent of the text object.


ChartAttribute attrib3 = new ChartAttribute (Color.Black, 1,DashStyle.Solid, Color.LightBlue);
ChartText charttext = new ChartText(pTransform1, titlefont,"RT Chart Text", 0.5, 0.1, ChartObj.NORM_GRAPH_POS);
charttext.ChartObjAttributes = attrib3;
RTTextFrame rttext = new RTTextFrame(charttext);
rttext.MinTextBoxWidth = 400;
chartVu.AddChartObject(rttext);
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07