|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
textbox objects
im new delphi user..
@ runtime, a textbox object's focus is transferred to another textbox by pressing TAB key. i want also that when i press the ENTER key the textbox control will also transfer... just like textbox in ms-access. HOW? |
|
#2
|
|||
|
|||
|
Hi,
In the form's PRIVATE section enter: Procedure CMDialogKey(Var Msg:TWMKey); message CM_DIALOGKEY; In the form's IMPLEMENTATION section enter: Code:
Procedure TForm1.CMDialogKey(Var Msg: TWMKey);
Begin
If (ActiveControl Is TEdit) Then
If Msg.Charcode = 13 Then
Msg.Charcode := 9;
inherited;
End;
Hope this will be helpfull, Mitrik. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > textbox objects |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|