Microsoft KB Archive/32965

= BUG: Dialog Box Static Text Not Displayed in Macintosh Basic =

Article ID: 32965

Article Last Modified on 11/21/2006



This article was previously published under Q32965



SYMPTOMS
The program below, which repeatedly gets and disposes a dialog box, fails to display the dialog box's static text field. Editable text fields are displayed correctly.

Microsoft has confirmed this to be a bug in Microsoft QuickBasic Version 1.00, Microsoft Basic Compiler Version 1.00, and Basic Interpreter Version 3.00 (buglist3.00) for the Macintosh.



MORE INFORMATION
The following program accesses a dialog box that has an editable text field (id = 3), a static text field (id = 4), and two buttons (id = 1 and 2): item%=0 ref%=0 OpenResFile &quot;TestEditField.Res&quot;,REF% Cancel%=0 Text$ = &quot;Editable Text&quot; While (Cancel% = 0) Pointer! = 0  GetNewDialog ref%, 100, Pointer! SetDialogText Pointer!, 3, Text$ ModalDialog Pointer!,Item% IF Item% = 1 THEN Cancel% = 0 ELSE Cancel% = 1 END IF  DisposeDialog Pointer! WEND CloseResFile ref% END Program Note: You must use ResEdit to create the dialog box in the file TestEditField.Res to duplicate the problem in the above program.

Another customer reported a similar problem where a static picture was not consistently displayed in a dialog box created in ResEdit.

Additional query words: BasicCom MQuickB

Keywords: kbbug KB32965

-

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

© Microsoft Corporation. All rights reserved.