Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,207 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
slider max variable help needed #112759
02/20/07 07:21
02/20/07 07:21
Joined: Aug 2002
Posts: 164
Houston
Nicholas Offline OP
Member
Nicholas  Offline OP
Member

Joined: Aug 2002
Posts: 164
Houston
I am using an input array (lets just say it's text) and as I scroll from line to line as I input the text this increases my max line count.
I want
Code:
vslider = x, y, len, bmap, min, MAX, var;


my max to be a variable based on how many lines I have in my array.
I know my variable works fine but I can't seem to use a variable in place of the numerical.
If this doesn't make sense, think of the scrollbar in IE or notepad, you can only scroll as far as there is something, unlike in SED where if you hit the down arrow on the scrollbar you just keep going down. I have up and down arrows just like IE (and all other windows programs) but I want the scrollbar to work properly too.
please advise me.
domo arigato


Black holes are where God divided by zero.
Re: slider max variable help needed [Re: Nicholas] #112760
03/10/07 19:38
03/10/07 19:38
Joined: Mar 2007
Posts: 75
Hamburg, Ger
Altimeter Offline
Junior Member
Altimeter  Offline
Junior Member

Joined: Mar 2007
Posts: 75
Hamburg, Ger
I once faced the same problem.
I think it's because vslider = x, y, len, bmap, min, max, var; is kind of an internal engine structure, where the compiler expects an initialization with numeric values before runtime.
The same pbl occurs when you try to do this with TEXT pos_x etc.
While for text the solution was simple (write a function and change these values after initialisation: mytxt.pos_x = 123;, for the slider it did not work for my purpose.
My workaround consisted in builing my own slider with a bitmap, that could be shifted up and down with the mouse. By knowing the actual y-position of your slider-bitmap, you are able to calculate the rest (let lines appear and disappear on top and bottom or vice versa. But it was a pain in the ass to programm all that alone.



Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1