Recent

Author Topic: TDBGrid wont make me crazy 2  (Read 1447 times)

eara

  • Jr. Member
  • **
  • Posts: 84
TDBGrid wont make me crazy 2
« on: April 22, 2014, 09:46:06 pm »
 %) i always don't feel well when it comes to gui+interaction with user...
Anyway my new problem here is the TDBGrid which i use it in all my Select Forms, and it's main job is user to find & select a record.
Form has also a "btnOk" which is i think the kind=bkOk, modalResult=mrOk, default=true and doesn't intercept the ENTER which is intercepted from @#$@#$#@ which is just advancing to next record...
Tried also: AutoAdvance=aaNone, TabAdvance=aaNone
Finally i wrote OnKeyDown event handlers in TDBGrid, in Form and i finally managed to intercept the damned VK_RETURN but.... on NEXT RECORD!!!!  :'(
IS THIS NORMAL ???????
« Last Edit: April 23, 2014, 02:26:29 am by eara »

eara

  • Jr. Member
  • **
  • Posts: 84
Re: TDBGrid makes me crazy 2
« Reply #1 on: April 23, 2014, 02:25:32 am »
[BYPASS] used onKeyDown event handler and put the VK_SPACE to select the record instead of the !@#$$@#$ VK_RETURN... and it seems ok (as space does the same work over focused buttons)


 

TinyPortal © 2005-2018