Results 1 to 9 of 9
  1. #1
    2 Star Lounger
    Join Date
    Oct 2002
    Location
    Lakewood, New Jersey, USA
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    popup form widens inexplicably (2000)

    I've set my form's popup property to "yes". When I design the form, the width and height are as I want them to be. However, when I view the form in Normal View, it is both wider and taller than I want it to be. Any idea as to why this is happening and how i can change it?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: popup form widens inexplicably (2000)

    Have you set the AutoResize proeprty of the form to Yes?
    And have you set the ScrollBars property to No?

  3. #3
    2 Star Lounger
    Join Date
    Oct 2002
    Location
    Lakewood, New Jersey, USA
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: popup form widens inexplicably (2000)

    I set autoresize to no and scrollbars to neither. Did I do the right or the wrong thing?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: popup form widens inexplicably (2000)

    Did it help? If not, set AutoResize to Yes (but keep ScrollBars at Neither) and try again.

  5. #5
    2 Star Lounger
    Join Date
    Oct 2002
    Location
    Lakewood, New Jersey, USA
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: popup form widens inexplicably (2000)

    I ended up dealing with the problem by setting the left, top, width and height of the form in the form_open procedure. BTW, how can I get the width and height of the screen in twips (by screen, I mean the monitor display screen).

    Thanks for your help!

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: popup form widens inexplicably (2000)


  7. #7
    2 Star Lounger
    Join Date
    Oct 2002
    Location
    Lakewood, New Jersey, USA
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: popup form widens inexplicably (2000)

    Thanks, Hans. Once I get the resolution, I'm assuming that I can properly position my form by doing:

    (screenWidth - formWidth)/2 - for the LEFT property of the form
    (screenHeight - formHeight) /2 - for the TOP property of the form

    Am i right?

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: popup form widens inexplicably (2000)

    I was a bit too hasty. The code I posted yields the screen size in pixels. How to convert this to twips depends on your display settings. I have attached a module that does this. The last procedure in the module demonstrates its use.

    And yes, once you have the screen size in twips, you would proceed as you indicated.
    Attached Files Attached Files

  9. #9
    2 Star Lounger
    Join Date
    Oct 2002
    Location
    Lakewood, New Jersey, USA
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: popup form widens inexplicably (2000)

    Thanks, Hans. You did all the hard work for me! I really appreciate your help. Happy holidays!

Posting Permissions

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