Results 1 to 2 of 2

Thread: Resize Event & related questions

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151
    When I changed my Video Display from 640X480, forms were much smaller (how dumb of me to forget about this!). I would like to resize forms, controls, fonts, et cetera to accommodate changes in Form size and/or changes in Video Display Mode.

    I assume that the Resize Event will trigger the code I expect to write, but my overall knowledge in this area is minimal. I have MSDN Library, so mere mention of a pertinent search word would be enough to help me.

    I allowed Twips as units (VB Default). Is there another option which might be better for Resizing-logic?

    My application does some simple Point-Plotting in a Picture Box, using ScaleMode 7 (centimeters). This happens to be handy for the mathmatics involved in the plotting, but I wonder if some other mode might be better for the Resizing Code.

    How do I interrogate for Video Display Mode?

    Any other hints you might be able to give me?

    Thanx: Live long & prosper!

  2. #2
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    Actually, the Resize event is not fired by a change in the screen resolution. There is also a control called ReSize.ocx that is supposed to help with things like this. Check out the VB-World Review for ReSize.ocx at

    http://www.vb-world.net/controls/resizeocx/

    If you don't want to go that route... I think your stuck doing code for determining video mode and then coding form resize and control placement manually.

    Hopefully someone else has a better suggestion.
    JC

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