mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 13:39:18 +02:00
DateTimePiker: Built-in UpDown control appears flat with dtpoFlatButton option
git-svn-id: trunk@55292 -
This commit is contained in:
parent
13110f6bd9
commit
cf2b24196c
@ -1056,6 +1056,10 @@ begin
|
||||
|
||||
if FArrowButton<>nil then
|
||||
FArrowButton.Flat := dtpoFlatButton in Options;
|
||||
|
||||
if FUpDown <> nil then
|
||||
TDTUpDown(FUpDown).Flat := dtpoFlatButton in Options;
|
||||
|
||||
CheckTextEnabled;
|
||||
Invalidate;
|
||||
end;
|
||||
@ -3756,6 +3760,7 @@ procedure TCustomDateTimePicker.UpdateShowArrowButton;
|
||||
[csNoFocus, csNoDesignSelectable];
|
||||
|
||||
TDTUpDown(FUpDown).DTPicker := Self;
|
||||
TDTUpDown(FUpDown).Flat := dtpoFlatButton in Options;
|
||||
|
||||
FUpDown.SetBounds(0, 0, DefaultUpDownWidth, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user