Microsoft KB Archive/114773

= BUG: SetupKit: Fuzzy Title Display in Setup Program =

Article ID: 114773

Article Last Modified on 10/28/2003

-

APPLIES TO


 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



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:

 Start Visual Basic and open the SETUP1.MAK project located in the \VB\SETUPKIT\SETUP1 directory (ALT, F, O). View the code in the SETUP1.FRM form, and go to the ShowMainForm subroutine.  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  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. 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.

<div class="status_section">

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.

Additional query words: buglist3.00 3.00 setup wizard setupwizard

Keywords: kbbug KB114773

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.