|
-
Jan 13th, 2003, 07:08 AM
#1
Thread Starter
Member
scrolling an image
supposing i have a really big image.... whats the best way to allow the user to scrool around it?
-
Jan 13th, 2003, 10:53 AM
#2
Fanatic Member
I prefer dragging the image much over using scrollbars. (Probably because there's much more room to click than in the narrow scrollbars, and over all because you can "scroll" diagonally.) I have no idea how others think about it.
(For performance issues you might want to only register the mousedown- and mouseup-events, and not dynamically drag the image in the mousemove-event.)
-
Jan 13th, 2003, 12:56 PM
#3
Member
maybe he's talking abt how to handle such a large image in memory and to load the right parts at the right events.
 ppl saw this
Die, ***** Die !
-
Jan 13th, 2003, 02:44 PM
#4
Fanatic Member
I don't know, he didn't make it clear.
-
Jan 13th, 2003, 05:20 PM
#5
Thread Starter
Member
Originally posted by riis
I prefer dragging the image much over using scrollbars. (Probably because there's much more room to click than in the narrow scrollbars, and over all because you can "scroll" diagonally.) I have no idea how others think about it.
(For performance issues you might want to only register the mousedown- and mouseup-events, and not dynamically drag the image in the mousemove-event.)
that's what i want to do drag the picture around, but how do i go about doing it?
-
Jan 14th, 2003, 09:09 PM
#6
Member
maybe u should make it real time if you want to make it fast enuf for gaming. If you specify the right purpose then maybe you could get some help
 ppl saw this
Die, ***** Die !
-
Jan 14th, 2003, 10:32 PM
#7
Thread Starter
Member
ok, what i have is this really large image of a technology tree. I just want to be able to allow the user to scroll around the picture by dragging the mouse. What i have in palce now uses scrollbars.
It doesn't need to be *very* fast
-
Jan 14th, 2003, 11:00 PM
#8
Good Ol' Platypus
Don't have a large image if it's all text. Generate it at run-time and you'll simply be able to offset the individual X and Y positions of the text, pictures, and/or controls you use.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jan 15th, 2003, 02:39 AM
#9
Thread Starter
Member
Originally posted by Sastraxi
Don't have a large image if it's all text. Generate it at run-time and you'll simply be able to offset the individual X and Y positions of the text, pictures, and/or controls you use.
its not all text, there are icons as well
-
Jan 15th, 2003, 02:59 AM
#10
Member
i think sastraxi is right abt the run-time thing. Even if there are icons, you can hold certain of them in memory and display appropriate ones at the right positions, would be a hell lot faster.
 ppl saw this
Die, ***** Die !
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
|