Skip to main content



      Home
Home » Eclipse Projects » Nebula » [CDateTime] No Selection Events?
[CDateTime] No Selection Events? [message #442693] Fri, 31 July 2009 09:22 Go to next message
Eclipse UserFriend
Hi,

I'm setting the selection via CDateTime#setSelection(Date)

I've registered a selection listener to get notified if the user or any
other code sets the date, but the Widget does only throw SelectionEvents
if the date was changed within the widget. I think this is a bug IMHO
since it must be possible to get such types of events also if any other
code sets the selection. Hints?

Cheerz
Tom
Re: [CDateTime] No Selection Events? [message #468211 is a reply to message #442693] Tue, 04 August 2009 10:53 Go to previous message
Eclipse UserFriend
Hi Tom,

This is a common rule in SWT : if you change a widget's property within your code, no even will be thrown. This was made to prevent dead locks and unnecessary events.

You should get the same behavior with every SWT widget.
--
Nicolas
Re: [CDateTime] No Selection Events? [message #595825 is a reply to message #442693] Tue, 04 August 2009 10:53 Go to previous message
Eclipse UserFriend
Hi Tom,

This is a common rule in SWT : if you change a widget's property within your code, no even will be thrown. This was made to prevent dead locks and unnecessary events.

You should get the same behavior with every SWT widget.
--
Nicolas
Previous Topic:[CDateTime] No Selection Events?
Next Topic:CalendarCombo Error Handling
Goto Forum:
  


Current Time: Wed Jul 30 17:12:24 EDT 2025

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

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

Back to the top