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
 ScrollBars with Layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dany

59 Posts

Posted - Oct 24 2024 :  14:49:09  Show Profile  Reply
Hi;

I set TImageEnView.Scrollbars to ssBoth. When I add a layer that goes out of the box, the scrollbars does no come visible.

I also tried to set ScrollBarsAlwaysVisible := True; in this case they are visible but they have no slider visible.

Is it a way to make them visible? or ... is it a way to have an auto-zoom or a zooming option to make all visible?.

I tried FIT, autoshrink and etc etc, but no case.

Thank you!

xequte

38608 Posts

Posted - Oct 24 2024 :  18:25:44  Show Profile  Reply
HI Dany

Please add loDynamicCanvas to LayerOptions:

http://www.imageen.com/help/TImageEnView.LayerOptions.html

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

Dany

59 Posts

Posted - Oct 25 2024 :  04:41:56  Show Profile  Reply
I already tried loDynamicCanvas it before asking, nut when I use that option the component has a strange behavior. BTW, what happen with the Scrollbars?

Here you can see an example: this is layer 0:



Then I add a layer with other image:



But no scrollbars visible, and also FIT does not help me to show the whole image.

Go to Top of Page

xequte

38608 Posts

Posted - Oct 25 2024 :  05:17:08  Show Profile  Reply
Hi

Yes, fit only applies to Layer 0. You should not use the Center with loDynamicCanvas.

Let me check what options are available when I'm back in the office in early November.

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

Dany

59 Posts

Posted - Oct 25 2024 :  06:00:18  Show Profile  Reply
Let me say that now I see it fine with Center + loDynamicCanvas. Only thing that is missed (but I don't know why), are the ScrollBars.
Go to Top of Page

xequte

38608 Posts

Posted - Nov 05 2024 :  16:51:45  Show Profile  Reply
Hi Dany

I'm not able to reproduce that.



Please add this line to the create event for the demo: \Demos\LayerEditing\Layers_AllTypes\Layers.dpr

ImageEnView1.LayerOptions := ImageEnView1.LayerOptions + [loDynamicCanvas];

Load a background image, and then add a shape and drag it out of view. Does the scrollbar appear?

Does View > Zoom to Fit correctly display all content?



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