WinBlitz 3d

Blitz3D Forums/Blitz3D Programming/WinBlitz 3d

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey guys I just found out about that great library. It rocks.
But I have a little problem in my program:
I am using this event loop (very inspired by the examples' code) to manage my two radio button groups.

The problem is that it seems to handle only the first event. If I select one of the radio buttons and then I select other buttons, only the first buttonb click will be processed.
Anybody know what I am doing wrong?
Thanks in advance.
; loop until user close's window.
While events <> $803

	events = WaitEvent()

	Select events									
		Case $401
			GadgetSelected = EventSource()		
			Select GadgetSelected			
				Case RADIObutton_1
					screenWidth=640					
					screenHeight=480					
				Case RADIObutton_2					
					screenWidth=800					
					screenHeight=600					
				Case RADIObutton_3
					screenWidth=1024					
					screenHeight=768					
				Case RADIObutton_4
					windowed=1					
				Case RADIObutton_5
					windowed=2					
			End Select	
	End Select		
Wend