Um... Where is my Trackbar?

BlitzMax Forums/BlitzMax GUI Programming/Um... Where is my Trackbar?

Anyone else having trouble with trackbars?

I created one and added it to a panel, but it fails to show itself.

I even went as far as using example code from LogicGUI, but it still won't appear...

Works here as expected, see below.
Be aware that the free version is not updated for MaxGuiEx! You may did not import the MaxGui.Drivers?
Which MaxGui version do you use?

'Source Code created on 01 Feb 2009 22:51:24 with Logic Gui Version 4.1 Build 370
'jsp.LogicZone.de
'Start of external Header File
SuperStrict
Import MaxGui.Drivers

'End of Header File


Local Window1:TGadget = CreateWindow:TGadget("Window1",333,155,284,186,Null,WINDOW_TITLEBAR|WINDOW_RESIZABLE |WINDOW_STATUS |WINDOW_CLIENTCOORDS )
	Local BorderPanel1:TGadget = CreatePanel:TGadget(5,11,275,173,Window1:TGadget,PANEL_BORDER,"BorderPanel1")
		Local SL1:TGadget = CreateSlider:TGadget(67,63,176,32,BorderPanel1:TGadget,SLIDER_HORIZONTAL | SLIDER_TRACKBAR )
			SetSliderRange( SL1:TGadget,1 ,10 )
			SetSliderValue( SL1:TGadget,1 )
		Local SL2:TGadget = CreateSlider:TGadget(11,10,43,153,BorderPanel1:TGadget,SLIDER_VERTICAL | SLIDER_TRACKBAR )
			SetSliderRange( SL2:TGadget,1 ,100 )
			SetSliderValue( SL2:TGadget,6 )

Repeat
	WaitEvent()
	Select EventID()
		Case EVENT_WINDOWCLOSE
			Select EventSource()
				Case Window1	Window1_WC( Window1:TGadget )
			End Select

		Case EVENT_GADGETACTION
			Select EventSource()
				Case SL1	SL1_GA( SL1:TGadget , EventData() )
				Case SL2	SL2_GA( SL2:TGadget , EventData() )
			End Select

	End Select
Forever

Function Window1_WC( Window:TGadget )
	DebugLog "Window Window1 wants to be closed"
'	HideGadget( Window:TGadget )

	End
End Function

Function SL1_GA( Slider:TGadget , Number:Int )
'Slider Range was initially set to: 1 as Start and: 10 as End Value
	DebugLog "Slider SL1 changed to " + Number
	
End Function

Function SL2_GA( Slider:TGadget , Number:Int )
'Slider Range was initially set to: 1 as Start and: 100 as End Value
	DebugLog "Slider SL2 changed to " + Number
	
End Function




That's so strange - all I get is a window with a blank panel in the middle; I own the full version of MaxGUI, which I just updated and then recompiled everything and still no joy.

I'm running Win2K - is that likely to make a difference?

Just updated to 1.30 for Max and MaxGUI and everything works.

Incidentally, my app is now also running considerably faster - I update regularly through SVN, so the trackbar issues/speed improvement must be something to do with the main Max program?


Just updated to 1.30 for Max and MaxGUI and everything works.


Didn't even consider you were below that version as Seb stated in the "The MaxGUI SVN Advice Thread"

Before You Begin:

Please make sure you are using a fully licensed copy of BlitzMax v1.30 (or higher) and have a valid MaxGUI license before you begin.


So it's working now, that sounds great.