Region ZOrder

Discussions about document viewing.
Post Reply
barcelo
Posts: 4
Joined: Fri Mar 15, 2013 11:48 am

Region ZOrder

Post by barcelo » Mon Dec 09, 2013 6:42 pm

Hello,

I'm developing an application using GDPicture v. 9.4.
In this app I display images on a GDViewer.
over these images, I draw several regions, and many times these regions are overlapped.
If the regions are ovelapped, I can't select some of them,
is it possible to change the zorder of these regions, to make accessible all of these regions even if they are overlapped.

Thanks in advance

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Region ZOrder

Post by SamiKharma » Tue Dec 10, 2013 10:19 am

Hi,

Unfortunately that is not an available option. That being said, you can select any region via code by using:
GdViewer.SetRegionSelected()

Hope this helps.

Best,
Sami

barcelo
Posts: 4
Joined: Fri Mar 15, 2013 11:48 am

Re: Region ZOrder

Post by barcelo » Tue Dec 10, 2013 11:24 am

Hi Sami,

thanks for you answer,
If I select a region by code, and this region is overlapped by another, the region is selected, but I can't move it without moving the region that is overlapping.

Thanks,

Nicolás

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Region ZOrder

Post by SamiKharma » Tue Dec 10, 2013 1:04 pm

Hi,

Yes, that is correct since the regions do not expose a Z-Order, so basically the first added region in that overlapping position would be the first selected region via mouse.
You can also move the regions via code.

If you want to select a region automatically via a z-order that you previously specify, you have to make a request for this feature here:
viewforum.php?f=28

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests