Perpeto 5 Posted October 30, 2023 1. Add TNumberbox anywhere 2. Set Mode to "nbmFloat" 3. Enter a negative Number like "-1.234" 4. Select whole number and press "-" ... nothing happens, besides it would override the value Imo the issue is here: function TCustomNumberBox.IsValidChar(AKey: Char): Boolean; begin .. if (AKey = '-') and ((SelStart <> 0) or LText.Contains('-')) then Result := False .. end; It tests, if the string already has an "-". But it does not test, if the whole string is selected, i.e. the user wants to override the whole value. Can anyone reproduce this too or tell me, if I am wrong? Otherwise I would create a bug report for this. Thanks! Share this post Link to post
Uwe Raabe 2064 Posted October 30, 2023 5 minutes ago, Perpeto said: Otherwise I would create a bug report for this. Seems it already exists: RSP-42131 Share this post Link to post