mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 08:38:26 +02:00
IDE: object inspector: show error if integer out of range
git-svn-id: trunk@45620 -
This commit is contained in:
parent
bf29568adb
commit
e09f10816f
@ -27,8 +27,8 @@ unit PropEdits;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, TypInfo, SysUtils, types, Forms, Controls, LCLProc, GraphType,
|
Classes, TypInfo, SysUtils, types, RtlConsts, Forms, Controls, LCLProc,
|
||||||
FPCAdds, // for StrToQWord in older fpc versions
|
GraphType, FPCAdds, // for StrToQWord in older fpc versions
|
||||||
StringHashList, ButtonPanel, Graphics, StdCtrls, Buttons, Menus, LCLType,
|
StringHashList, ButtonPanel, Graphics, StdCtrls, Buttons, Menus, LCLType,
|
||||||
ExtCtrls, ComCtrls, LCLIntf, Dialogs, EditBtn, PropertyStorage, Grids, ValEdit,
|
ExtCtrls, ComCtrls, LCLIntf, Dialogs, EditBtn, PropertyStorage, Grids, ValEdit,
|
||||||
FileUtil, FileCtrl, ObjInspStrConsts, PropEditUtils,
|
FileUtil, FileCtrl, ObjInspStrConsts, PropEditUtils,
|
||||||
@ -3110,8 +3110,7 @@ procedure TIntegerPropertyEditor.SetValue(const NewValue: AnsiString);
|
|||||||
|
|
||||||
procedure Error(const Args: array of const);
|
procedure Error(const Args: array of const);
|
||||||
begin
|
begin
|
||||||
// XXX
|
raise EPropertyError.CreateResFmt(@SOutOfRange, Args);
|
||||||
{raise EPropertyError.CreateResFmt(@SOutOfRange, Args);}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user