You've already forked lazarus-ccr
Prevent combo date mode when day is not shown
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2898 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -881,7 +881,6 @@ procedure TCustomZVDateTimePicker.SetKind(const AValue: TDateTimeKind);
|
|||||||
begin
|
begin
|
||||||
if FKind <> AValue then begin
|
if FKind <> AValue then begin
|
||||||
FKind := AValue;
|
FKind := AValue;
|
||||||
UpdateShowArrowButton(FDateMode, AValue);
|
|
||||||
AdjustEffectiveHideDateTimeParts;
|
AdjustEffectiveHideDateTimeParts;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -1767,6 +1766,7 @@ begin
|
|||||||
MoveSelectionLR(False);
|
MoveSelectionLR(False);
|
||||||
|
|
||||||
FRecalculatingTextSizesNeeded := True;
|
FRecalculatingTextSizesNeeded := True;
|
||||||
|
UpdateShowArrowButton(FDateMode, FKind);
|
||||||
UpdateDate;
|
UpdateDate;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -3549,7 +3549,8 @@ begin
|
|||||||
DestroyUpDown;
|
DestroyUpDown;
|
||||||
|
|
||||||
end else begin
|
end else begin
|
||||||
ReallyShowArrowButton := (NewDateMode = dmComboBox) and (NewKind <> dtkTime);
|
ReallyShowArrowButton := (NewDateMode = dmComboBox) and
|
||||||
|
not (dtpDay in FEffectiveHideDateTimeParts);
|
||||||
|
|
||||||
if (ReallyShowArrowButton <> Assigned(FArrowButton)) or
|
if (ReallyShowArrowButton <> Assigned(FArrowButton)) or
|
||||||
(Assigned(FArrowButton) = Assigned(FUpDown)) then begin
|
(Assigned(FArrowButton) = Assigned(FUpDown)) then begin
|
||||||
|
Reference in New Issue
Block a user