Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » disable checkboxes in Tree
disable checkboxes in Tree [message #442511] Mon, 06 September 2004 12:21 Go to next message
Eclipse UserFriend
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 14:06 Go to previous messageGo to next message
Eclipse UserFriend
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 17:03 Go to previous message
Eclipse UserFriend
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: Thu Nov 06 12:54:47 EST 2025

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

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

Back to the top