Legend.Symbol.Width vs. Legend.ColorWidth, and pixels / what

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JazzMan
Newbie
Newbie
Posts: 37
Joined: Fri Jun 18, 2004 4:00 am

Legend.Symbol.Width vs. Legend.ColorWidth, and pixels / what

Post by JazzMan » Tue Aug 05, 2008 2:58 am

Could you please explain the difference, and purpose, of the two properties Legend.Symbol.Width and Legend.ColorWidth?

Also, when Legend.Symbol.WidthUnits is set to lcsPixels, what is that a measurement of? Is that screen pixels, as in 1 / 96 of an inch, is it pixels like points, where it's 1/72 ", is it twips (1/1440 "), or even something else?

Similarly, when Chart.MarginUnits is set to muPixels, how granular is a pixel there?


Thank you!

Regards,
richard diamond

Marc
Site Admin
Site Admin
Posts: 1261
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Aug 05, 2008 3:56 pm

Hello Richard,

ColorWidth modifies Legend.Symbol.Width.

lcsPixels defines screen pixels. The visual effect, granularity, will depend on your screen resolution (eg. on a 1280 pixel width screen the change of one pixel is of lower percentual effect than on an 800 pixel wide screen).

Regards,
Marc
Steema Support

JazzMan
Newbie
Newbie
Posts: 14
Joined: Fri Nov 15, 2002 12:00 am

Post by JazzMan » Tue Aug 05, 2008 5:07 pm

Marc,

Okay, thank you..:)

That then leads to my original reason for asking. Does this suggest a system's screen resolution (96 or 120 dpi) will affect, say, the margin effect?

Given the following:

Code: Select all

procedure SomeProcedure;
var
  Meta  : TMetaFile;
begin 
  // let's say when it comes in here, the chart's already been created, then...
  Chart1.MarginUnits := muPixels;
  Chart1.LeftMargin := 10;

  Meta:=Chart1.TeeCreateMetafile(True, Rect( 0, 0, Chart1.Width, Chart1.Height ) );
    try
      Meta.SaveToFile( 'ffchart.emf' );
    finally
      Meta.Free;
    end;
end;
Will the chart produced by sending that file to printer differ if printed from a 96dpi screen resolution system than one printed from a 120dpi system?

Regards,
richard diamond

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 26, 2008 8:01 am

Hello Richard,
Will the chart produced by sending that file to printer differ if printed from a 96dpi screen resolution system than one printed from a 120dpi system?
Yes, it should differ.

Post Reply