[net.micro.mac] Non-modal Dialog Problem

al@infoswx.UUCP (11/20/85)

I am having problems with non-modal dialogs.  Static text is not displayed,
but buttons are.  When I use the dialog as a modal dialog, everything is ok.
Any ideas?

Al Gettier
Teknekron Infoswitch
ihnp4!infoswx!al
convex!infosxw!al


Code Segment:

	theDialog = GetNewDialog( AUTOLOAD , NILPTR , (Ptr) -1);

	ShowWindow( theDialog );		/* here is the dialog box */

	InitCursor();				/* show our cursor */

	/*
	 *	Loop on the Events
	 */

	for (;;) {

		CursorAdjust();
		SystemTask();
		TEIdle( hTE );

		GetNextEvent( everyEvent, &myEvent );

		if( IsDialogEvent( &myEvent ) == TRUE ) {

			DialogSelect( &myEvent, theDialog, &itemHit );

			if( itemHit == 1 ) {
				CloseDialog( theDialog );

				/* Bring back the debug window */
				ShowWindow( theWindow );

				return( TRUE );
			}
			continue;
		}

		if( myEvent.what == diskEvt ) {

			.

		}
	}

Resource File:

	Type DLOG
	 ,262
	 200 150 300 350
	 Visible 1 NoGoAway 0
	 262
	Auto Load

	Type DITL
	 ,262
	 2
	 BtnItem Enabled
	 60 110 80 180
	STOP

	 StatText Disabled
	 10 10 60 180
	Autoload in Progress, Click Stop Button to Stop