If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Customize the Client area of a form??

G'day.

I am looking for a way to basically "reserve" some space around the inside
edge of a form, i.e. have a border in the client area of a form, and make
it so that if a control is docked in the form, that control docks to the
inside edge of my border, rather than the inside edge of the form itself...

Can't seem to see any way of doing this type of thing - anyone got a pointer?

Re: Customize the Client area of a form??

"Paul Mc" <paulmc@nospam.thehub.com.au> wrote
>
> G'day.
>
> I am looking for a way to basically "reserve" some space around the inside
> edge of a form, i.e. have a border in the client area of a form, and make
> it so that if a control is docked in the form, that control docks to the
> inside edge of my border, rather than the inside edge of the form itself...
>
>
> Can't seem to see any way of doing this type of thing - anyone got a pointer?

Use a Panel to define your Client area, and place your controls on it.

Re: Customize the Client area of a form??

"Paul Mc" <paulmc@nospam.thehub.com.au> wrote
>
> G'day Larry.
>
> >Use a Panel to define your Client area, and place your controls on it.
>
> I knew someone would throw this one in ;-) However, using a panel,you can
> still drop controls outside it, onto the "reserved" bordering area that I
> would like to create.

What is going to be there? They can't drop a control on a Label, how about
you fill the form with a label, send that to Back, then place the Panel on top?