Can't enter negative values in to TFloatSpinEdit
Original Reporter info from Mantis: Valdas
-
Reporter name: Valdas Jankūnas
Original Reporter info from Mantis: Valdas
- Reporter name: Valdas Jankūnas
Description:
Situation:
- Form's WS: qt;
- on Form is placed TFloatSpinEdit (Max:100, Min:-100).
When program is running I can't enter negative values:
- select all, pres minus sign button (hex: 2D) - minus appears, press any
digit - no reaction;
- select all, press any digit - digits appears;
- select all, paste (Right click -> Paste) "-4" prom text editor - nothing
changes;
- select all, paste "3" from editor - text accepted.
Steps to reproduce:
See attached test app. In app I do these steps:
- select all with mouse;
- press minus key - minus sign appears;
- press key "2" - nothing appears;
- select all with mouse;
- press key "3" - digit 3 appears;
- with mouse place cursor at beginning;
- press minus key - all stays same;
- press button (which do "Value:=-4") - text "−4.00" appears.
Test app's log:
-- FloatSpinEdit1KeyDown (Key: 006D) --
Text: 0.00
Text's length: 4 bytes
Text's bytes: 30, 2E, 30, 30
-- FloatSpinEdit1UTF8KeyPress (UTF8Key: 2D) --
Text: 0.00
Text's length: 4 bytes
Text's bytes: 30, 2E, 30, 30
-- FloatSpinEdit1KeyUp (Key: 006D) --
Text: -
Text's length: 1 bytes
Text's bytes: 2D
-- FloatSpinEdit1KeyDown (Key: 0032) --
Text: -
Text's length: 1 bytes
Text's bytes: 2D
-- FloatSpinEdit1UTF8KeyPress (UTF8Key: 32) --
Text: -
Text's length: 1 bytes
Text's bytes: 2D
-- FloatSpinEdit1KeyUp (Key: 0032) --
Text: -
Text's length: 1 bytes
Text's bytes: 2D
-- FloatSpinEdit1KeyDown (Key: 0033) --
Text: -
Text's length: 1 bytes
Text's bytes: 2D
-- FloatSpinEdit1UTF8KeyPress (UTF8Key: 33) --
Text: -
Text's length: 1 bytes
Text's bytes: 2D
-- FloatSpinEdit1Change --
Text: 3
Text's length: 1 bytes
Text's bytes: 33
-- FloatSpinEdit1KeyUp (Key: 0033) --
Text: 3
Text's length: 1 bytes
Text's bytes: 33
-- FloatSpinEdit1KeyDown (Key: 006D) --
Text: 3
Text's length: 1 bytes
Text's bytes: 33
-- FloatSpinEdit1UTF8KeyPress (UTF8Key: 2D) --
Text: 3
Text's length: 1 bytes
Text's bytes: 33
-- FloatSpinEdit1KeyUp (Key: 006D) --
Text: 3
Text's length: 1 bytes
Text's bytes: 33
-- FloatSpinEdit1Change --
Text: −4.00
Text's length: 7 bytes
Text's bytes: E2, 88, 92, 34, 2E, 30, 30
-- Button1Click --
Text: −4.00
Text's length: 7 bytes
Text's bytes: E2, 88, 92, 34, 2E, 30, 30
Additional information:
locale:
LANG=lt_LT.UTF-8
LANGUAGE=lt
LC_CTYPE="lt_LT.UTF-8"
LC_NUMERIC="lt_LT.UTF-8"
LC_TIME="lt_LT.UTF-8"
LC_COLLATE="lt_LT.UTF-8"
LC_MONETARY="lt_LT.UTF-8"
LC_MESSAGES="lt_LT.UTF-8"
LC_PAPER="lt_LT.UTF-8"
LC_NAME="lt_LT.UTF-8"
LC_ADDRESS="lt_LT.UTF-8"
LC_TELEPHONE="lt_LT.UTF-8"
LC_MEASUREMENT="lt_LT.UTF-8"
LC_IDENTIFICATION="lt_LT.UTF-8"
LC_ALL=
Mantis conversion info:
- Mantis ID: 25316
- OS: Kubuntu 13.10
- Build: r43416M FPC 2.6.2
- Platform: Linux 3.11.0-13-generic; 64 bit
- Version: 1.3 (SVN)
- Monitored by: » Valdas (Valdas Jankūnas)