Results 1 to 9 of 9
  1. #1
    Star Lounger
    Join Date
    Sep 2001
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tabbed Folder Resize Problem (VB6)

    <P ID="edit" class=small>(Edited by HansV on 01-Jul-03 02:18. Reduced huge screenshot in size.)</P>I've got a form with an SSTab (VB6) on it and on my machine and others (WinXP Pro) it is behaving properly. But on one user's machine (also WinXP Pro) it is not.

    I've attached 2 png's the "Good" one shows how it is supposed to look and the "Bad" one shows what is happening on the machine referred to above.

    I've replaced the tabctl32.ocx on the offending machine as well as the VB6 runtime and am totally clueless at this point.

    Any and all ideas are welcome!

    Thanks!

    dingo

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Star Lounger
    Join Date
    Sep 2001
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tabbed Folder Resize Problem (VB6)

    <P ID="edit" class=small>(Edited by HansV on 01-Jul-03 02:18. Reduced huge screenshot in size.)</P>Here's the good image referred to in the above post.

  4. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Tabbed Folder Resize Problem (VB6)

    It might help if you indicated which was the bad example. I assume it's the first graphic, since you don't see the controls at the bottom of the form as you do in the second post. If that is correct, are the two machines set to the same screen resolution and the same font size?
    Charlotte

  5. #4
    Star Lounger
    Join Date
    Sep 2001
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tabbed Folder Resize Problem (VB6)

    good point - I thought the file names would be visible. the first is the bad one. The font sizes are both normal but the resolutions are different - the pic of the good one was at 1600x1200 and the bad one was not as high but I can't remember what I was told - I'll have to get back to you on that.

  6. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Tabbed Folder Resize Problem (VB6)

    If you designed the form for the very high resolution and laid it out to fill the screen, that's the problem. A machine with a lower resolution won't show the entire form, only as much as it can fit on the screen at that resolution. As a general rule, unless you include code to test your resolution and either resize the form or warn the user and turn on scrollbars, you need to design for the lowest resolution under which the application will be run. That means it won't fill the screen at high resolution but at a lower resolution the user won't be stuck not seeing part of the form. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>
    Charlotte

  7. #6
    Star Lounger
    Join Date
    Sep 2001
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tabbed Folder Resize Problem (VB6)

    Yes I understand what you're saying BUT it does not come close to filling up my 1600x1200 resolution. The minimum size (in twips) is

    If Me.Height < 9915 Then
    Me.Height = 9915
    End If
    If Me.Width < 14700 Then
    Me.Width = 14700
    End If

    With tabSections
    .Move 60, 405, Me.Width - 255, Me.Height - 1200
    Me.Refresh

    this is in the form resize event.

  8. #7
    2 Star Lounger
    Join Date
    Nov 2001
    Location
    London, UK, England
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tabbed Folder Resize Problem (VB6)

    Even though this might not be your problem, I'll add this while we're talking about resolutions...!

    I've started using an Autosize class to resize all the window controls as the form is resized. I've attached the code as a text file, just save with the .cls extension.

    To use, just declare it at module level as...

    Privare m_Autosize as AutoSize

    ...and in the form resize event just put...

    m_Autosize..ResizeForm Me

    ...seems to work quite well, controls are resized and placed in the correct positions on the form. Give it a go, should sort your problem out if it is resolution related...

  9. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Tabbed Folder Resize Problem (VB6)

    Dylan,

    It would be a good idea to put the name and email address of the author in your code. Believe it or not, I've borrowed code from other developers for a specialized purpose and gone back years later to ask questions about a particular issue.
    Charlotte

  10. #9
    2 Star Lounger
    Join Date
    Feb 2001
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tabbed Folder Resize Problem (VB6)

    This autosize module is for VB. Do you have a similar module for VBA?

    Thanks,

Posting Permissions

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