| Can't figure out what i'm doing wrong here. I know the index # retrieved from Eventdat() corresponds correctly to Case block #s, so it must be the If/then block that isn't working. The windows start out hidden when the program runs, but this code I thought would show or hide them when i click on a toolbar icon. 
 Edit: I should add they are just staying hidden.
 
 
 
 
 
Case ToolBar
	SetStatusText ToolbarWindow, "You Clicked Button #" + EventData()
	Select EventData()
		Case 0
			If GadgetHidden(FileWindow) = True
				ShowGadget(FileWindow)
			Else
				HideGadget(FileWindow)
			EndIf
		Case 2
			If GadgetHidden(ToolSelectionWindow) = True
				ShowGadget(ToolSelectionWindow)
				ShowGadget(TypeFieldInputWindow)
			Else
				HideGadget(TypeFieldInputWindow)
				HideGadget(ToolSelectionWindow)
			EndIf
		Case 4
			If GadgetHidden(ItemWindow) = True
				ShowGadget(ItemWindow)
				'ShowGadget(?) 'This will be an item Type editor window
				Else
					HideGadget(ItemWindow)
				EndIf
			Case 6
				If GadgetHidden(LevelSelectionWindow) = True
					ShowGadget(LevelSelectionWindow)
				Else
					HideGadget(LevelSelectionWindow)
				EndIf
	EndSelect
 
 
 |