_why, My original interest was to change fill color of an oval. But it looks like that fill, stroke and strokewidth are not "styles" in this convention. Is redrawing the only option?
Regards, Pavel Sokolov On Thu, Jun 12, 2008 at 6:35 PM, _why <[EMAIL PROTECTED]> wrote: > On Thu, Jun 12, 2008 at 12:39:39PM +0400, Pavel Sokolov wrote: > > I did not manage to find in manual description of .move method and a way > to > > change styles of graphic elements already drawn. Any hint on the latter? > > It's the `style` method and it takes a hash. And if you call `style` > without any parameters, you get the current settings. > > Shoes.app do > @p = para "I want to get BIG.", :size => 10 > button "OK" do > @p.style :size => (@p.style[:size] + 2) > end > end > > So, this example will increase the font of the paragraph by two > pixels in size every time you click the button. > > _why >
