Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » disable checkboxes in Tree
disable checkboxes in Tree [message #442511] Mon, 06 September 2004 16:21 Go to next message
Tobias Weih is currently offline Tobias WeihFriend
Messages: 8
Registered: July 2009
Junior Member
hi,
is there a nice way to disable checkbox-toggeling in a swt-tree?

thanks
tobi
Re: disable checkboxes in Tree [message #442535 is a reply to message #442511] Tue, 07 September 2004 18:06 Go to previous messageGo to next message
Carolyn MacLeod is currently offline Carolyn MacLeodFriend
Messages: 149
Registered: July 2009
Senior Member
Hi, Tobi.

You must be creating your Tree with the SWT.CHECK style set, so to get rid
of checkboxes, get rid of SWT.CHECK.
If this is not the case, then you must be creating with the value of
SWT.CHECK, which is 1 << 5.
Other SWT style bits that have a value of 1 << 5 (these are NOT used by
Tree, so just get rid of them) are:
SHADOW_NONE, TITLE, ROMAN, and OK.

Hope this helps,
Carolyn


"Tobias Weih" <tobias.weih@xinity.de> wrote in message
news:chi296$pa7$1@eclipse.org...
> hi,
> is there a nice way to disable checkbox-toggeling in a swt-tree?
>
> thanks
> tobi
Re: disable checkboxes in Tree [message #442552 is a reply to message #442511] Tue, 07 September 2004 21:03 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Nope. The operating systems don't support it. You could restore the
previous check state after the user has selected it.

"Tobias Weih" <tobias.weih@xinity.de> wrote in message
news:chi296$pa7$1@eclipse.org...
> hi,
> is there a nice way to disable checkbox-toggeling in a swt-tree?
>
> thanks
> tobi
Previous Topic:SWT Browser
Next Topic:transparent pngs in 3.0?
Goto Forum:
  


Current Time: Sat Apr 27 00:00:14 GMT 2024

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

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

Back to the top