Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Listening to checking/unchecking of TableItems
icon5.gif  Listening to checking/unchecking of TableItems [message #546108] Sun, 11 July 2010 05:41 Go to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
Which type of event is triggered when a TableItem (in a Table created with SWT.CHECK style) is checked or unchecked?
Re: Listening to checking/unchecking of TableItems [message #546122 is a reply to message #546108] Sun, 11 July 2010 11:40 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
SWT.Selection with detail set to SWT.CHECK

Tom
Am 11.07.10 07:41, schrieb Alexey Romanov:
> Which type of event is triggered when a TableItem (in a Table created
> with SWT.CHECK style) is checked or unchecked?
Re: Listening to checking/unchecking of TableItems [message #546123 is a reply to message #546122] Sun, 11 July 2010 11:56 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
Thanks! Does it fire before or after the state changes? That is, will setting `event.doit = false` work?
Re: Listening to checking/unchecking of TableItems [message #546135 is a reply to message #546123] Sun, 11 July 2010 14:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
after! See
http://tomsondev.bestsolution.at/2008/10/08/disable-parts-sw t-tabletree-with-swt-check/

Tom
Am 11.07.10 13:56, schrieb Alexey Romanov:
> Thanks! Does it fire before or after the state changes? That is, will
> setting `event.doit = false` work?
Re: Listening to checking/unchecking of TableItems [message #546136 is a reply to message #546135] Sun, 11 July 2010 14:48 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
Thanks again!

(I believe
TreeItem item = (TreeItem)tree.item;

should say event.item instead)
Re: Listening to checking/unchecking of TableItems [message #546137 is a reply to message #546136] Sun, 11 July 2010 15:17 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Am 11.07.10 16:48, schrieb Alexey Romanov:
> Thanks again!
>
> (I believe
>
> TreeItem item = (TreeItem)tree.item;
>
> should say event.item instead)
yes
Previous Topic:Resize elements in SWT Shell at runtime
Next Topic:SWT tree: auto resize all columns
Goto Forum:
  


Current Time: Fri Apr 19 10:14:00 GMT 2024

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

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

Back to the top