Sliders are devils :|
Blitz3D Forums/Blitz3D Beginners Area/Sliders are devils :|
| ||
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 |
| ||
There is a sample of this in your samples folder. |
| ||
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~ |
| ||
I don't think that kind of attitude will get you far... |
| ||
Don't tell me! :D <- notice the little happy face, i was kidding, sorry if u took it wrongly ;) |
| ||
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???). |
| ||
sorry I typed it did past it my code is okay just here i guess yes its _Map |