Recent

Author Topic: (Solved) StringGrid character Case  (Read 2699 times)

jamie

  • Hero Member
  • *****
  • Posts: 6825
Re: StringGrid character Case
« Reply #15 on: April 05, 2021, 12:12:55 am »
I printed out those constants and a few other things long ago, they are sitting on my desk in close reach  :D
The only true wisdom is knowing you know nothing

iru

  • Sr. Member
  • ****
  • Posts: 321
Re: StringGrid character Case
« Reply #16 on: April 05, 2021, 12:15:00 am »
Gentlefolk,
Once again thanks for the comments and direction.

As suggested the answer is in the difference in the two event handlers:

  procedure StringGrid1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
  procedure StringGrid1KeyPress(Sender: TObject; var Key: char);

One presents a 'key' and the state of the shift key and the other a 'char' which is the result of  keyboard handling code....

I need to think more before leaping to conclusions.... Ian

jamie

  • Hero Member
  • *****
  • Posts: 6825
Re: (Solved) StringGrid character Case
« Reply #17 on: April 05, 2021, 12:33:17 am »
its ok to LEAP as long as its to conclusions and not off a cliff because its not the fall that hurts its that sudden stop !
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018