Hide "Reset" button in SimpleRDialog

4 views
Skip to first unread message

Helios De Rosario

unread,
May 23, 2012, 12:51:25 PM5/23/12
to Deducer
Hi,

What would be the simplest way of hiding the "Reset" button of a
SimpleRDialog?

I can just make it invisible:
dialog$getOkayCancel()$getResetButton()$setVisible(FALSE)
But this leaves an ugly gap between the "Run" and "Cancel" buttons.

I know I can also redefine the OkCancel panel with the setOkCancel()
method, but then I must create and assign an action listener to it,
and the simplicity of using the setRunFunction() and
setCheckFunction() methods is lost.

Any idea?
Thanks
Helios

Ian Fellows

unread,
May 23, 2012, 2:19:54 PM5/23/12
to ded...@googlegroups.com
does

dialog$setOkayCancel(FALSE,FALSE,dialog)

do what you want?

ian

Helios De Rosario

unread,
May 23, 2012, 4:03:56 PM5/23/12
to ded...@googlegroups.com
Absolutely!
Thanks,
Helios
Reply all
Reply to author
Forward
0 new messages