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
 How to tell if objects are fully or partially out of view in the richedit editor

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
john_siggy@yahoo.com Posted - May 09 2025 : 12:33:38
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

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 10 2025 : 01:07:45
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