You've already forked lazarus-ccr
CalLite: Hide month/year change arrows and popupmenu when coNoMonthChange is in Options.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8756 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -790,6 +790,9 @@ var
|
|||||||
dx, dy, ox, oy, halfx, halfy: integer;
|
dx, dy, ox, oy, halfx, halfy: integer;
|
||||||
pts: TArrowPoints;
|
pts: TArrowPoints;
|
||||||
begin
|
begin
|
||||||
|
if (coNoMonthChange in FOwner.Options) then
|
||||||
|
exit;
|
||||||
|
|
||||||
FCanvas.Pen.Style := psSolid;
|
FCanvas.Pen.Style := psSolid;
|
||||||
if (FCanvas.Brush.Color <> FOwner.Colors.ArrowColor) then
|
if (FCanvas.Brush.Color <> FOwner.Colors.ArrowColor) then
|
||||||
FCanvas.Brush.Color:= FOwner.Colors.ArrowColor;
|
FCanvas.Brush.Color:= FOwner.Colors.ArrowColor;
|
||||||
@ -1370,6 +1373,7 @@ begin
|
|||||||
2: if not (coNoMonthChange in FOwner.Options) then
|
2: if not (coNoMonthChange in FOwner.Options) then
|
||||||
FOwner.Date := IncMonth(FOwner.Date, -1);
|
FOwner.Date := IncMonth(FOwner.Date, -1);
|
||||||
3..5:
|
3..5:
|
||||||
|
if not (coNoMonthChange in FOwner.Options) then
|
||||||
begin
|
begin
|
||||||
GetMonthYearRects(Rm{%H-}, Ry{%H-});
|
GetMonthYearRects(Rm{%H-}, Ry{%H-});
|
||||||
if PtInRect(Rm, APoint) then begin
|
if PtInRect(Rm, APoint) then begin
|
||||||
@ -2197,6 +2201,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
if High(FCalDrawer.FRowPositions) <> FCalDrawer.FLastRow then
|
if High(FCalDrawer.FRowPositions) <> FCalDrawer.FLastRow then
|
||||||
SetLength(FCalDrawer.FRowPositions, FCalDrawer.FLastRow+1);
|
SetLength(FCalDrawer.FRowPositions, FCalDrawer.FLastRow+1);
|
||||||
|
if (coNoMonthChange in FOptions) then;
|
||||||
Draw;
|
Draw;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user