custom buttons
Thomas McGrath III
3mcgrath at adelphia.net
Wed Feb 25 13:15:56 EST 2004
I have made my down state and up state 'base' button as the icons of
those states in a transparent button and it looks great.
I want to link a small icon on top of that button and when the user
clicks with the mouse to send mousedown and up to that button 'through'
the icon.
Rev is not doing this. I tried pass mousedown, send "mousedown" to
button "Button 2" and click at button "Button 2" and none of them seem
to work. The last caused REV to freeze up and not receive mouse clicks
at all.
Should I group them??? should I 'do' something to the icon image???
Thanks
Tom
On Feb 25, 2004, at 12:35 PM, Thomas McGrath III wrote:
> So, my greatest available choice here looks like linking images
> together in a group and making that 'act' like a button.
>
> OK. I will look into that.
>
> thanks
>
> tom
>
> On Feb 25, 2004, at 12:10 PM, Scott Rossi wrote:
>
>> Recently, "J. Landman Gay" wrote:
>>
>>> I need to combine two images in one button
>>>> and then have it act like one button as a 'real' button.
>>>>
>>>> I have a special button look and feel and want to include that.
>>>> Then I
>>>> want to put a special icon into that special button look and feel.
>>>> Then
>>>> I want it to act like a default button or like a regular button.
>>>
>>> The usual way to do this is to create the entire button as an image
>>> in a
>>> graphics program. Include the actual button shape itself, as well as
>>> its
>>> "icon," as a single image. Make two of these, one for the "up" state
>>> and
>>> another for the "down" state. Then create a transparent button and
>>> set
>>> its icon to the "up" state image, and its hilitedicon to the "down"
>>> state image.
>>
>> To add to the above:
>>
>> If you want a scalable image button, you would need to combine the
>> separate
>> sections of the button image into a group and use the group as a
>> button. If
>> you want a button that only scales horizontally, you need a minimum
>> of 3
>> items: left, center and right (scale the center element). If you
>> want a
>> button that scales in both directions, it gets more complex as you
>> need a
>> 3x3 grid of elements and you scale only the center cell. It's work,
>> but it
>> can be done.
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, Multimedia & Design
>> -----
>> E: scott at tactilemedia.com
>> W: http://www.tactilemedia.com
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
> Thomas J. McGrath III
> SCS
> 1000 Killarney Dr.
> Pittsburgh, PA 15234
> 412-885-8541
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
More information about the use-livecode
mailing list