mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 07:49:52 +01:00
TFloatSpinEditEx: don't publish property NumbersOnly. It is useless for this control and confuses users.
This commit is contained in:
parent
92be3d6975
commit
a80c5252e0
@ -543,6 +543,12 @@ begin
|
||||
UpdateControl;
|
||||
end;
|
||||
|
||||
class procedure TCustomFloatSpinEditEx.WSRegisterClass;
|
||||
begin
|
||||
inherited WSRegisterClass;
|
||||
RegisterPropertyToSkip(TCustomFloatSpinEditEx, 'NumbersOnly', 'Should never have been published for this control.', '');
|
||||
end;
|
||||
|
||||
|
||||
function TCustomFloatSpinEditEx.ValueToStr(const AValue: Double): String;
|
||||
var
|
||||
|
||||
@ -79,7 +79,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, Math,
|
||||
// LCL
|
||||
LCLType, LCLProc, Controls, ClipBrd, ComCtrls, GroupedEdit;
|
||||
LCLType, LCLProc, Controls, ClipBrd, ComCtrls, GroupedEdit, LResources;
|
||||
|
||||
|
||||
{.$define debugspinex}
|
||||
@ -220,6 +220,7 @@ type
|
||||
function SameValue(AValue1, AValue2: Double): Boolean; override;
|
||||
{$endif}
|
||||
procedure SetDecimals(ADecimals: Integer); virtual;
|
||||
class procedure WSRegisterClass; override;
|
||||
public
|
||||
function ValueToStr(const AValue: Double): String; override;
|
||||
function KeyAllowed(Key: Char): Boolean; override;
|
||||
@ -263,7 +264,6 @@ type
|
||||
property Hint;
|
||||
property Layout;
|
||||
property MaxLength;
|
||||
property NumbersOnly;
|
||||
property ParentBiDiMode;
|
||||
property ParentColor;
|
||||
property ParentFont;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user