custom buttons

Thomas McGrath III 3mcgrath at adelphia.net
Wed Feb 25 21:07:27 EST 2004


Chipp,

1. I must not have said that the button shape, size, look, and drop 
shadow 'must' be that image I used. This is in order to emulate 
proprietary software written in C used on a hardware device. It is 
written in C  to give a very small footprint in the device.

2. The icon above that button is only 1 of over 5,000 icons that can be 
used in the device. So combining the button shape with icons in another 
app is not feasible. Also, the users can add their own icons to that 
button, another reason for me not to do it in PS etc.

Although your button does what a normal button would do it does not 
have any of the attributes that my button has. I wish I could do this 
with a normal button but I can't. My button has the exact attributes as 
the hardware device. So I am pleased with that but I am not pleased 
with the naming convention needed because I will be allowing the user 
to build these buttons using their own icons and then I have to arrange 
them in grids on the screen. You know like 5 rows with 7 columns, etc.

Also, my 83 has a bit more code that is left over from previous 
attempts so that would be cut in half to 41 and that is for two buttons 
so each button has 21 lines and I was hoping to do the same thing in 
fewer lines AND get the same results.

The background button is one of about four or five used in their 
machines and I need to emulate the others as well.

Thanks though,

Tom


On Feb 25, 2004, at 8:45 PM, Chipp Walters wrote:

> Tom,
> Your stack has 83 lines of code.
> I created the same effect with 0 lines of code.
>
> go url "http://www.altuit.com/webs/altuit2/4Tom/4Tom.rev"
>
> -Chipp
>
> Thomas McGrath III wrote:
>
>> I would like to share this small stack with you guys.
>> It shows the two buttons grouped with the code. I think it is 
>> important being able to do this.
>> BUT, my code may be rough and I would love some real good input on 
>> this. Maybe better suggestions?
>> put this in the message box and hit enter.
>> go URL "http://users.adelphia.net/~3mcgrath/Buttons.rev"
>> Tom
>> On Feb 25, 2004, at 5:08 PM, Wilhelm Sanke wrote:
>>> On Wed Feb 25  Thomas McGrath III <3mcgrath at adelphia.net> wrote:
>>>
>>>> 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
>>>
>>>
>>>
>>>
>>> In "Magic Triangle" - to be found among the "user contributions" at 
>>> the Runrev site - I have used a routine which sends a 
>>> mouseup-message "through" a field via a "click at" to an underlying 
>>> graphic.
>>>
>>> Maybe this is something that could help with your problem?
>>>
>>> Regards,
>>>
>>> Wilhelm Sanke
>>>
>>> _______________________________________________
>>> 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
> _______________________________________________
> 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