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
 How to remove space between Rulers and ImageEn
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Jan 04 2019 :  06:18:40  Show Profile  Reply
Hello,

I am using following code to add Rulers to ImageEn:

//Setup Rulers
ieViewMain.RulerParams.Units := ieruInches;
ieViewMain.ShowRulers := [ rdHorizontal, rdVertical ];
ieViewMain.RulerParams.DisplayNegativeValues := ienvDisabled;
ieViewMain.RulerParams.ConstrainGrips := True;


This is giving following in the software:




How to remove the white space between the rulers and imageen contents?

TIA


Yogi Yang

w2m

USA
1990 Posts

Posted - Jan 04 2019 :  09:58:17  Show Profile  Reply
ImageEnView1.RulerParams.ShowBorder := False;
Specify whether a border is displayed between the ruler and the image.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

yogiyang

India
727 Posts

Posted - Jan 05 2019 :  22:49:22  Show Profile  Reply
Bill,

Thanks for your help. I have managed to solve this problem!


Yogi Yang
Go to Top of Page

yogiyang

India
727 Posts

Posted - Jan 07 2019 :  02:24:56  Show Profile  Reply
Bill,

Sorry actually the problem is not solved.

After trying you suggestion what I did was load an image to check it but unfortunately I loaded an image which had white background so all things were looking great and as expected but today when I load a dark background image the white space between ImageEn and Ruler is evident.

So setting the ruler parameter:
ImageEnView1.RulerParams.ShowBorder := False;
Does not remove the white space but instead does not draw a thin 1 pixel border between ImagenEn and rulers.

This is not what I want.

I want to get rid of the white space between the rulers and ImageEn as this is looking very unprofessional.

TIA


Yogi Yang
Go to Top of Page

xequte

38611 Posts

Posted - Jan 07 2019 :  18:14:45  Show Profile  Reply
Hi Yogi

The white space is used to indicate the current position of the cursor. At present it cannot be hidden, as the ruler is not very functional without it, but I will look at making it an option in a coming version (maybe drawing inidictor directly onto ruler).

In the meantime, you can reduce its size by setting ImageEnView1.RulerParams.HorzHeight/VertWidth.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38611 Posts

Posted - Jan 28 2019 :  00:00:33  Show Profile  Reply
To hide the ruler in 8.3.0, you can use:

ImageEnView1.RulerParams.GripHeight := 0;

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Jan 28 2019 :  23:17:29  Show Profile  Reply
Thanks Nigel for add this to IE update.

BTW when are you going to release this update?

TIA


Yogi Yang
Go to Top of Page

xequte

38611 Posts

Posted - Jan 29 2019 :  04:49:37  Show Profile  Reply
In the next week or two. We are just finalizing some features in IEVision.

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