Ver Mensaje Individual
  #1  
Antiguo 09-11-2005
Avatar de gluglu
[gluglu] gluglu is offline
Miembro Premium
 
Registrado: sep 2004
Ubicación: Málaga - España
Posts: 1.455
Reputación: 21
gluglu Va por buen camino
Acceder a las propiedades protegidas de un DBGrid

Hola Amigos !

Intento lo siguiente con Delphi 2005 para poder acceder a la propiedad protegida DBGrid.Row
Código Delphi [-]
type
  THackGrid = class(TDBGrid);
...
procedure TMain.Panel1Enter(Sender: TObject);
var
  N_Row: Integer;
begin
  N_Row := THackGrid(DBGrid1).Row;
  Panel1.Top := 106 + (18*N_Row);
end;
pero al compilar me dá el siguiente error:
"[Error]: E2363 Only methods of descendent types may access protected symbol [Borland.VclDbCtrls]TCustomDBGrid.Row across assembly boundaries"

Alguna recomendación ? Gracias por vuestra ayuda.
Responder Con Cita