Sliders are devils :|

Blitz3D Forums/Blitz3D Beginners Area/Sliders are devils :|

Apollonius(Posted 2003) [#1]
Well they are, what Im trying to do is put a canvas in a panel and whatever te canvas's size is the slider can keep track of it and can scroll I tryed:
...
	ChildPanel = CreatePanel(215,30,395,310,MainPanel,1)
		SetGadgetLayout ChildPanel,1,1,1,1
...
	CAN_M = CreateCanvas(0,0,600,600,ChildPanel)
		SetGadgetLayout CAN_Map,1,0,1,0
...
	SetSliderRange SLI_Chi_Ver,ClientWidth(ChildPanel),GadgetWidth(ChildPanel)
	SetSliderRange SLI_Chi_Hor,ClientHeight(ChildPanel),GadgetHeight(ChildPanel)
....


Shouldnt that work? Help me... hopefully thats enough information


Beaker(Posted 2003) [#2]
There is a sample of this in your samples folder.


Apollonius(Posted 2003) [#3]
Don't tell me! :D

What do you think I'm using right now, but it simply doesn't seem to be working :|

Man I wish soja would be here, but hes not I would send him my source by email and he would tell me what Im doing wrong :| That kind of people are rare and sooo cool~


Rob(Posted 2003) [#4]
I don't think that kind of attitude will get you far...


Apollonius(Posted 2003) [#5]
Don't tell me! :D <- notice the little happy face, i was kidding, sorry if u took it wrongly ;)


skidracer(Posted 2003) [#6]
I would work from the blitzpaint.bb code in samples->mak, it does work and if you compare your code to it's the first descrepancy is your gadgetwidth and gadgetheight calls in following are being passed the wrong handle (should be can_map I think? (can_m <> can_map???).


Apollonius(Posted 2003) [#7]
sorry I typed it did past it my code is okay just here i guess yes its _Map