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
 Refresh Layer when height changed in code

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
jez Posted - Oct 23 2023 : 05:19:12
Hi

I am using the IELayer class and I am adjusting the height of a layer in code ...

Viewer.Image.GetLayer(1).Height = CInt(newHeight) * Calibration

However, the view does not update until I mouse click on the Viewer.

I have tried Refresh, Invalidate etc but nothing makes the layer jump to the correct size until I mouse click.

Ideas ?

Jez
4   L A T E S T    R E P L I E S    (Newest First)
jez Posted - Oct 26 2023 : 02:22:57
Thanks, that did it.
xequte Posted - Oct 25 2023 : 03:52:03
Sorry, just clicked that you are using IEvolution.

Please use:

Viewer.UpdateImage()

Nigel
Xequte Software
www.imageen.com
jez Posted - Oct 25 2023 : 02:39:10
No, calling Update does not make the layer adjust to the new size set. I still have to mouse click somewhere.

Viewer.Image.GetLayer(1).Height = CInt(newHeight) * Calibration
Viewer.Update()

This makes no difference

xequte Posted - Oct 25 2023 : 02:18:00
Hi Jez

You must call ImageEnView1.Update() after modifying layer properties.

Nigel
Xequte Software
www.imageen.com