mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 10:49:28 +02:00
let widget read stored value when creating handle; patch by vincent (issue #1458)
git-svn-id: trunk@8196 -
This commit is contained in:
parent
ba14a3e41f
commit
192b287775
@ -182,7 +182,8 @@ end;
|
||||
{-----------------------------------------------------------------------------}
|
||||
Function TCustomFloatSpinEdit.GetValue: Single;
|
||||
begin
|
||||
if HandleAllocated and FValueChanged then
|
||||
if HandleAllocated and FValueChanged
|
||||
and not (wcfCreatingHandle in FWinControlFlags) then
|
||||
begin
|
||||
FValue := TWSCustomFloatSpinEditClass(WidgetSetClass).GetValue(Self);
|
||||
FValueChanged := false;
|
||||
|
@ -58,6 +58,13 @@ type
|
||||
|
||||
class procedure SetSelStart(const ACustomFloatSpinEdit: TCustomFloatSpinEdit; NewStart: integer); virtual;
|
||||
class procedure SetSelLength(const ACustomFloatSpinEdit: TCustomFloatSpinEdit; NewLength: integer); virtual;
|
||||
|
||||
(* TODO: seperation into properties instead of bulk update
|
||||
class procedure SetIncrement(const ACustomFloatSpinEdit: TCustomFloatSpinEdit; NewIncrement: single); virtual;
|
||||
class procedure SetMinValue(const ACustomFloatSpinEdit: TCustomFloatSpinEdit; NewValue: single); virtual;
|
||||
class procedure SetMaxValue(const ACustomFloatSpinEdit: TCustomFloatSpinEdit; NewValue: single); virtual;
|
||||
class procedure SetValueEmpty(const ACustomFloatSpinEdit: TCustomFloatSpinEdit; NewEmpty: boolean); virtual;
|
||||
*)
|
||||
|
||||
class procedure UpdateControl(const ACustomFloatSpinEdit: TCustomFloatSpinEdit); virtual;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user