ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem with left/right ruler and its value labels
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MrDeveloper

Switzerland
17 Posts

Posted - Sep 24 2021 :  10:35:00  Show Profile  Reply
Hello

I have the following problem with the right and left ruler. If the layer 0 (background) does not fit completely into the view area and if I move the vertical scrollbar, the ruler does not move its value lables and they just remain static.

On the other hand, when I move the horizontal scrollbar, the values of the upper and lower ruler are always correct depending on the position. Have I possibly overlooked a setting here?

My goal is that the zero point is at the bottom left.

Here is my code snippet:

  ImageEnView.MouseInteractGeneral := [miMeasureLength];
  ImageEnView.LockUpdate();
  try
    ImageEnView.RulerParams.HorzPos := gdDown;
    ImageEnView.RulerParams.VertPos := gdLeft;
    ImageEnView.RulerParams.VertInverted := True;
    ImageEnView.RulerParams.DisplayNegativeValues := ienvDisabled;
    ImageEnView.RulerParams.Units := ieuCentimeters;

    ImageEnView.Layers[0].Width := 1460;
    ImageEnView.Layers[0].Height := 924;
    ImageEnView.Layers[0].FillColor := clGray;
    ImageEnView.Layers[0].BorderColor := clRed;
    ImageEnView.Layers[0].BorderWidth := 3;
    ImageEnView.SetScale(1, 1, ieuMillimeters);
    IEGlobalSettings().GridPen.Color := clNone;
    IEGlobalSettings().GridPen.Style := psDot;
    IEGlobalSettings().GridPen.Mode := pmCopy;
    IEGlobalSettings().DefaultMeasureUnit := ieuMillimeters;

    ImageEnView.ShowRulers := [rdHorizontal, rdVertical];
    ImageEnView.RulerParams.ConstrainGrips := true;
    ImageEnView.Update();
  finally
    ImageEnView.UnlockUpdate();
  end;


Thanks for your quick help in advance!

xequte

38182 Posts

Posted - Sep 25 2021 :  00:02:40  Show Profile  Reply
Hi

I'm afraid there is an issue with VertInverted/HorzInverted. You can email me for an update.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: