Hi Louis,

We don't have any option of confirm method now.
But how about the following code?
Is this what you want to do?


Shoes.app do
  def button_with_confirm
    txt = confirm('ok or cancel?') ? 'OK' : 'cancel'
    @b.remove
    @b = append{ button(txt){button_with_confirm}}
  end

  @b = button 'confirm' do
    button_with_confirm
  end
end


I might have misunderstood, though... :-P

Hope it helps,
ashbb



On Sat, Nov 1, 2008 at 1:07 AM, Louis-Philippe <[EMAIL PROTECTED]> wrote:

> oh, and do you know if there is a way to order the appearance of  app
> windows, I liked the confirm() because it always come on top... in my tests
> windows ordering was unpredictable.
>
> L-P
>
> 2008/10/31 Louis-Philippe <[EMAIL PROTECTED]>
>
>> thanks François,
>> I'll craft something from a dialog() then.
>>
>> L-P
>>
>> 2008/10/31 François Vaux <[EMAIL PROTECTED]>
>>
>> 2008/10/31 Louis-Philippe <[EMAIL PROTECTED]>:
>>> > Hi all,
>>> > First post on this list :D
>>>
>>> Hi, and welcome ! :-)
>>>
>>> > I have been playing with Shoes a bit, now using it to build a frontend
>>> for a
>>> > small backup script
>>> >
>>> > I have a very small question to start with:
>>> > Is there any option to change the text on the "OK" and "Cancel" button
>>> > inside of a confirm() dialog?
>>>
>>> I think there's no way to do that as of now, maybe _why is planning on
>>> adding it in the future
>>>
>>
>>
>

Reply via email to