CalLite: Fix double-advance of month/year arrow buttons if MultiSelect is disabled.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5364 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-11-18 13:09:50 +00:00
parent 9d3cb29114
commit 93518f483a

View File

@@ -1404,7 +1404,7 @@ begin
inherited;
// Multi-select is handled by DblClickTimer
if not FMultiSelect then
if not FMultiSelect then //and not FDblClickTimer.Enabled then
InternalClick;
end;
@@ -1531,10 +1531,12 @@ begin
if not Focused and not(csNoFocus in ControlStyle) then
SetFocus;
FClickPoint := Point(X, Y);
FClickShift := Shift;
FClickButton := Button;
FDblClickTimer.Enabled := true;
if FMultiSelect then begin
FClickPoint := Point(X, Y);
FClickShift := Shift;
FClickButton := Button;
FDblClickTimer.Enabled := true;
end;
end;
procedure TCalendarLite.MouseEnter;