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 tell if objects are fully or partially out of view in the richedit editor
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
164 Posts

Posted - May 09 2025 :  12:33:38  Show Profile  Reply
Hey Nigel,

Using an ImageENView how can I tell if text objects are all or partially out of view. The viewport is smaller (ie shrinks) when objects all or partially out of view.

thanks in advance,

John

xequte

38978 Posts

Posted - May 10 2025 :  01:07:45  Show Profile  Reply
Hi John

You should compare the rect of the layer:

http://www.imageen.com/help/TIELayer.LayerRect.html

With the rect of the control.

Of course, the layer will be in bitmap units, and the control in screen units, so convert using, for e.g.:

http://www.imageen.com/help/TImageEnView.XBmp2Scr.html
http://www.imageen.com/help/TImageEnView.YBmp2Scr.html

Or just use (already in screen units):

http://www.imageen.com/help/TIELayer.ClientAreaBox.html

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