DateControl: two events instead of one
Posted: 14 Jun 2015 11:54
Hello,
I use the DateTimeChangedListener in DateControl.
When I use the mouse in the calendar I always get two events instead of one.
Using the keyboard gives no problem.
Is this normal?
I made a workaround which seems ok, but I am not sure about it.
Kind regards,
Ben
I use the DateTimeChangedListener in DateControl.
When I use the mouse in the calendar I always get two events instead of one.
Using the keyboard gives no problem.
Is this normal?
I made a workaround which seems ok, but I am not sure about it.
Code: Select all
predicates
onDateControlDateTimeChanged : dateControl::dateTimeChangedListener.
clauses
onDateControlDateTimeChanged(_Source) :-
T =dateControl_ctl:gmtTimeValue,
stdio::write(T,"\n"). % Do something here
%workaround
%facts
% datetime : gmtTimeValue := erroneous.
%predicates
% onDateControlDateTimeChanged : dateControl::dateTimeChangedListener.
%clauses
% onDateControlDateTimeChanged(_Source) :-
% T =dateControl_ctl:gmtTimeValue,
% if isErroneous(datetime)
% then
% stdio::write(T,"\n"), % Do something here
% datetime := T
% else
% datetime:=erroneous
% end if.
Ben