Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » centering a shell on the screen
centering a shell on the screen [message #447150] Thu, 09 December 2004 08:10 Go to next message
Eclipse UserFriend
Originally posted by: wayne.infodine.net

How do you center an Application Window on the screen? I found examples
of AWT but no SWT.

Thanx...
Re: centering a shell on the screen [message #447152 is a reply to message #447150] Thu, 09 December 2004 09:02 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Wayne Miller wrote:
> How do you center an Application Window on the screen? I found examples
> of AWT but no SWT.
>
> Thanx...
>
See
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet120.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
Re: centering a message box on the screen [message #447217 is a reply to message #447152] Thu, 09 December 2004 17:17 Go to previous messageGo to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
What about placing a message box in the center of its parent shell? Is
there some reason this isn't done by default by SWT?

Benjamin Pasero wrote:

> Wayne Miller wrote:
>> How do you center an Application Window on the screen? I found examples
>> of AWT but no SWT.
>>
>> Thanx...
>>
> See
>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet120.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
Re: centering a message box on the screen [message #447264 is a reply to message #447217] Sat, 11 December 2004 00:18 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
The platform decides where native message dialogs such as message boxes
should be placed.

"Mark McLaren" <noone@nowhere.com> wrote in message
news:cpa1c3$as4$1@www.eclipse.org...
> What about placing a message box in the center of its parent shell? Is
> there some reason this isn't done by default by SWT?
>
> Benjamin Pasero wrote:
>
> > Wayne Miller wrote:
> >> How do you center an Application Window on the screen? I found
examples
> >> of AWT but no SWT.
> >>
> >> Thanx...
> >>
> > See
> >
>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet120.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
>
Previous Topic:SWT_AWT and Java2d OpenGL pipeline
Next Topic:Eclipse Forms for stand alone SWT application
Goto Forum:
  


Current Time: Thu Oct 22 21:52:55 GMT 2020

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

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

Back to the top