Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #5  
Antiguo 22-04-2007
Robert01 Robert01 is offline
Miembro
 
Registrado: feb 2006
Ubicación: Córdoba, Argentina
Posts: 895
Poder: 21
Robert01 Va por buen camino
Si lo que usás es un stringgrid podés mostrar el contenido de cada celda a medida que te sitúas sobre ella.

Código Delphi [-]
type
  TForm1 = class(TForm)
    StringGrid: TStringGrid;
    procedure ShowCellHint(X,Y:Integer);
    procedure StringGridMouseMove(Sender: TObject; Shift: TShiftState; X,
      Y: Integer);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }

  end;

var
  Form1: TForm1;
  LastRow, LastCol : Integer;

implementation

{$R *.dfm}

Procedure TForm1.ShowCellHint(X,Y:Integer);
var
  ACol, ARow : Integer;
begin
  If StringGrid.ShowHint = False Then
     StringGrid.ShowHint := True;
  StringGrid.MouseToCell(X, Y, ACol, ARow);
  If (ACol <> -1) And (ARow <> -1) Then
      StringGrid.Hint:=StringGrid.Cells[ACol,ARow];
  If (ACol<>LastCol) or (ARow<>LastRow) Then
  begin
    Application.CancelHint;
    LastCol:=ACol;
    LastRow:=ARow;
  end;
end;


procedure TForm1.StringGridMouseMove(Sender: TObject; Shift: TShiftState;
  X, Y: Integer);
begin
 ShowCellHint(X,Y);
end;

Saludos
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Transpaso de información de Grid a Grid Nelly Varios 1 18-04-2007 08:06:28
la computacion grid en accion - world community grid nightynvid La Taberna 0 04-01-2007 17:33:44
Grid mateamargo OOP 5 25-05-2006 17:06:06
Grid FerCastro Varios 2 16-05-2006 09:40:58
sql o grid minos Conexión con bases de datos 2 18-08-2004 06:05:06


La franja horaria es GMT +2. Ahora son las 16:58:47.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi