FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
componente TstringGrid con panel de propiedades
Hola quisiera hacer un componente que herede de TstringGrid, y arriba de este poner un panel o varios con algunas propiedades visuales para cambiar colores tipos de letras, filtrar, etc, pero no logro crear un componente que cree otro componente en el constructor.
Esta es la unit que tengo muy básica a ver si me ayudan quisiera que crear un Trectangle en el padre de el grid, y ponerlo en el top , como casi siempre tengo los grids en un contenedor TTabItem y este rectángulo quisiera saliera arriba del grid por tanto tendría el mismo padre que el grid. A lo mejor surge otra idea, lo que si quisiera es crear un componente TstrinGrid, con paneles para propiedades y de ser posibles varios , por ejemplo un panel o Rectangulo para filtrar, otro para configurar columnas, otro para configurar tipos de letras tamaños y colores etc.
históricamente hablando se que nunca he logrado entender bien a fondo el orden de construir y destruir los objetos en DELPHI, creo que por no entender bien esto he pasado tanto trabajo con la creación de los controles o componentes durante muchos años jeje. |
#2
|
|||
|
|||
buscando ayuda he seguido este link
de embarcadero https://docwiki.embarcadero.com/RADS...onent_(Delphi) Y Aunque puedo con este enlace lo que quiero visualmente que es un componente que contenga un grid y un rectangulo arriba, pero no puedo ver las propiedades de los mismos , del grid ni del rectangulo. seria bueno esto mismo para contener varios componentes en uno ,pero mostrando todas las propiedades de cada cual, para poder enlazarlas en tiempo de diseño |
#3
|
||||
|
||||
Yo en este caso (y tal vez me equivoco) optaría por deribar no de un TStringGrid, sino de un componente que te sirve de contenedor de ambos, por ejemplo un TRectangle o un TPanel.
Otra opción es generar un Frame con lo que necesitas y reaprovecharlo. Tal vez esta opción sea más sencilla si no estás "muy puesto" en el tema de diseño de componentes de FMX (que no es igual que en VCL). Una prueba rápida:
__________________
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. |
#4
|
|||
|
|||
gracias voy probando
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Instalar componente ADVSmooth panel | maxi915 | Varios | 1 | 21-10-2013 11:49:10 |
Que componente descendiente de TStringGrid me recomiendan?? | DANY | OOP | 12 | 02-12-2010 22:30:02 |
Busco componente panel con pestañas | Er0s | Varios | 1 | 14-09-2010 14:17:16 |
Componente que sea un panel con chincheta??? | vejerf | OOP | 9 | 20-05-2008 10:45:42 |
Borrar fila seleccionada de un componente TStringGrid | JM75 | OOP | 3 | 16-11-2006 10:31:06 |
|