| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Tel.: +0351-8012255 =}
- {= Loewenstr.7a = info@swiftsoft.de =}
- {========================================================================}
- {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
- {========================================================================}
- {= This code is for reference purposes only and may not be copied or =}
- {= distributed in any format electronic or otherwise except one copy =}
- {= for backup purposes. =}
- {= =}
- {= No Delphi Component Kit or Component individually or in a collection=}
- {= subclassed or otherwise from the code in this unit, or associated =}
- {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
- {= without express permission from SwiftSoft. =}
- {= =}
- {= For more licence informations please refer to the associated =}
- {= HelpFile. =}
- {========================================================================}
- {= $Date: 20.01.1998 - 18:00:00 $ =}
- {========================================================================}
- unit MMEdit;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- SysUtils,
- Messages,
- Classes,
- Controls,
- StdCtrls,
- MMObj,
- MMUtils;
- type
- {-- TMMNumberEdit ---------------------------------------------------------}
- TMMNumberEdit = class(TEdit)
- public
- constructor Create(AOwner: TComponent); override;
- published
- property MaxValue: LongInt read FMaxValue write FMaxValue default 1000;
- property MinValue: LongInt read FMinValue write FMinValue default 0;
- property Value: LongInt read GetValue write SetValue default 0;
- property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;
- end;
- {-- TMMFloatNumberEdit ----------------------------------------------------}
- TMMFloatNumberEdit = class(TEdit)
- public
- constructor Create(AOwner: TComponent); override;
- published
- property MaxValue: Float read FMaxValue write FMaxValue;
- property MinValue: Float read FMinValue write FMinValue;
- property Value: Float read GetValue write SetValue;
- property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;
- end;
- implementation
|