123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|373|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Progress / Location Bars

Mon, 06 May 2013, 18:58
dna
In this source


I have a problem with the code when the amount of files gets really large. How is this expression wrong?


-=-=-
DNA
Tue, 07 May 2013, 12:20
rockford
I presume it's because you are using a GOTO within a loop


If CH=28 And J>1 Then J=J-1:Goto LP
If CH=29 And J<NS Then J=J+1:Goto LP


Surely you only need to increase or decrease the J value - the loop is going back to .LP anyway?
Wed, 08 May 2013, 21:06
dna
I removed the goto statement at the end of ch=28 and ch=29 and still got the same result.

It might be the algorithm. NS in my source is 13000+ while SP always falls between 600 - 1080


-=-=-
DNA
Thu, 09 May 2013, 11:59
rockford
OK.

What is this coded in (language Blitz etc.)? Is this the WHOLE code?

What do you mean by "amount of files gets really large"? Do you mean you are checking with TaskManager and watching the filesize increasing?

And SP should always be 600 (not even in a range) - that's what you've defined GRA_HEI as (GRA_HEI=600) (SP=GRA_HEI) and NR should always be 20 (NR=200:RD=10) NS=(NR/ RD) your SP and NS variables are not being changed after initialization in the code you've provided, so unless there is extra code your last statement is making no sense at all.
Thu, 09 May 2013, 14:25
dna
The variables are not changing after the code is being run.

This is not working properly with the variables you see here.
You are right those defined variables do remain the same during the operation of the code.

I was just thinking ahead since I MIGHT change them.

This was compiled in B3D.

-=-=-
DNA
Fri, 10 May 2013, 10:52
rockford
Still don't understand the whole "amount of files gets really large" bit though?

This is not working properly with the variables you see here.


What are you expecting to see and what is the actual result?
Fri, 17 May 2013, 18:25
dna
Oh.
The code is for some progress bars that would be similar to the ones you would find in your IDE when you program.

As your press the down arrow the bar moves down progressively to show your location in the list or whatever you are use the code for.

-=-=-
DNA
Sat, 18 May 2013, 04:05
steve_ancell
dna As your press the down arrow the bar moves down progressively to show your location in the list or whatever you are use the code for.

That sounds more like a highlight bar rather than a progress bar.
Sat, 18 May 2013, 04:15
Afr0
As your press the down arrow the bar moves down progressively to show your location in the list or whatever you are use the code for.


You mean scroll bars? o.O
If this is what you mean, I can pull some code from Project Dollhouse to show you
As for your code - it is hopeless. I'm not going to bother trying to wrap my head around it, because you're using two and three letter variable names and purposefully circumventing indentation.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 20 May 2013, 08:58
dna
Yes its supposeed to be generic scroll bars.

Mon, 20 May 2013, 10:21
steve_ancell
I did some generic toolbars quite a few years back, may need inprovement but you are wecome to pull it apart and build on that.

It's a bit shit but have a look anyway.

homepage.ntlworld.com/stephen.ancell/downloads/files/tilemap_editor.zip
Mon, 20 May 2013, 11:28
Afr0
This should give you a good idea. Notice that the variable names are not two or three characters long.



-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 21 May 2013, 09:55
dna
Thanks for all the code listings.
Some of these are more than I needed for the application that I am using.

-=-=-
DNA