BUG: SetupKit: Fuzzy Title Display in Setup Program (114773)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition for Windows 3.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0

This article was previously published under Q114773

SYMPTOMS

The title on the background of the SETUP1.EXE is displayed incorrectly.

CAUSE

The ShowMainForm subroutine in SETUP1.FRM of the SETUP1.MAK project incorrectly displays the form and prints a title on the background of the form before it changes the scalemode of the form. Therefore, when the form is refreshed again, the Print statement prints in a slightly different location, giving the "fuzzy" look.

WORKAROUND

To work around the problem, rearrange the order of displaying the form and changing the scalemode of the form by using these steps:

  1. Start Visual Basic and open the SETUP1.MAK project located in the \VB\SETUPKIT\SETUP1 directory (ALT, F, O).
  2. View the code in the SETUP1.FRM form, and go to the ShowMainForm subroutine.
  3. The incorrect code should read as follows:
       Sub ShowMainForm (Caption$)
          Screen.MousePointer = 11
          Setup1.Caption = Caption$
          Setup1.Move 0, 0, Screen.Width, Screen.Height * .85
          Setup1.Show
          Setup1.Refresh
    
          Setup1.ScaleMode = 2
          Setup1.FontSize = 24
          Setup1.FontBold = True
          Setup1.FontItalic = True
    
          DrawBackground
       End Sub
    						
    To correct the problem, move the Setup1.Show and Setup1.Refresh statements to the end of the subroutine. Also, delete the call to DrawBackground. The corrected code should read:
       Sub ShowMainForm (Caption$)
          Screen.MousePointer = 11
          Setup1.Caption = Caption$
          Setup1.Move 0, 0, Screen.Width, Screen.Height * .85
    
          Setup1.ScaleMode = 2
          Setup1.FontSize = 24
          Setup1.FontBold = True
          Setup1.FontItalic = True
    
          Setup1.Show
          Setup1.Refresh
       End Sub
    						
  4. From the File menu, choose Save File to save the changes to the Form. Because the SetupWizard uses the project SETUP1.MAK as its template when creating your distribution diskettes, the change will correct problems for any new setup diskettes.
  5. Press the F5 key to run the program. You should see a clear display of "Loan Application Setup" on the background of the form. Click Exit Setup to exit out of the application.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Modification Type:MajorLast Reviewed:10/28/2003
Keywords:kbbug KB114773