Can you solve this? B+ GUI

Blitz3D Forums/Blitz3D Beginners Area/Can you solve this? B+ GUI

Apollonius(Posted 2003) [#1]
Ok I got a variable called, file_opened set to 0 by default and tabber hiden by default, my problem is this code below wont show it when the value is 1 nor will it hide it.

.........
Select file_opened
 Case 0
HideGadget(mainTabber)

 Case 1
ShowGadget(mainTabber)

End Select
While WaitEvent()
	Select EventID()
		Case evWindowClose
			End
		Case evMenuEvent
			Select EventData()
				Case 1 ; New File Menu
					file_opened = 0
				Case 2 ; Open File Menu
					file_opened = 1
				Default
					Notify "A menu was chosen that I don't know how to handle yet.  "
			End Select
	End Select
Wend
.............


I don't understand why, can u solve this?

I only want my tabber to be visible when its 1 and hiden when its 0... is that so hard to achive?


Apollonius(Posted 2003) [#2]
The great soja fixed it, thanks soja :D
I was just "impatient", lol