Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » MessageBox position
MessageBox position [message #444570] Fri, 15 October 2004 01:19 Go to next message
Eclipse UserFriend
Originally posted by: claudia_schneider.onlinehome.de

Hi,

I have a program running as standalone app and in case of errors,
it will use a SWT MessageBox to display the error
How do I set the position of this box - as it seems to come up
in the middle of the screen all the times..

Regards,
Achim
Re: MessageBox position [message #444587 is a reply to message #444570] Fri, 15 October 2004 14:25 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You don't. MessageBox's come up at the correct location for the platform.

"Claudia Schneider" <claudia_schneider@onlinehome.de> wrote in message
news:ckn88e$651$2@eclipse.org...
> Hi,
>
> I have a program running as standalone app and in case of errors,
> it will use a SWT MessageBox to display the error
> How do I set the position of this box - as it seems to come up
> in the middle of the screen all the times..
>
> Regards,
> Achim
>
>
Re: MessageBox position [message #444592 is a reply to message #444587] Fri, 15 October 2004 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevin.clark.accessbc.com.nospam

Steve,

I have a dual monitor display, and any MessageBox's always appear in the
dead center, between the monitors. i.e, half of the box is on one monitor
the other half is on the other monitor. It's then difficult to read
(without dragging), and easy to miss. Therefore, I think Achim has a valid
question...

Thanks,
Kevin


Steve Northover wrote:

> You don't. MessageBox's come up at the correct location for the platform.

> "Claudia Schneider" <claudia_schneider@onlinehome.de> wrote in message
> news:ckn88e$651$2@eclipse.org...
> > Hi,
> >
> > I have a program running as standalone app and in case of errors,
> > it will use a SWT MessageBox to display the error
> > How do I set the position of this box - as it seems to come up
> > in the middle of the screen all the times..
> >
> > Regards,
> > Achim
> >
> >
Re: MessageBox position [message #444593 is a reply to message #444592] Fri, 15 October 2004 16:49 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
What platform are you running on? I have a dual monitor configuration for
Windows XP, Motif and GTK and on all these platforms, the MessageBox appears
in the center of the monitor containing the parent shell.

"Kevbo" <kevin.clark@accessbc.com.nospam> wrote in message
news:ckotsi$65p$1@eclipse.org...
> Steve,
>
> I have a dual monitor display, and any MessageBox's always appear in the
> dead center, between the monitors. i.e, half of the box is on one monitor
> the other half is on the other monitor. It's then difficult to read
> (without dragging), and easy to miss. Therefore, I think Achim has a valid
> question...
>
> Thanks,
> Kevin
>
>
> Steve Northover wrote:
>
>> You don't. MessageBox's come up at the correct location for the
>> platform.
>
>> "Claudia Schneider" <claudia_schneider@onlinehome.de> wrote in message
>> news:ckn88e$651$2@eclipse.org...
>> > Hi,
>> >
>> > I have a program running as standalone app and in case of errors,
>> > it will use a SWT MessageBox to display the error
>> > How do I set the position of this box - as it seems to come up
>> > in the middle of the screen all the times..
>> >
>> > Regards,
>> > Achim
>> >
>> >
>
>
Re: MessageBox position [message #444640 is a reply to message #444593] Mon, 18 October 2004 16:01 Go to previous message
Eclipse UserFriend
Originally posted by: kevin.clark.accessbc.com.nospam

I'm running WinXP. I don't usually pass the parent Shell to the MessageBox
(usually null). I should also mention that I'm using an older version of
SWT (2.1). Which probably makes this whole discussion a moot point. =)

I noticed the MessageBox throwing errors with SWT 3.0.1. I haven't gotten
around to debugging that issue in my program yet, but I suspect that I
will have to pass the parent Shell.

Thanks,
Kevin


Veronika Irvine wrote:

> What platform are you running on? I have a dual monitor configuration for
> Windows XP, Motif and GTK and on all these platforms, the MessageBox appears
> in the center of the monitor containing the parent shell.

> "Kevbo" <kevin.clark@accessbc.com.nospam> wrote in message
> news:ckotsi$65p$1@eclipse.org...
> > Steve,
> >
> > I have a dual monitor display, and any MessageBox's always appear in the
> > dead center, between the monitors. i.e, half of the box is on one monitor
> > the other half is on the other monitor. It's then difficult to read
> > (without dragging), and easy to miss. Therefore, I think Achim has a valid
> > question...
> >
> > Thanks,
> > Kevin
> >
> >
> > Steve Northover wrote:
> >
> >> You don't. MessageBox's come up at the correct location for the
> >> platform.
> >
> >> "Claudia Schneider" <claudia_schneider@onlinehome.de> wrote in message
> >> news:ckn88e$651$2@eclipse.org...
> >> > Hi,
> >> >
> >> > I have a program running as standalone app and in case of errors,
> >> > it will use a SWT MessageBox to display the error
> >> > How do I set the position of this box - as it seems to come up
> >> > in the middle of the screen all the times..
> >> >
> >> > Regards,
> >> > Achim
> >> >
> >> >
> >
> >
Previous Topic:Centralized event manager
Next Topic:Disposal of CTabItem
Goto Forum:
  


Current Time: Sat Apr 20 01:16:49 GMT 2024

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

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

Back to the top