Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [JFace] convertHorizontalDLUsToPixels resulting in very big Dialogs
[JFace] convertHorizontalDLUsToPixels resulting in very big Dialogs [message #452393] Sat, 19 March 2005 10:10 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi,

I am using a combination of DLUs and compuzeSize() to set the initial
Size of my Dialogs:

int dialogMinWidth = 400;
Point bestShellSize =
getShell().computeSize(convertHorizontalDLUsToPixels(dialogM inWidth),
SWT.DEFAULT);

Now I received a message from a user, that some dialogs are spanning
more than the entire
width of the screen. They should'nt. Normally these dialogs have about
400px width.

Since I am using an old JFace version (3.0 M5), did some development in
SWT (I am always using the
latest versions) maybe brake with the old Api?

Also note the bug report

[Dialogs] Contents of dialogs to wide to be fully displayed with
non-standard desktop theme
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=81055).

But this user is not running any Theme on his PC.

Ben
Re: [JFace] convertHorizontalDLUsToPixels resulting in very big Dialogs [message #452399 is a reply to message #452393] Sat, 19 March 2005 17:00 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Ok, this is Bug 81055 "[Dialogs] Contents of dialogs to wide to be fully
displayed with non-standard desktop theme"

https://bugs.eclipse.org/bugs/show_bug.cgi?id=81055

Ben

>Hi,
>
>I am using a combination of DLUs and compuzeSize() to set the initial
>Size of my Dialogs:
>
>int dialogMinWidth = 400;
>Point bestShellSize =
> getShell().computeSize(convertHorizontalDLUsToPixels(dialogM inWidth),
>SWT.DEFAULT);
>
>Now I received a message from a user, that some dialogs are spanning
>more than the entire
>width of the screen. They should'nt. Normally these dialogs have about
>400px width.
>
>Since I am using an old JFace version (3.0 M5), did some development in
>SWT (I am always using the
>latest versions) maybe brake with the old Api?
>
>Also note the bug report
>
>[Dialogs] Contents of dialogs to wide to be fully displayed with
>non-standard desktop theme
>(https://bugs.eclipse.org/bugs/show_bug.cgi?id=81055).
>
>But this user is not running any Theme on his PC.
>
>Ben
>
>
Previous Topic:Dialog with two lists
Next Topic:Adding widgets to a viewer
Goto Forum:
  


Current Time: Thu Nov 14 09:50:46 GMT 2019

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

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

Back to the top