Ver Mensaje Individual
  #2  
Antiguo 20-10-2005
Avatar de epuigdef
epuigdef epuigdef is offline
Miembro
 
Registrado: jul 2005
Posts: 196
Reputación: 19
epuigdef Va por buen camino
debes recorrer el array de componentes del form y comprobar (para los twincontrol) si tiene el foco.


Algo así como:

Código Delphi [-]
var i : Integer;
 
 
   for i := 0 to Form.components.count-1 do
  begin
      if form.components[i] is TWincontrol then
        if ((TWinControl)Components[i]).focused then
            // este es el que tiene el foco

Un saludo

Edu
Responder Con Cita