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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem with left/right ruler and its value labels

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
MrDeveloper Posted - Sep 24 2021 : 10:35:00
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!
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 25 2021 : 00:02:40
Hi

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

Nigel
Xequte Software
www.imageen.com