![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#3
|
|||
|
|||
|
Se me olvidaba ...
para usar Enter en vez de Tab en los TEdit:
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char); begin if TForm(Sender).ActiveControl is TEdit then if key = #13 then begin key := #0; // como si no pulsasemos nada Perform(WM_NEXTDLGCTL, 0, 0); // saltamos al siguiente control end; end; Por cierto: Es necesario poner a True la propiedad KeyPreview del Form. para usar Enter en vez de Tab para cambiar de columna en los TStringGrid procedure TForm1.StringGrid1KeyPress(Sender: TObject; var Key: Char); begin if key = #13 then begin key := #0; with TStringGrid(Sender) do if col+1 < colCount then col := col+1; end; inherited; end; en un TDBGrid: procedure TForm1.DBGrid1KeyPress(Sender: TObject; var Key: Char); begin if key = #13 then begin key := #0; with TDBGrid(Sender) do if SelectedIndex+1 < FieldCount then SelectedIndex := SelectedIndex+1; end; inherited; end; espero haberte ayudado ... Última edición por freelance fecha: 11-05-2006 a las 23:14:33. |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| DBGrid... agregar un campo calculado...? | BlueSteel | Varios | 4 | 05-02-2009 19:40:37 |
| Editar campo calculado en DBGrid | Johnny Q | OOP | 1 | 19-07-2005 22:55:01 |
| Campo calculado como checkbox de DBGrid | javiermorales | OOP | 1 | 10-12-2004 11:50:24 |
| Actualizar campo calculado de DBGrid | Agar23 | Varios | 3 | 12-11-2003 08:27:36 |
| Campo Calculado en DBGrid | Agar23 | Tablas planas | 0 | 07-11-2003 09:05:50 |
|