BUG: Dialog Box Static Text Not Displayed in Macintosh Basic (32965)






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 "TestEditField.Res",REF%
Cancel%=0
Text$ = "Editable Text"
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.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: kbbug KB32965