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
 Refresh Layer when height changed in code
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jez

20 Posts

Posted - Oct 23 2023 :  05:19:12  Show Profile  Reply
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

xequte

38608 Posts

Posted - Oct 25 2023 :  02:18:00  Show Profile  Reply
Hi Jez

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

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

jez

20 Posts

Posted - Oct 25 2023 :  02:39:10  Show Profile  Reply
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

Go to Top of Page

xequte

38608 Posts

Posted - Oct 25 2023 :  03:52:03  Show Profile  Reply
Sorry, just clicked that you are using IEvolution.

Please use:

Viewer.UpdateImage()

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

jez

20 Posts

Posted - Oct 26 2023 :  02:22:57  Show Profile  Reply
Thanks, that did it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: