librelist archives

« back to archive

image buttons?

image buttons?

From:
Carlos Burón
Date:
2010-12-05 @ 20:24
Hi,

is it possible to replace text in a button with a small image? I've searched
around the web and in the documentation, but I can't find anything. (By the
way, I'm new to shoes and I'm liking it a lot, but the name of the toolkit
is really not google friendly :( )

Re: [shoes] image buttons?

From:
ashbb
Date:
2010-12-05 @ 22:38
Hi Carlos,

> is it possible to replace text in a button with a small image?
Umm,...impossible.
But it's possible to create clickable images. ;-)

How about this one?

Shoes.app do
  img = image "http://shoes.heroku.com/images/shoes-icon.png"
  img.click{alert "Welcom to Shoes!"}
end

Cheers,
ashbb

Re: [shoes] image buttons?

From:
Carlos Burón
Date:
2010-12-06 @ 16:55
Thanks, I guess I can kinda make my own image buttons with that and some
animations.

2010/12/5 ashbb <ashbbb@gmail.com>

> Hi Carlos,
>
>
> > is it possible to replace text in a button with a small image?
> Umm,...impossible.
> But it's possible to create clickable images. ;-)
>
> How about this one?
>
> Shoes.app do
>   img = image "http://shoes.heroku.com/images/shoes-icon.png"
>   img.click{alert "Welcom to Shoes!"}
> end
>
> Cheers,
> ashbb
>