Results 1 to 4 of 4

Thread: Resizing

  1. #1

    Thread Starter
    Member ElectroTism's Avatar
    Join Date
    Jan 2000
    Posts
    38

    Red face

    How do I show the "contour" of the form when users are resizing the form? For example, instead of everything resizing/moving, etc at once, only show the outline of the resize and when the user releases the mouse, the form will adjust accordingly.

    VB6 enterprise

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Turn off full-window drag in your Windows Display control panel settings.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Hyperactive Member Eyes.Only's Avatar
    Join Date
    Oct 2001
    Location
    Minnesota
    Posts
    347

    Re: Resizing

    hmm...i would actually like to do this with my form. Right now i have it subclassed to catch the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE and I pause the redrawing until its complete, but this is a rather ugly method. Not functionaly but as far as how it actually looks...

    I dont want to block the resize message altogether...but how could i create a 'rubber band'/outline effect like windows does with that setting turned off...

    I dont suppose anyone has any thoughts do they?

    Ive even thought about Blt'ing a cap of the form using StretchBlt to the forms dc which i could resize rather quickly and then when resize is final,erase the image and redraw the actual controls heh.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Resizing

    How about floating a form over your form, and then turning visibile off on your form. Then you could resize the floating form, and when done, show the original form at the new dimensions when you hide the floating one?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width