The manual lead me to believe that Buttons supported all the methods in
Common and that I would be able to do this:

=====
Shoes.app do
   @del = button "x"
   @confirm = button "Confirm delete"
   @confirm.hide

   @del.click do
      @confirm.toggle
   end

   @confirm.click do
      para "Something"
   end
end
=====

But it doesn't work. Both buttons are visible. There's also an error in the
console, "undefined method `toggle' for (Shoes::Button):Shoes::Button"

If I wrap in a container I can get it to work

=====
Shoes.app do

    @del = button "x"
    @container = flow do
      @confirm = button "Confirm Delete"
    end
    @container.hide

   @del.click do
     @container.toggle
   end

   @confirm.click do
     para "Something"
   end
end
=====

Windows XP, r1134

Simon Heywood
Super Up North, UK
i-5-m.net

Reply via email to