Full WinBlitz3D FREE

Blitz3D Forums/Blitz3D Programming/Full WinBlitz3D FREE

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.

hi kevin8084, then creating spinners the gadget created before the spinner becomes it buddy.

heres an example.
; WB3D styles
Include "WB3DStyles.bb"

Graphics3D 800,480,16,2
SetBuffer BackBuffer()

Global RuntimeWindow_hWnd = WB3D_InitializeGUI(SystemProperty("AppHwnd"),10,10,800,500)
WB3D_SetQuitMessage "WB3D 3D/GUI quit","Sure To Quit Test.bb" 

window = WB3D_CreateWindow("test",100,100,500,300,0,0)


spinner_value = WB3D_CreateEditField("",40,5,100,20,window,0,0)
spinner = WB3D_CreateSpinner(141,5,40,20,window,1,0)
WB3D_SetSpinnerRange spinner,0,100

While Not KeyDown(1)
	
		
	Select WB3D_WaitEvent()
		
		Case $401
			Select WB3D_EventSource()
				Case spinner
					If WB3D_GetSpinnerPos(spinner) = 50 Then
						WB3D_Notify "spinner gadget","spinner position at 50",0
					EndIf
					
			End Select
		
	End Select
	
Wend

WB3D_EndGUI()
End


kev