• Tabbed Folder Resize Problem (VB6)

    Author
    Topic
    #389834

    (Edited by HansV on 01-Jul-03 02:18. Reduced huge screenshot in size.)

    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

    Viewing 1 reply thread
    Author
    Replies
    • #690255

      (Edited by HansV on 01-Jul-03 02:18. Reduced huge screenshot in size.)

      Here’s the good image referred to in the above post.

    • #690309

      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?

      • #690327

        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 1600×1200 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.

        • #690330

          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. shrug

          • #690332

            Yes I understand what you’re saying BUT it does not come close to filling up my 1600×1200 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.

            • #690417

              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…

            • #690430

              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.

            • #690486

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

              Thanks,

    Viewing 1 reply thread
    Reply To: Tabbed Folder Resize Problem (VB6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: