Consulting

Results 1 to 6 of 6

Thread: Sizing of form windows

  1. #1

    Sizing of form windows

    Hey all. Is there any way of letting powerpoint "judge" how big a window should be? Heres my situation, in one form I am building up string and then a new form opens to display that string. But the thing is this string may be a variety of sizes (depends on the user). I want the new form that opens up to show the string to expand if the message is larger or stay the normal way if its shorter. I hope you understand what I mean.

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Presumably, your text is in a label? If you set the label's autosize property to true and its WordWrap property to false, it will resize to fit the length of the string on one line. You can then check the width of the label against a max width constant to see if you need to set wordwrap back if you need more than one line and when it's all done, resize the form.
    I've attached an example
    K :-)

  3. #3
    Aiight, i'm going to take a look. Thanks alot

  4. #4
    Wher do you declare cmdClose

  5. #5
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Quote Originally Posted by bwells
    Wher do you declare cmdClose
    I don't, it's the name of the command button :-)
    K :-)

  6. #6
    Ok. Well i Got something to work with the resizing. I just checked the height againstthe height of the form window and check different situations and did actions based on those situations Seems to be working.

Posting Permissions

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