Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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