|
-
Mar 19th, 2000, 05:18 PM
#1
Thread Starter
transcendental analytic
Is there anyone who have a better scrollbarcontrol? I need at least a long integer to determine values on it. Or double.
-
Mar 19th, 2000, 06:49 PM
#2
Frenzied Member
That Sucks, I'm glad you warned me about this, it hasn't come up in any of my programs yet but if it did I'd be well pissed off.
I cant think of any 3rd party controls that could do this but I'm currently designing a set of user controls that mimic some more common microsoft controls, but are a bit more powerfull and look different, I'm going to beta test them here so I'll remember your scrollbar problem when I'm designing the scrollbar (I'd just assumed vb used a long integer and was gonna use one of those) but I think I'll use a variant and have a property for the variable type (Always thinkin' always thinkin') They won't get finished for a few weeks cos I'm having a few problems with the hardcore Techie bits. But If you post your email Ill send you the scrollbar when I've finished it.
Or You could try designing your own, It shouldn't be too hard I'm just trying to make some usercontrols with some really flashy bits so I'm stuck with some technical crap trying to do a few clever things.
-
Mar 19th, 2000, 07:12 PM
#3
Thread Starter
transcendental analytic
Thanks!
Well if you/anyone else hadn't answered me, I would just be doing my own control by now. I was working on my hexaeditor and opening files larger than 32768 caused me problems with scrolling. I've temporally fixed it making the scollbar determine the real value on the basis of its integer. Now i shall wait and mail me at [email protected] when you're ready. Thanks again. And of course i would like to beta test all your controls.
And also, i would have to beta test my hexaeditor too.
-
Mar 19th, 2000, 09:18 PM
#4
Frenzied Member
Why not use the scrollbar as a percentage...?
eg, set the scroll min to 0, max to 100 - on the scroll event just do
(value * total number of lines) / 100
to get the actual line number you need to display
eg;
If you have 33000 lines in the list, and the user moves the scroll bar to value=45 (ie, not quite half way down);
(45 * 33000) / 100 = 14850
ie, the top of the window should display line 14850
and, if you know which line you are displaying and you need to set the scrollbar value appropriately do;
(position / total number) * 100
eg;
(14850 / 33000) * 100 = 45 - set the scrollbar value to 45.
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Mar 19th, 2000, 11:46 PM
#5
Thread Starter
transcendental analytic
Well Buzby, thats good. But i didn't make myself clear in my last post, I solved it by using 32767 as max and not 100, That gives the highest detail, no, i should set min to -32768 too, but i wouldn't bother. I need a scrollbar with Long integer or better.
The real problem is that when to set the smallchange property, and you have a large file, the value will be something like 0,2 or that. And smallchange can only be an integer
-
Mar 20th, 2000, 12:13 AM
#6
Member
Why not try loading only 32767 bytes at a time. Set your scroll bar value to 32767 max. When the scroll value hits the max value then load the next chunk of data. Reset your scroll bar to zero. (Do the same for the opposite direction).
-
Mar 20th, 2000, 12:33 AM
#7
Thread Starter
transcendental analytic
My hexaeditor loads the whole file to support selections: cut, copy and paste. Loading it in parts will disable it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|