Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer only has small +/- buttons
TreeViewer only has small +/- buttons [message #464523] Wed, 23 November 2005 18:13 Go to next message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
I would like to create a Tree with similar style to the Eclipse package
explorer. On Windows XP this has nice big + and - symbols in front of
each icon. However, in my own tree

TreeViewer treeViewer = new TreeViewer(parent,
SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);

the +/- symbols are 4 pixels smaller and look ugly. How can I get the
"big" buttons?

Thanks
Hans
Re: TreeViewer only has small +/- buttons [message #464530 is a reply to message #464523] Wed, 23 November 2005 21:35 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The Eclispe package explorer is just using the default SWT Tree.
Are you running with a manifest?

http://eclipse.org/swt/faq.php#xpthemes

If you are launching eclipse with java.exe and your application with
javaw.exe (or vice versa) you will need to have two manifests.

"Hans" <hans______@yahoo.com> wrote in message
news:dm2bgc$edt$1@news.eclipse.org...
>I would like to create a Tree with similar style to the Eclipse package
>explorer. On Windows XP this has nice big + and - symbols in front of each
>icon. However, in my own tree
>
> TreeViewer treeViewer = new TreeViewer(parent,
> SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
>
> the +/- symbols are 4 pixels smaller and look ugly. How can I get the
> "big" buttons?
>
> Thanks
> Hans
Re: TreeViewer only has small +/- buttons [message #464956 is a reply to message #464530] Thu, 01 December 2005 23:11 Go to previous message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
Veronika Irvine wrote:
> The Eclispe package explorer is just using the default SWT Tree.
> Are you running with a manifest?
>
> http://eclipse.org/swt/faq.php#xpthemes
>
> If you are launching eclipse with java.exe and your application with
> javaw.exe (or vice versa) you will need to have two manifests.

No, I just call it as another Eclipse window from Eclipse PDE. I dug
deeper and the +/- rectangles only have the correct size if the tree
icons show a certain icon, but the rectangles are too small with other
icons. I am really puzzled - both icons seem to have the same
characteristics (16x16 gifs etc) and I cannot identify what the random
behavior could cause.

Any other clues - this is really strange.
Hans


>
> "Hans" <hans______@yahoo.com> wrote in message
> news:dm2bgc$edt$1@news.eclipse.org...
>
>>I would like to create a Tree with similar style to the Eclipse package
>>explorer. On Windows XP this has nice big + and - symbols in front of each
>>icon. However, in my own tree
>>
>> TreeViewer treeViewer = new TreeViewer(parent,
>> SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
>>
>>the +/- symbols are 4 pixels smaller and look ugly. How can I get the
>>"big" buttons?
>>
>>Thanks
>>Hans
>
>
>
Previous Topic:Non-embedded ActiveX application automation
Next Topic:Getting a reference to the OK button in Dialog
Goto Forum:
  


Current Time: Tue Apr 16 07:31:15 GMT 2024

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

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

Back to the top