Script of a graphic

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tal
Posts: 84
Joined: Thu Jul 02, 2009 3:27 pm

Script of a graphic

Post by tal » Wed May 26, 2010 10:10 am

Hi,

I have a graphic with, for example, this points :

440,520
621,520
621,351
1000,351
1000,520

This graphic has a script, but the script is called when clicked everywhere in the rect of the grc, and I would like to restrain the call of the script only if I click on the real graphic and not on its rect, do you think it is possible?

Thank you

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Script of a graphic

Post by bn » Wed May 26, 2010 10:42 am

Hi tal,
actually for a polygon graphic (the one you do with the points) if the opaque is set to true only the line and the filled area should get a mouseUp, if the opaque is set to false only the line should get the mouseUP. Not the rect of the graphic.
Could you explain a little and maybe post some of the code?
regards
Bernd

tal
Posts: 84
Joined: Thu Jul 02, 2009 3:27 pm

Re: Script of a graphic

Post by tal » Wed May 26, 2010 11:18 am

Finally I found a solution using a restriction with points of my graphc and sending mousedown to the low layers of the other graphics... thank you

Tal

Post Reply