Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit
Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #684887] Thu, 16 June 2011 12:29 Go to next message
Eclipse User
Originally posted by: Thomas Barth

Hi,
is it possible on a Win7 64 bit system to get the same look of the
tabitems like on a Win7 32 bit system? Seems that Win7 64 bit ignores
the design suggestions of SWT.

Thomas B
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #685424 is a reply to message #684887] Fri, 17 June 2011 13:26 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
There should not be any difference between the 32- and 64-bit cases,
this sounds like a bug. By "design suggestions" I assume you're
referring to style bits passed to the constructor? And if so, which
bits are you passing?

Grant


On 6/16/2011 8:29 AM, Thomas Barth wrote:
> Hi,
> is it possible on a Win7 64 bit system to get the same look of the
> tabitems like on a Win7 32 bit system? Seems that Win7 64 bit ignores
> the design suggestions of SWT.
>
> Thomas B
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #693804 is a reply to message #685424] Thu, 07 July 2011 08:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: Thomas Barth

Hi,
I ve upgraded to SWT 3.7.0. This is a screenshot of a tabfolder on a
Windows 7 32/64 bit system. I used the snippet code below, but the
tabfolder in my application look the same.

http://img193.imageshack.us/img193/1103/tabfolderonwin7.png

This is a screenshot how it should be displayed

http://img5.imageshack.us/img5/8797/tabfolderonvista.png


This is the snippet code

public static void main(String[] args) {
Display display = new Display ();
final Shell shell = new Shell (display);
final TabFolder tabFolder = new TabFolder (shell, SWT.BORDER);
Rectangle clientArea = shell.getClientArea ();
tabFolder.setLocation (clientArea.x, clientArea.y);
for (int i=0; i<6; i++) {
TabItem item = new TabItem (tabFolder, SWT.NONE);
item.setText ("TabItem " + i);
Button button = new Button (tabFolder, SWT.PUSH);
button.setText ("Page " + i);
item.setControl (button);
}
tabFolder.pack ();
shell.pack ();
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}

}

Seems that the windows 7 theme is not used.


Any idea?


Thomas B

Am 17.06.2011 15:26, schrieb Grant Gayed:
> There should not be any difference between the 32- and 64-bit cases,
> this sounds like a bug. By "design suggestions" I assume you're
> referring to style bits passed to the constructor? And if so, which bits
> are you passing?
>
> Grant
>
>
> On 6/16/2011 8:29 AM, Thomas Barth wrote:
>> Hi,
>> is it possible on a Win7 64 bit system to get the same look of the
>> tabitems like on a Win7 32 bit system? Seems that Win7 64 bit ignores
>> the design suggestions of SWT.
>>
>> Thomas B
>
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #693805 is a reply to message #693804] Thu, 07 July 2011 08:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: Thomas Barth

And this is a screenshot of a tabfolder displayed on a Ubuntu 10.04 System

http://img14.imageshack.us/img14/2857/tabfolderonlinuxgtk.png
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #693940 is a reply to message #693804] Thu, 07 July 2011 14:07 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
When I run your snippet on Windows 7 I see basically the same as you
with both 32- and 64-bit swt (3.7 release). The only difference is that
the selected tab has a white background for me. To confirm, you see the
non-white background with the swt 3.7 release? Other than this, it
looks like you're seeing the correct rendering. Do other native tab
folders in other apps look different for you (for example go to Control
Panel > Appearance and Personalization > Personalization > Change Mouse
Pointers)?

Grant


On 7/7/2011 4:22 AM, Thomas Barth wrote:
> Hi,
> I ve upgraded to SWT 3.7.0. This is a screenshot of a tabfolder on a
> Windows 7 32/64 bit system. I used the snippet code below, but the
> tabfolder in my application look the same.
>
> http://img193.imageshack.us/img193/1103/tabfolderonwin7.png
>
> This is a screenshot how it should be displayed
>
> http://img5.imageshack.us/img5/8797/tabfolderonvista.png
>
>
> This is the snippet code
>
> public static void main(String[] args) {
> Display display = new Display ();
> final Shell shell = new Shell (display);
> final TabFolder tabFolder = new TabFolder (shell, SWT.BORDER);
> Rectangle clientArea = shell.getClientArea ();
> tabFolder.setLocation (clientArea.x, clientArea.y);
> for (int i=0; i<6; i++) {
> TabItem item = new TabItem (tabFolder, SWT.NONE);
> item.setText ("TabItem " + i);
> Button button = new Button (tabFolder, SWT.PUSH);
> button.setText ("Page " + i);
> item.setControl (button);
> }
> tabFolder.pack ();
> shell.pack ();
> shell.open ();
> while (!shell.isDisposed ()) {
> if (!display.readAndDispatch ()) display.sleep ();
> }
> display.dispose ();
> }
>
> }
>
> Seems that the windows 7 theme is not used.
>
>
> Any idea?
>
>
> Thomas B
>
> Am 17.06.2011 15:26, schrieb Grant Gayed:
>> There should not be any difference between the 32- and 64-bit cases,
>> this sounds like a bug. By "design suggestions" I assume you're
>> referring to style bits passed to the constructor? And if so, which bits
>> are you passing?
>>
>> Grant
>>
>>
>> On 6/16/2011 8:29 AM, Thomas Barth wrote:
>>> Hi,
>>> is it possible on a Win7 64 bit system to get the same look of the
>>> tabitems like on a Win7 32 bit system? Seems that Win7 64 bit ignores
>>> the design suggestions of SWT.
>>>
>>> Thomas B
>>
>
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #694061 is a reply to message #693940] Thu, 07 July 2011 17:58 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
Perhaps you're seeing
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351372 . One comment
there indicates that the JRE version is relevant.

Grant


On 7/7/2011 10:07 AM, Grant Gayed wrote:
> When I run your snippet on Windows 7 I see basically the same as you
> with both 32- and 64-bit swt (3.7 release). The only difference is that
> the selected tab has a white background for me. To confirm, you see the
> non-white background with the swt 3.7 release? Other than this, it looks
> like you're seeing the correct rendering. Do other native tab folders in
> other apps look different for you (for example go to Control Panel >
> Appearance and Personalization > Personalization > Change Mouse Pointers)?
>
> Grant
>
>
> On 7/7/2011 4:22 AM, Thomas Barth wrote:
>> Hi,
>> I ve upgraded to SWT 3.7.0. This is a screenshot of a tabfolder on a
>> Windows 7 32/64 bit system. I used the snippet code below, but the
>> tabfolder in my application look the same.
>>
>> http://img193.imageshack.us/img193/1103/tabfolderonwin7.png
>>
>> This is a screenshot how it should be displayed
>>
>> http://img5.imageshack.us/img5/8797/tabfolderonvista.png
>>
>>
>> This is the snippet code
>>
>> public static void main(String[] args) {
>> Display display = new Display ();
>> final Shell shell = new Shell (display);
>> final TabFolder tabFolder = new TabFolder (shell, SWT.BORDER);
>> Rectangle clientArea = shell.getClientArea ();
>> tabFolder.setLocation (clientArea.x, clientArea.y);
>> for (int i=0; i<6; i++) {
>> TabItem item = new TabItem (tabFolder, SWT.NONE);
>> item.setText ("TabItem " + i);
>> Button button = new Button (tabFolder, SWT.PUSH);
>> button.setText ("Page " + i);
>> item.setControl (button);
>> }
>> tabFolder.pack ();
>> shell.pack ();
>> shell.open ();
>> while (!shell.isDisposed ()) {
>> if (!display.readAndDispatch ()) display.sleep ();
>> }
>> display.dispose ();
>> }
>>
>> }
>>
>> Seems that the windows 7 theme is not used.
>>
>>
>> Any idea?
>>
>>
>> Thomas B
>>
>> Am 17.06.2011 15:26, schrieb Grant Gayed:
>>> There should not be any difference between the 32- and 64-bit cases,
>>> this sounds like a bug. By "design suggestions" I assume you're
>>> referring to style bits passed to the constructor? And if so, which bits
>>> are you passing?
>>>
>>> Grant
>>>
>>>
>>> On 6/16/2011 8:29 AM, Thomas Barth wrote:
>>>> Hi,
>>>> is it possible on a Win7 64 bit system to get the same look of the
>>>> tabitems like on a Win7 32 bit system? Seems that Win7 64 bit ignores
>>>> the design suggestions of SWT.
>>>>
>>>> Thomas B
>>>
>>
>
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #694073 is a reply to message #693940] Thu, 07 July 2011 18:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: Thomas Barth

Hi,
here is another screenshot that shows the expecting tabfolder look on a
windows 7 system.

http://img830.imageshack.us/img830/3706/win7tabscomparedtoswtta.png

Can I send you my URL to the tabfolder snippet to load it with webstart
and to see if it displayed properly on your system?

Thomas B


Am 07.07.2011 16:07, schrieb Grant Gayed:
> When I run your snippet on Windows 7 I see basically the same as you
> with both 32- and 64-bit swt (3.7 release). The only difference is that
> the selected tab has a white background for me. To confirm, you see the
> non-white background with the swt 3.7 release? Other than this, it looks
> like you're seeing the correct rendering. Do other native tab folders in
> other apps look different for you (for example go to Control Panel >
> Appearance and Personalization > Personalization > Change Mouse Pointers)?
>
> Grant
>
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #694080 is a reply to message #694061] Thu, 07 July 2011 18:55 Go to previous messageGo to next message
Eclipse User
Originally posted by: Thomas Barth

Am 07.07.2011 19:58, schrieb Grant Gayed:
> Perhaps you're seeing
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=351372 . One comment there
> indicates that the JRE version is relevant.
>

Now I m using a Windows 7 64bit system with JRE 1.6.0_20

C:\Users\tbarth>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)


When I check my System for an Java update the website
http://www.java.com/de/download/installed.jsp?detect=jre&try=1
recognizes Java Version 1.6.0_26 !

Thomas B
Re: Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit [message #695807 is a reply to message #694073] Tue, 12 July 2011 15:05 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
I'm reasonably sure you're seeing
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351372 , especially if
http://www.java.com/de/download/installed.jsp?detect=jre&try=1
is detecting Java Version 1.6.0_26 on your OS. Just a guess, you may
have 32-bit and 64-bit jres installed, and are running 32-bit IE which
uses the installed 32-bit jre. Regardless of the cause, if jre 1.6.0u26
is being detected then this is the jre that is used when viewing your
app via Java Web Start, and is also the jre version that introduced the
problem.

Grant


On 7/7/2011 2:30 PM, Thomas Barth wrote:
> Hi,
> here is another screenshot that shows the expecting tabfolder look on a
> windows 7 system.
>
> http://img830.imageshack.us/img830/3706/win7tabscomparedtoswtta.png
>
> Can I send you my URL to the tabfolder snippet to load it with webstart
> and to see if it displayed properly on your system?
>
> Thomas B
>
>
> Am 07.07.2011 16:07, schrieb Grant Gayed:
>> When I run your snippet on Windows 7 I see basically the same as you
>> with both 32- and 64-bit swt (3.7 release). The only difference is that
>> the selected tab has a white background for me. To confirm, you see the
>> non-white background with the swt 3.7 release? Other than this, it looks
>> like you're seeing the correct rendering. Do other native tab folders in
>> other apps look different for you (for example go to Control Panel >
>> Appearance and Personalization > Personalization > Change Mouse
>> Pointers)?
>>
>> Grant
>>
Previous Topic:Certain objects refuse to appear in pop-up
Next Topic:Include a Sash in a ScrolledComposite?
Goto Forum:
  


Current Time: Wed Sep 17 19:51:38 GMT 2014

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

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