Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » messagebox without shell
messagebox without shell [message #461055] Thu, 15 September 2005 09:33 Go to next message
Eclipse UserFriend
Originally posted by: andreas.rynes.cpb-software.ag

Hello !

How can I create a MessageBox Dialog at the beginning of an
application without having a shell?

MessageBox messageBox = new MessageBox( null,
SWT.ICON_QUESTION|SWT.YES|SWT.NO );
int answer = messageBox.open();

many thanks for any comment !

bye, Andy
Re: messagebox without shell [message #461057 is a reply to message #461055] Thu, 15 September 2005 10:09 Go to previous message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
You can't. Create the shell manually new Shell(Display disp) passing in
the display you are using.

Regards
Stefan

andreas.rynes@cpb-software.ag wrote:
> Hello !
>
> How can I create a MessageBox Dialog at the beginning of an
> application without having a shell?
>
> MessageBox messageBox = new MessageBox( null,
> SWT.ICON_QUESTION|SWT.YES|SWT.NO );
> int answer = messageBox.open();
>
> many thanks for any comment !
>
> bye, Andy
Previous Topic:Table.select() doesn't call SelectionListener
Next Topic:How to specify TitleAreaDialog's position when it startup
Goto Forum:
  


Current Time: Fri Apr 19 21:43:24 GMT 2024

Powered by FUDForum. Page generated in 0.03332 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top