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
 RulerBox
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Aug 26 2011 :  05:34:12  Show Profile  Reply
Can the RulerBox be used if ImageEnView1.Center is true?
How do you adjust the ruler position of 0 to match the 0 position of ImageENView?

William Miller

fab

1310 Posts

Posted - Aug 26 2011 :  08:53:34  Show Profile  Reply
Hi,
you should align the ruler to ImageEnView.OffsetX and OffsetY.
For example, the horizontal ruler Left position should be:

HorizRuler.Left := ImageEnView1.OffsetX;

While the vertical rulter Top position should be:

VerticalRuler.Top := ImageEnView1.OffsetY;
Go to Top of Page

fab

1310 Posts

Posted - Aug 26 2011 :  23:58:36  Show Profile  Reply
As you suggested new minor release will have TRulerBox.OffsetX and TRulerBox.OffsetY so you will be able to set:

HorizRuler.OffsetX := ImageEnView1.OffsetX;
VertRuler.OffsetY := ImageEnView1.OffsetY;

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: