You've already forked lazarus-ccr
CalLite: Fix behavior of right mouse click.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5373 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -284,7 +284,6 @@ type
|
|||||||
|
|
||||||
protected
|
protected
|
||||||
procedure ChangeDateTo(ADate: TDate; ASelMode: TCalSelMode);
|
procedure ChangeDateTo(ADate: TDate; ASelMode: TCalSelMode);
|
||||||
procedure Click; override;
|
|
||||||
procedure DateChange; virtual;
|
procedure DateChange; virtual;
|
||||||
procedure DblClick; override;
|
procedure DblClick; override;
|
||||||
class function GetControlClassDefaultSize: TSize; override;
|
class function GetControlClassDefaultSize: TSize; override;
|
||||||
@ -1288,7 +1287,7 @@ begin
|
|||||||
FMonthNames := TStringList.Create;
|
FMonthNames := TStringList.Create;
|
||||||
FDisplayTexts := TStringList.Create;
|
FDisplayTexts := TStringList.Create;
|
||||||
FDisplayTexts.StrictDelimiter := True;
|
FDisplayTexts.StrictDelimiter := True;
|
||||||
FDisplayTexts.Delimiter := '|';
|
FDisplayTexts.Delimiter := ',';
|
||||||
SetDefaultDisplayTexts;
|
SetDefaultDisplayTexts;
|
||||||
FPopupMenu := TPopupMenu.Create(Self);
|
FPopupMenu := TPopupMenu.Create(Self);
|
||||||
FCalDrawer := TCalDrawer.Create(Canvas);
|
FCalDrawer := TCalDrawer.Create(Canvas);
|
||||||
@ -1399,15 +1398,6 @@ begin
|
|||||||
Invalidate;
|
Invalidate;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCalendarLite.Click;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
|
|
||||||
// Multi-select is handled by DblClickTimer
|
|
||||||
if not FMultiSelect then //and not FDblClickTimer.Enabled then
|
|
||||||
InternalClick;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TCalendarLite.DateChange;
|
procedure TCalendarLite.DateChange;
|
||||||
begin
|
begin
|
||||||
if Assigned(FOnDateChange) then
|
if Assigned(FOnDateChange) then
|
||||||
@ -1531,12 +1521,13 @@ begin
|
|||||||
if not Focused and not(csNoFocus in ControlStyle) then
|
if not Focused and not(csNoFocus in ControlStyle) then
|
||||||
SetFocus;
|
SetFocus;
|
||||||
|
|
||||||
if FMultiSelect then begin
|
|
||||||
FClickPoint := Point(X, Y);
|
FClickPoint := Point(X, Y);
|
||||||
FClickShift := Shift;
|
FClickShift := Shift;
|
||||||
FClickButton := Button;
|
FClickButton := Button;
|
||||||
FDblClickTimer.Enabled := true;
|
if FMultiSelect then
|
||||||
end;
|
FDblClickTimer.Enabled := true
|
||||||
|
else
|
||||||
|
InternalClick;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCalendarLite.MouseEnter;
|
procedure TCalendarLite.MouseEnter;
|
||||||
|
Reference in New Issue
Block a user