[Lazarus] Transparent panel

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Mar 3 18:30:47 CET 2010


On Wed, 3 Mar 2010 17:49:11 +0100
JoshyFun <joshyfun at gmail.com> wrote:

> Hello Lazarus-List,
> 
> Wednesday, March 3, 2010, 4:27:26 PM, you wrote:
> 
> MG> You can reparent anytime, but some settings depend on the parent. For
> MG> example Align, anchor to parent, ParentFont, ParentBIDI, ....
> >> Something like extract controls from TPanel (at runtime) and insert
> >> them in the parent of the TPanel ? Thinking a bit more on this, this
> >> way we will lost the autoarrange facilities and maybe more things.
> MG> What exactly do you want to achieve?
> 
> My intention is to have a "mouse click" transparent control to group
> controls given them the feeling that they are not put in a panel, and
> of course see the background. So something like an invisible TPanel
> where I can bound the controls to the invisible dimensions, font, etc.
> Something that do not accept clicks, nor focus and does not perform
> any kind of draw, a pure container.

Many IDE dialogs use panels that you can not see.
They don't need to be transparent for that, just use no borders.


Mattias





More information about the Lazarus mailing list