FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Cambiar fuente de texto en celdas de StringGrid
Hola a todos.
Podria decirme alguien, como podria cambiar en un StringGrid y en una columna determinada,el color de la celda y el tipo de texto. por ej. uso esto: ----------------------------------------------------------------- ---------------------------------------------------------------- No hay manera de escribir el texto dentro de la celda,pero puedo colorearlo. Gracias de antemano Última edición por ecfisa fecha: 11-03-2011 a las 01:16:19. Razón: ETIQUETAS DELPHI |
#2
|
||||
|
||||
Con el objeto canvas del StringGrid, por ejemplo así:
Saludos! |
#3
|
|||
|
|||
Cambiar fuente de texto en celdas de StringGrid
Gracias por la respuesta, pero por más que cambio las posiciones y demas ,no hay manera de que vea en la celda y dentro del rectangulo creado el texto,y no se que hacer.
Ahora mismo, lo he dejado así y me escribe un rectángulo dentro de la celda pero no aparece el texto.
Última edición por ecfisa fecha: 11-03-2011 a las 14:44:18. Razón: ETIQUETAS DELPHI |
#4
|
||||
|
||||
En mi web hay una entrada antigua titulada Color y alineación en celdas de un StringGrid, donde puedes ver el código del evento OnDrawCell; En ese caso se cambian los colores y se pinta el texto (de forma similar a como lo haces tú).
Si añades el cambio de fuente debería fucionar sin problemas. Échale un vistazo al código y prueba a cambiarlo.
__________________
Germán Estévez => Web/Blog Guía de estilo, Guía alternativa Utiliza TAG's en tus mensajes. Contactar con el Clubdelphi P.D: Más tiempo dedicado a la pregunta=Mejores respuestas. |
#5
|
|||
|
|||
Gracias por el ejemplo,es todo lo que necesitaba
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Copiar Y Pegar texto en las celdas de un StringGrid | rgstuamigo | OOP | 2 | 01-12-2008 13:55:51 |
Multiplicar 2 celdas de un stringgrid | Elite237 | OOP | 3 | 11-11-2008 02:02:59 |
StringGrid + celdas | Makiley | Varios | 4 | 01-02-2006 13:01:15 |
combinar celdas de StringGrid | VRO | Varios | 2 | 21-04-2005 08:02:16 |
Cambiar la fuente, el color del texto y su tamaño en un tmemo | gaska | OOP | 1 | 06-05-2004 19:09:02 |
|