ClearDiskSpaceMsgs(); DrawDiskSpaceMsgs(gControls->opt->vRefNum);
InSetupTypeContent(EventRecord* evt, WindowPtr wCurrPtr){		Point 				localPt;	Rect				r;	ControlPartCode		part;		short				cntlVal;	long 				len;	ControlHandle 		currCntl;		/* NavChooseFolder vars */	NavReplyRecord		reply;		NavDialogOptions	dlgOpts;	NavEventUPP			eventProc;	AEDesc				resultDesc, initDesc;	FSSpec				folderSpec, tmp;	OSErr				err;	GrafPtr				oldPort;	GetPort(&oldPort);	SetPort(wCurrPtr);		localPt = evt->where;	GlobalToLocal( &localPt);		HLock((Handle)gControls->stw->instType);	SetRect(&r, (**(gControls->stw->instType)).contrlRect.left,				(**(gControls->stw->instType)).contrlRect.top,				(**(gControls->stw->instType)).contrlRect.right,				(**(gControls->stw->instType)).contrlRect.bottom);	HUnlock((Handle)gControls->stw->instType);	if (PtInRect(localPt, &r))	{		part = FindControl(localPt, gWPtr, &currCntl);		part = TrackControl(currCntl, localPt, (ControlActionUPP) -1);				gControls->opt->instChoice = GetControlValue(currCntl);				SetRect(&r, (**(gControls->stw->instDescTxt)).viewRect.left,					(**(gControls->stw->instDescTxt)).viewRect.top,					(**(gControls->stw->instDescTxt)).viewRect.right,					(**(gControls->stw->instDescTxt)).viewRect.bottom);							HLock(gControls->cfg->st[gControls->opt->instChoice-1].longDesc);		len = strlen(*gControls->cfg->st[gControls->opt->instChoice-1].longDesc);		TESetText( *gControls->cfg->st[gControls->opt->instChoice-1].longDesc, len, gControls->stw->instDescTxt);		HUnlock(gControls->cfg->st[gControls->opt->instChoice-1].longDesc);		EraseRect( &r );		TEUpdate( &r, gControls->stw->instDescTxt);		return;	}		HLockHi((Handle)gControls->stw->destLoc);	SetRect(&r, (**(gControls->stw->destLoc)).contrlRect.left,				(**(gControls->stw->destLoc)).contrlRect.top,				(**(gControls->stw->destLoc)).contrlRect.right,				(**(gControls->stw->destLoc)).contrlRect.bottom);	HUnlock((Handle)gControls->stw->destLoc);	if (PtInRect(localPt, &r))	{		part = FindControl(localPt, gWPtr, &currCntl);		part = TrackControl(currCntl, localPt, (ControlActionUPP) -1);		cntlVal = GetControlValue(currCntl);				err = NavGetDefaultDialogOptions(&dlgOpts);		GetIndString( dlgOpts.message, rStringList, sFolderDlgMsg );		eventProc = NewNavEventProc( (ProcPtr) OurNavEventFunction );		ERR_CHECK(FSMakeFSSpec(gControls->opt->vRefNum, gControls->opt->dirID, NULL, &tmp));		ERR_CHECK(AECreateDesc(typeFSS, (void*) &tmp, sizeof(FSSpec), &initDesc));		err = NavChooseFolder( &initDesc, &reply, &dlgOpts, eventProc, NULL, NULL );				AEDisposeDesc(&initDesc);		DisposeRoutineDescriptor(eventProc);				if((reply.validRecord) && (err == noErr))		{			if((err = AECoerceDesc(&(reply.selection),typeFSS,&resultDesc)) == noErr)			{				BlockMoveData(*resultDesc.dataHandle,&tmp,sizeof(FSSpec));				/* forces name to get filled */				FSMakeFSSpec(tmp.vRefNum, tmp.parID, tmp.name, &folderSpec); 								/* NOTE: 				** ----				** gControls->opt->parID and gControls->opt->folder refer to the				** same folder. The -dirID- is used by Install() when passing params to				** the SDINST_DLL through its prescribed interface that just takes the				** vRefNum and parID of the FSSpec that describes the folder.				** Whilst, the -folder- string is used by DrawDiskNFolder() in repainting.				*/				pstrcpy(gControls->opt->folder, folderSpec.name);				DrawDiskNFolder(folderSpec.vRefNum, folderSpec.name);				gControls->opt->vRefNum = tmp.vRefNum;				gControls->opt->dirID = tmp.parID;			}            			AEDisposeDesc(&resultDesc);			NavDisposeReply(&reply);		}				return;	}		HLock((Handle)gControls->backB);	r = (**(gControls->backB)).contrlRect;	HUnlock((Handle)gControls->backB);	if (PtInRect( localPt, &r))	{		part = TrackControl(gControls->backB, evt->where, NULL);		if (part)		{			ClearDiskSpaceMsgs();			KillControls(gWPtr);			ShowWelcomeWin();			return;		}	}				HLock((Handle)gControls->nextB);				r = (**(gControls->nextB)).contrlRect;	HUnlock((Handle)gControls->nextB);	if (PtInRect( localPt, &r))	{		part = TrackControl(gControls->nextB, evt->where, NULL);		if (part)		{			ClearDiskSpaceMsgs();			KillControls(gWPtr);			/* treat last setup type selection as custom */			if (gControls->opt->instChoice == gControls->cfg->numSetupTypes)				ShowComponentsWin();			else				ShowTerminalWin();			return;		}	}	SetPort(oldPort);}