Search found 21 matches

by erzsebet
Fri Oct 15, 2010 6:56 pm
Forum: VCL
Topic: Scrolling Extra Legend?
Replies: 2
Views: 2272

Re: Scrolling Extra Legend?

Narcís, hello -

Thank you for adding this to the Steema feature enhancement list.

- erzsebet
by erzsebet
Wed Oct 13, 2010 7:40 pm
Forum: VCL
Topic: Scrolling Extra Legend?
Replies: 2
Views: 2272

Scrolling Extra Legend?

Hello, I have a project that displays two legends, the second of which is a TExtraLegendTool. I see in the Legend Scrollbar and TeeScrollbar ThumbGradient examples that it is possible to create a TLegendScrollBar tool, but this appears to apply to the default legend. Is there any way to create an ex...
by erzsebet
Thu Oct 07, 2010 8:55 pm
Forum: VCL
Topic: Multiple Legends with Chart Draw Event Overrides
Replies: 6
Views: 4938

Re: Multiple Legends with Chart Draw Event Overrides

Narcís, hi -

We've decided to align our legends to the right of the chart, and are no longer pursuing drawing beneath the chart. If we do need to resize the chart's bottom margin, I will be sure to try using the Chart.OnAfterDraw event.

Thanks!

-erzsebet
by erzsebet
Thu Oct 07, 2010 8:50 pm
Forum: VCL
Topic: Extra Legend Tool: Large Symbols Overwrite Legend Item Text
Replies: 3
Views: 3026

Re: Extra Legend Tool: Large Symbols Overwrite Legend Item Text

Narcís, hello - I was already leveraging the Chart.Legend.Symbol.OnDraw event to create the differently sized squares. I have also overloaded the Chart.OnGetLegendText event to customize the strings displayed next to each of the sized symbols. I was not able to get these events to produce the look I...
by erzsebet
Mon Oct 04, 2010 11:29 pm
Forum: VCL
Topic: Extra Legend Tool: Large Symbols Overwrite Legend Item Text
Replies: 3
Views: 3026

Re: Extra Legend Tool: Large Symbols Overwrite Legend Item Text

It's just me again... Is there any way that I could configure a relatively sized legend that is not a TExtraLegendTool and is aligned to the bottom of the chart? The code I have now for a default, bottom aligned legend with various sized rectangles overwrites both the text and the boundaries of the ...
by erzsebet
Mon Oct 04, 2010 9:07 pm
Forum: VCL
Topic: Extra Legend Tool: Large Symbols Overwrite Legend Item Text
Replies: 3
Views: 3026

Extra Legend Tool: Large Symbols Overwrite Legend Item Text

Hello! My application needs to display a second legend using a TExtraLegendTool. For each legend item, the symbol will be a different sized square which will correspond to the point size of that data item as drawn on the graph. My problem is that when I get the symbols the way I want them, the legen...
by erzsebet
Thu Sep 30, 2010 4:42 pm
Forum: VCL
Topic: Multiple Legends with Chart Draw Event Overrides
Replies: 6
Views: 4938

Re: Multiple Legends with Chart Draw Event Overrides

Narcís, hello - Thank you for the code snips!! I am now able to get the legends to be the same width and also to change the chart margins so that the legend is not truncated if it aligned to the bottom. In my sample code, I am calculating the Chart's MarginBottom in the FormShow event. Is there a pa...
by erzsebet
Wed Sep 29, 2010 10:52 pm
Forum: VCL
Topic: Multiple Legends with Chart Draw Event Overrides
Replies: 6
Views: 4938

Re: Multiple Legends with Chart Draw Event Overrides

Narcís, hello! Thank you for the suggestion to use TExtraLegendTool! I was able to make a small project that does exactly what I need and am confident I'll be able to translate what I've learned about TExtraLegendTool into my main program. I do still have a couple of questions about legend alignment...
by erzsebet
Tue Sep 28, 2010 11:03 pm
Forum: VCL
Topic: Multiple Legends with Chart Draw Event Overrides
Replies: 6
Views: 4938

Multiple Legends with Chart Draw Event Overrides

Hello! I have a chart that has a customized legend. The events that I override to draw this customized legend are: TCustomAxisPanel.OnBeforeDrawChart TCustomChart.OnGetLegendText TCustomChart.AfterDraw TXustomChartLegend.Symbol.OnDraw Now I need to add a second legend to the chart that also needs to...
by erzsebet
Fri Aug 06, 2010 2:53 pm
Forum: VCL
Topic: Left Align Legend Text?
Replies: 8
Views: 5861

Re: Left Align Legend Text?

Thank you, Yeray!! That was exactly what I needed to do to fix my legend text alignment problem! You and your entire team are awesome!

- erzsebet
by erzsebet
Thu Aug 05, 2010 10:00 pm
Forum: VCL
Topic: Left Align Legend Text?
Replies: 8
Views: 5861

Re: Left Align Legend Text?

And now for the actual code! :wink: -erzsebet { Note: My chart has one series, but users have the option to set the color for a range of values. } { The legend is customized to display the range of each selection and not the series name or series value. } unit LegendTextAlignment_48352; interface us...
by erzsebet
Thu Aug 05, 2010 9:54 pm
Forum: VCL
Topic: Left Align Legend Text?
Replies: 8
Views: 5861

Re: Left Align Legend Text?

Yeray and Narcís, hello! I hope you are both having a good day! Thanks so much for the time you've already put in to help me on this issue. Here is some more information. I am using TeeChart Pro 8.06 with Delphi 2010. My issue with legend text alignment seems to be caused by overriding events to cus...
by erzsebet
Fri Jul 30, 2010 3:48 pm
Forum: VCL
Topic: Left Align Legend Text?
Replies: 8
Views: 5861

Re: Left Align Legend Text?

Narcís, hello - Thanks for answering my question about the attachment! I don't know how I missed the "Upload Attachment" tab! I will blame the fact that it is Friday! In any event, this image shows the issue I am having with the legend: LegendSpacing_073010.png I would like the "BORCHERS-BORCHERS, S...
by erzsebet
Fri Jul 30, 2010 3:30 pm
Forum: VCL
Topic: Left Align Legend Text?
Replies: 8
Views: 5861

Re: Left Align Legend Text?

Hello,

How could I post a screenshot of this issue?

Thank you,

erzsebet
by erzsebet
Thu Jul 29, 2010 5:45 pm
Forum: VCL
Topic: Left Align Legend Text?
Replies: 8
Views: 5861

Left Align Legend Text?

Hello, Is there a way that I can get the legend text to appear right next to the legend symbol? It appears that the legend items are alloted a width based upon the length of the longest text of all the legend items. This makes the legend items with shorter text display with a lot of space between th...