Customize the Client area of a form??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Customize the Client area of a form??

  1. #1
    Paul Mc Guest

    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

  2. #2
    Larry Serflaten Guest

    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




  3. #3
    Paul Mc Guest

    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

  4. #4
    Larry Serflaten Guest

    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




  5. #5
    Paul Mc Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center