mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 11:49:24 +02:00
fixed TSpinEdit.Value
git-svn-id: trunk@3815 -
This commit is contained in:
parent
868a4a7ef3
commit
f70a980e24
@ -32,6 +32,12 @@ begin
|
||||
UpdateControl;
|
||||
end;
|
||||
|
||||
procedure TSpinEdit.InitializeWnd;
|
||||
begin
|
||||
inherited InitializeWnd;
|
||||
UpdateControl;
|
||||
end;
|
||||
|
||||
{-----------------------------------------------------------------------------}
|
||||
Procedure TSpinEdit.SetValue(num : Single);
|
||||
begin
|
||||
@ -44,7 +50,7 @@ end;
|
||||
{-----------------------------------------------------------------------------}
|
||||
Function TSpinEdit.GetValue : Single;
|
||||
Var
|
||||
Temp : Real;
|
||||
Temp : Single;
|
||||
begin
|
||||
if HandleAllocated and (not fValueNeedsUpdate) then begin
|
||||
CNSendMessage(LM_GETVALUE,Self,@Temp);
|
||||
|
@ -46,6 +46,7 @@ type
|
||||
Function GetValue : Single;
|
||||
procedure SetValue(Num : Single);
|
||||
procedure SetClimbRate(num : Single);
|
||||
procedure InitializeWnd; override;
|
||||
public
|
||||
constructor Create(AOwner : TComponent); override;
|
||||
destructor Destroy; override;
|
||||
@ -53,14 +54,14 @@ type
|
||||
property Align;
|
||||
property Decimal_Places : Integer read fDecimals write SetDecimals;
|
||||
property Enabled;
|
||||
property Value : Single read GetValue write SetValue;
|
||||
property Value: Single read GetValue write SetValue;
|
||||
property Climb_Rate : Single read fClimbRate write SetClimbRate;
|
||||
property Visible;
|
||||
property OnEnter;
|
||||
property OnExit;
|
||||
property PopupMenu;
|
||||
property ShowHint;
|
||||
end;
|
||||
end;
|
||||
|
||||
Implementation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user