PDA

View Full Version : How to hide or remove "OK" button of a Dialog



rameshr
20 Jan 2010, 1:34 AM
Hi all,How to hide or remove "OK" button of a Dialog. im using gxt 2.0.1


Thanks,
R.Ramesh

darrellmeyer
20 Jan 2010, 10:58 PM
Dialog d = new Dialog();
d.setButtons("");
d.show();

Rudakovsky
21 Jan 2010, 1:53 AM
Hi

What about MessageBox?
I'd like to create a prompt for username with a single button OK.

Thanks,
Alexey

darrellmeyer
21 Jan 2010, 7:44 AM
Try this:


MessageBox box = new MessageBox();
box.setTitle("title");
box.setMessage("message");
box.setType(MessageBoxType.PROMPT);
box.setButtons(Dialog.OK);
box.show();

Rudakovsky
21 Jan 2010, 11:46 PM
Thanks a lot for your prompt response