Jump to content

Funny behaviour when not setting MaxValue for TUniFormattedNumberEdit


skafinski

Recommended Posts

Hi,

I'm having funny behaviour of TUniFormattedNumberEdit when only setting MinValue. If i set MinValue to 0,1 (it is comma for decimal seperation yes) and not Max value (0) and then enter value higher than 0,01 it automatically restarts to 0,01 (as it is max value).

Does anybody else getting this error.?

Link to comment
Share on other sites

2 minutes ago, skafy said:

It is purchased but loged in with wrong account

Okay.

17 hours ago, skafinski said:

I'm having funny behaviour of TUniFormattedNumberEdit when only setting MinValue. If i set MinValue to 0,1 (it is comma for decimal seperation yes) and not Max value (0) and then enter value higher than 0,01 it automatically restarts to 0,01 (as it is max value).

Can you make a simple testcase to check?

Link to comment
Share on other sites

Hi,

Quote

var
  edit: TUniFormattedNumberEdit;
begin
  edit:= TUniFormattedNumberEdit.Create(Self);
  edit.Parent:= MainForm;
  edit.Align:= alTop;
  edit.DecimalSeparator:= ',';
  edit.MinValue:= StrToFloat('0,01');

If you then fill 15,15 it automatically changes back to 0,01.

 

In our region it is comma as decimal seperator. Same problem happened if you set MinValue 0,01 it in design time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...