Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > OOP
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 14-05-2008
Avatar de seb@
seb@ seb@ is offline
Miembro
 
Registrado: ago 2003
Posts: 57
Poder: 23
seb@ Va por buen camino
Smile Otra solucion...

mira no pude hacer andar el boton dentro del tstringgrid con el codigo que me enviaste, use el siguiente y anda bien, puede ser otra alternativa:
Este codigo lo utilice en el evento SelectCell del tstringgrid

Código Delphi [-]

var
  R: TRect;
begin
      // sgdWork_Sheet_Data es un tstringgrid
      R := sgdWork_Sheet_Data.CellRect(ACol, ARow);
      R.Left := R.Left + sgdWork_Sheet_Data.Left;
      R.Right := R.Right + sgdWork_Sheet_Data.Left;
      R.Top := R.Top + sgdWork_Sheet_Data.Top;
      R.Bottom := R.Bottom + sgdWork_Sheet_Data.Top;
      // btnMemo es un boton
      btnMemo.Width := 16;
      btnMemo.Left := R.Right - btnMemo.Width + 2;
      btnMemo.Top := R.Top + 2;
      btnMemo.Height := (R.Bottom) - R.Top;
 
      btnMemo.Visible := True;
      btnMemo.SetFocus;
end;
__________________
Sebastian Ibarrola
--------------------------

Última edición por seb@ fecha: 14-05-2008 a las 20:47:31.
Responder Con Cita
 



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
insertar imagen en un botón emiliu Varios 9 14-09-2012 23:32:09
Insertar Un Registro En Base De Datos Con Boton ghato168 PHP 14 01-08-2007 20:10:28
Insertar ub boton o panel en cada celda de un Stringgrid ingel Varios 1 20-07-2007 23:35:18
Insertar una imagen que funcione como boton gozi Conexión con bases de datos 2 05-12-2005 07:21:41
boton en StringGrid? miguel_fr OOP 2 17-06-2004 14:13:12


La franja horaria es GMT +2. Ahora son las 01:22:28.


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