How to select image object instead of group

Scott Rossi scott at tactilemedia.com
Fri Dec 10 20:49:04 EST 2010


The only reason I can think of why this would happen is because the image contains transparent regions.  Or from clicking really fast (on any control, not just images), which you would have to address by adding a mouseDoubleDown/mouseDoubleUp handler.

For years I've built stacks with controls created from groups of images, and I haven't noticed any intermittent missing of clicks, or different behavior because the images are grouped.  But as always, getting a simple stack that demonstrates this problem to RunRev support would be helpful for them to address any issue.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design

On Dec 10, 2010, at 5:29 PM, jonathandlynch at gmail.com wrote:

> Why do mouse clicks sometimes not get ditectly caught by a grouped image?
> 
> I often have to catch the mouseup or mousedown in a group script
> Sent from my Verizon Wireless BlackBerry
> 
> -----Original Message-----
> From: Scott Rossi <scott at tactilemedia.com>
> Sender: use-livecode-bounces at lists.runrev.com
> Date: Fri, 10 Dec 2010 17:19:03 
> To: How to use LiveCode<use-livecode at lists.runrev.com>
> Reply-To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: How to select image object instead of group
> 
> What's being triggered in the group: a mouseDown or mouseUp handler, or something similar? It must be something common to both the image and the fields.
> 
> If I understand what you're trying to do, you should be able to 1) place the handler in the script of the image, or 2) in the group's mouseDown/Up handler, use something like:
> on mouseUp
>   if word 1 of name of the the target = "image" then
>      do image-related stuff here...
>   else
>      do default field-related stuff here...
>   end if
> end mouseUp
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> On Dec 10, 2010, at 4:53 PM, Scott Pepperdine <spepper at byu.net> wrote:
> 
>> I have scripts associated with the other fields in the group, so it would be best if the script can be associated with the image.
>> 
>> Thanks for the reply.
>> 
>> On 12/10/2010 5:51 PM, jonathandlynch at gmail.com wrote:
>>> I have had this happen, and I just put the script in the group. Does it need to be in the image?
>>> 
>>> ------Original Message------
>>> From: Scott Pepperdine
>>> Sender: use-livecode-bounces at lists.runrev.com
>>> To: How to use Revolution
>>> ReplyTo: How to use LiveCode
>>> Subject: How to select image object instead of group
>>> Sent: Dec 10, 2010 6:36 PM
>>> 
>>> I have an image object that is part of a background group, so when I
>>> create a new card, there it is along with a number of other fields.
>>> But when I click the image object, its script is not activated, but
>>> rather the script of the group it belongs to.
>>> What do I need to study to make the image selectable?
>>> 
>>> Thanks very much,
>>> --Scott
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> Sent from my Verizon Wireless BlackBerry
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 




More information about the Use-livecode mailing list