Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site infoswx Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!convex!infoswx!al From: al@infoswx.UUCP Newsgroups: net.micro.mac Subject: Non-modal Dialog Problem Message-ID: <7200002@infoswx> Date: Tue, 19-Nov-85 21:46:00 EST Article-I.D.: infoswx.7200002 Posted: Tue Nov 19 21:46:00 1985 Date-Received: Sat, 23-Nov-85 01:02:52 EST Lines: 72 Nf-ID: #N:infoswx:7200002:000:1096 Nf-From: infoswx.UUCP!al Nov 19 20:46:00 1985 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