RE: TZF - DBCtrlGrid and TTzEdit
"Randall H. Carpenter" <[email protected]> Thu, 22 Jan 2004 15:22:24 -0500
| Newsgroups | gmane.comp.lang.delphi.topaz |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the quick reply. Your suggestion sounds good. I forgot about the ability to grab the keystroke at the form level. I'll try that. Sounds like it should work. Am I right that the DBCtrlGrid grabs the enter key and does not pass it on through the event hierarchy? Randall H. Carpenter -----Original Message----- From: B. Evers [mailto:[email protected]] Sent: Thursday, January 22, 2004 2:45 PM To: [email protected] Subject: Re: TZF - DBCtrlGrid and TTzEdit Hi, ----- Original Message ----- From: "Randall H. Carpenter" <[email protected]> To: <[email protected]> Sent: Thursday, January 22, 2004 8:35 PM Subject: TZF - DBCtrlGrid and TTzEdit > Has any one used the DBCtrlGrid, a native component of Delphi found on the Data Controls tab? It 's really cool for certain applications. However, I'm having a problem which may prevent me from using it. > > On the DBCtrlGrid I have several TTzEdit controls. Each TTzEdit control has its TabOnEnter property set to true, so when the user presses enter, the cursor will advance to the next control as if Tab was pressed. However, pressing the enter key is not having the desired effect when the TTzEdit is on this grid. It appears the DBCtrlGrid is intercepting the Enter key and just discarding it. I did a little debugging to see if the OnKeyDown or OnKeyPress events were firing for the TTzEdit controls. If I pressed a function key the OnKeyDown event fires. But if I press Enter it does not. Any one have any insight about this behavior? Any help will be appreciated. Try setting keypreview of the form to true (if it is not already). I use a keypress of the form to get this behaviour. I replace enter with # and go to the next control. Hope this helps. Benno --^---------------------------------------------------------------- This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt Or send an email to: [email protected] TOPICA - Start your own email discussion group. FREE! http://www.topica.com/partner/tag02/create/index2.html --^----------------------------------------------------------------