Inconsistent dimensions

edited 1:51PM in FastReport 4.0
Hello fastreport developers,

could you improve dimensions please?

Example for PaperWidth:
- in designer is 42
- in script editor is 420

Example for Left in Memo:
- in designer is 2,70
- in FR3 file is 102,04724409

etc.

It is not normal !!!

Comments

  • gpigpi
    edited 1:51PM
    Objects??? coordinates and sizes are set in pixels, page dimensions - in mm. Since the ?«Left,?» ?«Top,?» ?«Width,?»
    and ?«Height?» properties of all objects have the ?«Extended?» type, you can point out
    non-integer values. The following constants are defined for converting pixels into
    centimeters and inches:
    fr01cm = 3.77953;
    fr1cm = 37.7953;
    fr01in = 9.6;
    fr1in = 96;
    For example, a band???s height equal to 5 mm can be set as follows:
    Band.Height := fr01cm * 5;
    Band.Height := fr1cm * 0.5;
    wrote:
    - in designer is 42
    Its depend on your designer settings (in, mm, px)
  • edited 1:51PM
    Have a look at frxClass.pas ...
    const
      fr01cm: Extended = 3.77953;
      fr1cm: Extended = 37.7953;
      fr01in: Extended = 9.6;
      fr1in: Integer = 96;
    
    ... and you find over there factors like above that help to convert pixels into cm/inch an vice versa.

    Mick
  • edited 1:51PM
    Hi Gpi

    You were faster while answering :-)
    And I was writing too long [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Mick[/img]

Leave a Comment