Author Topic: Terminal onKeyPress event doesn't work ?  (Read 940 times)

sbeaulie

  • Newbie
  • *
  • Posts: 13
    • View Profile
Terminal onKeyPress event doesn't work ?
« on: May 15, 2012, 12:26:55 pm »

im useing delphi XE and The On keyPress event never fires when i'm useing the TrnTerminal component.
I have the Key preview set to true on the main form am i missing some thing?

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Terminal onKeyPress event doesn't work ?
« Reply #1 on: May 15, 2012, 01:13:22 pm »
Hello

Thank you for information.
It seems like this event handled in internal TnrTerminal logic and is not available for handle user. We will check and try to fix this problem.
You can try to use OnKeyUp event.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

sbeaulie

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Terminal onKeyPress event doesn't work ?
« Reply #2 on: May 15, 2012, 02:19:10 pm »
Thank you for the prompt reply. on key up does not give me the proper case of the key pressed ie. capital 'L' or lower case 'l'

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Terminal onKeyPress event doesn't work ?
« Reply #3 on: May 16, 2012, 10:54:33 am »
Hello

We fixed problem with hidden OnKeyPress event.
Next release of nrComm Lib will be available soon.

You can analyze Shift: TShiftState parameter of OnKeyUp event.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.