lazarus/lcl/spin.pp
lazarus 60de83b33e MG: fixed unallocated spinedit handle bug
git-svn-id: trunk@3243 -
2002-08-25 14:27:45 +00:00

72 lines
2.2 KiB
ObjectPascal

{
/***************************************************************************
Spin.pp
--------
Initial Revision : Fri Apr 23 1999 10:29am
Shane Miller
mailing list:lazarus@miraclec.com
***************************************************************************/
*****************************************************************************
* *
* This file is part of the Lazarus Component Library (LCL) *
* *
* See the file COPYING.LCL, included in this distribution, *
* for details about the copyright. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
*****************************************************************************
}
unit Spin;
{$mode objfpc}{$H+}
interface
uses
Classes, Controls, SysUtils, StdCtrls, VCLGlobals, LMessages;
type
TSpinEdit = class(TWinControl)
private
fDecimals : Integer;
fValue : Single;
fClimbRate : Single;
fValueNeedsUpdate: boolean;
Procedure UpdateControl;
protected
procedure SetDecimals(num : Integer);
Function GetValue : Single;
procedure SetValue(Num : Single);
procedure SetClimbRate(num : Single);
public
constructor Create(AOwner : TComponent); override;
destructor Destroy; override;
published
property Align;
property Decimal_Places : Integer read fDecimals write SetDecimals;
property Enabled;
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;
Implementation
{$I spinedit.inc}
end.