Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tabitems / Tabfolder with SWT 3.6.2 on Win7 64 bit
| |
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 |
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 #693940 is a reply to message #693804] |
Thu, 07 July 2011 14:07 |
Grant Gayed Messages: 2150 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 |
Grant Gayed Messages: 2150 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 |
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 #695807 is a reply to message #694073] |
Tue, 12 July 2011 15:05 |
Grant Gayed Messages: 2150 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
>>
|
|
|
Goto Forum:
Current Time: Thu Sep 26 18:24:21 GMT 2024
Powered by FUDForum. Page generated in 0.05212 seconds
|