DBGrid: Uppercase doesn't work with first character on GTK2
Original Reporter info from Mantis: Stefano
-
Reporter name: Stefano
Original Reporter info from Mantis: Stefano
- Reporter name: Stefano
Description:
Hello, if I use this code in the KeyPress event of a dbgrid in order to force always uppercase:
if Ord(Key) in [97..122] then begin
Key := Chr(Ord(Key)-32);
end;
this doesn't work with the first character inserted in the cell from the user. The other characters are set ok to uppercase.
I think that this is due to the passage from the editstate of the cell of the grid.
On Win32 the problem doesn't occour.
Best regards,
Stefano
Mantis conversion info:
- Mantis ID: 24893
- OS: Linux
- OS Build: Debian Squeeze
- Platform: GTK2
- Version: 1.0.10
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 42936 (#c33a15d3)
- Target version: 1.2.0
- LazTarget: 1.2