-
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?
Cheers,
Paul
-
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.
LFS
-
Re: Customize the Client area of a form??
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.
Ideally, I would like to subclass a form, have the client area take up (for
example) 90% of the interior, and have the remaining 10% not available for
controls etc.
This is not really a vital thing I need to do, but I looked into it, and
finding no obvious way to achieve it, it just piqued my curiosity I guess...
Cheers,
Paul
-
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?
LFS
-
Re: Customize the Client area of a form??
G'day Larry.
> how about
>you fill the form with a label, send that to Back, then place the Panel
>on top?
Hey, a bit of lateral thinking, I like that ;-)
Good idea, I'll give that a go...
Cheers mate,
Paul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks