I adjusted the code like that.. But still 1 small problem ... Integer max = 32767... Scroll_Pos.Max * 16 = a limit of 524K..
So if you open a file of 600K you can only view the first 524K..
Any Luck on finding why the color goes funny.. (try taking the hexD.visible = True / False out )
Grem...
Oh! That's what you meant...(I guess there's still a bit of language barrier ). And yes that's correct if you are using the file size directly (or \ 16) as the Max. I haven't gone into your code to see how it is implemented.
If you use a multiplier, how would you scroll one line at a time?
A quick fix might be to use two buttons or labels. Put them on a frame, and use a variable for the value, which is scaled to the space between the buttons to place a "slider", which could be a label also.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
Oh! That's what you meant...(I guess there's still a bit of language barrier ). And yes that's correct if you are using the file size directly (or \ 16) as the Max. I haven't gone into your code to see how it is implemented.
If you use a multiplier, how would you scroll one line at a time?
A quick fix might be to use two buttons or labels. Put them on a frame, and use a variable for the value, which is scaled to the space between the buttons to place a "slider", which could be a label also.
At the moment 1 line = 16 or 32 bytes... Hence the *2 for the scroller.. (smallchange is set at: 1 for 16, 2 for 32 byte width..) using the scaled multipliers as proposed a file bigger than 512K will shift 16 lines.. and something as big as 1gig will move 4096 lines.. but only on the scroller.. the normal Page down & up, Up & down arrow will nove one page or line as usual...
I dont fancy creating a user Control just for the scroller..
Well, I guess I wouldn't go through too much for it either. Perhaps just put two buttons on the form for up and down, then use a slider control for the scroller, since it appears to be using a Long.
Well, I guess I wouldn't go through too much for it either. Perhaps just put two buttons on the form for up and down, then use a slider control for the scroller, since it appears to be using a Long.
Had a look at this (after writing up the code for the std scroller..) and it's not too bad.. but it's not quite like the Std scroller.. It doesn't have Smallchange or Largechange and the center bar doesn't resize with max changes...
But i got the std scroller to work nicely.. tested and all, Largest file i have is a 350M file, and it works fine.
some thing to note.. I may have figured out the Color problem. RTB does not have a Foreground color, or a default text color, and by setting the last to grey, when i blank the RTB text i think the color remains. From all that you've told me, i think this is the problem. So, i added a bit of code to set the color to Black when it loads data from the file...
Onther niggly fixed. When at Pos 0 and you press left it jumps to pos 16 or 32 depending on your view size.. Same fixed with right...
i realy hope this is right now
-------- EDIT ----------
Update on later post.. (173 Downloads)
Last edited by GremlinSA; December 14th, 2006 at 02:20 PM.
Had a look at this (after writing up the code for the std scroller..) and it's not too bad.. but it's not quite like the Std scroller.. It doesn't have Smallchange or Largechange and the center bar doesn't resize with max changes...
I see. I haven't looked at it, though a search turns up a bunch of different ones.
i realy hope this is right now
I'll be sure to let you know...
...But has there ever been a publicly distributed app that didn't need a tweak?
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
Hi, I was hoping to get some advice on Hex Editors.
I noticed there is a lot of commercial and free choices.
This thread caught my attention, as I am a VB6 programmer.
Do either of you use a editor under windows xp?
Many years ago I use to read hex on old mainframe machines, it was a very tedious exercise then, I assume the new tools are more efficient when reading and translating hex data.
The API's can now handle files larger than 2 gig, but the app needs a big adjustment to handle files larger than 2 gig, I'm very busy on this now, hope to have a updated proggy project soon...
Last edited by WizBang; December 16th, 2006 at 07:31 AM.
I put a breakpoint in Mnu_F_Open_Click().
The error occurs before the breakpoint is reached, but comes up after I click the menu 'Open'; so I think it is when the procedure is compiled before actual execution. It also occurs when I compile the exe.
I didn't have time to search long, but File_Len is a public long and API_Open_FIle seems to expect a Currency type ByRef, maybe this being the reason.
Since I have a german VB6, I have only SP5 (I didn't dare install german SP6 because of the weird messageboxes).
Maybe I'm too stupid, but I still can't open a file.
When I click 'Open' I can select a file and then the hourglass cursor is shown infinitely and the handle of the scrollbar is blinking. Nothing else happens.
Bookmarks