PDA

Ver la Versión Completa : Tpanel


Javier13
14-08-2017, 22:06:00
Como puedo tener un Tpanel en mi forma de incio y que cuando habrá una forma se quede de bajo de todas las formas que voy abriendo?

movorack
14-08-2017, 22:19:01
¿Estás desarrollando una aplicación MDI?

Si es el caso:


MDI child forms cannot be put onto a container like a panel, they are
hosted by the MDI client window, which is a special API-level window
that fills the client area of a MDI main form. This is a requirement of
the Windows MDI framework.
You can have additional TWincontrol descendents (like panels or
toolbars) on a MDI main form as long as their Align property is set to
alLeft, alTop, alBottom, or alRight. The MDI client window will adjust
to take up the remaining client area (you can think of it as aligned
with Align = alClient).
If you want a background image under the child forms you can put a
client-aligned TGraphicControl descendent (like TImage) on the main
form. Since TGraphicControls have no window handle they do not
interfere with the MDI child forms and the VCL contains code to draw
the graphic controls onto the MDI client window. Note that this is not
the case in older Delphi versions, though. I don't remember when it was
introduced (D5 or later perhaps). If you use an older version it
requires some code to draw stuff on the MDI client window.

Fuente (http://www.delphigroups.info/2/90/470631.html)

Casimiro Notevi
14-08-2017, 22:21:14
Como puedo tener un Tpanel en mi forma de incio y que cuando habrá una forma se quede de bajo de todas las formas que voy abriendo?
Por favor, no olvides poner títulos descriptivos a tus preguntas: "Tpanel" no describe nada.
También procura poner tus pregunta en los foros adecuados, lo has puesto en "Trucos", y esto no es ningún truco. Ya lo muevo al foro "Varios".
Y no olvides nuestra guía de estilo (http://www.clubdelphi.com/foros/guiaestilo.php), gracias.

Javier13
14-08-2017, 22:22:24
si, es que tengo un Tpanel con los 3 primeros vendedores que vendieron mas y no quiero que me estorben cuando habrá mas formas

movorack
14-08-2017, 23:08:14
Entonces, el texto que te cité te da una guía de como solucionar eso.