(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-14-24 01:05 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - VB6: a scrollbar and a picture New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-22-06 02:20 PM Link | Quote
Ok, so I want my picture too move whenever the scrollbar is hit.I have the picture in a specified area and want only so much displayed at a time how would I got about doing this? My picture usually ends up phyiscally moving, so help?
dcahrakos

490


 





Since: 11-17-05

Last post: 6511 days
Last view: 6511 days
Posted on 04-22-06 04:15 PM Link | Quote
the best way I know of is to put a picture box inside another, then make the container picture box can hold the main picture box, and then you can make it any size, and scroll it back and forth with a scrollbar.
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-22-06 06:33 PM Link | Quote
Ah alright thanks!
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6574 days
Last view: 6574 days
Posted on 04-22-06 06:52 PM Link | Quote
Or... you know... you could just draw the image appropriately according to the position of the scrollbar.

But I guess that's harder to do in VB since they felt it necessary to automate the 1-step process of blitting (making it harder to change how you blit since you no longer do the actual blitting).
dcahrakos

490


 





Since: 11-17-05

Last post: 6511 days
Last view: 6511 days
Posted on 04-23-06 01:19 AM Link | Quote
yep...its alot less of a hassle just to use 2 picture boxes, one being the container and the other being the drawing surface. its definently saves time, and you get a good output still. just make sure the container is borderless, and flat, or else then it doesnt look to good.
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6574 days
Last view: 6574 days
Posted on 04-23-06 01:32 AM Link | Quote
I guess part of my problem with understanding VB logic is that I never really understood what a "picture box" was.
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-23-06 01:48 AM Link | Quote
In WinAPI means it's just a static class with a border really.
Disch

Red Cheep-cheep


 





Since: 12-10-05

Last post: 6574 days
Last view: 6574 days
Posted on 04-23-06 02:11 AM Link | Quote
That doesn't really tell me much.

Generic windows are a dime a dozen in the API. I would assume a Picture Box has some special characteristics, otherwise why would anyone use it? Especially since dcahrakos is talking about having a container box and what sounds like a child box within the container.


But whatever... I don't really care... it's just one of those things that always makes me wonder what is up with VB and its craziness.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6294 days
Last view: 6294 days
Posted on 04-24-06 02:15 AM Link | Quote
It has most of the methods a window has in VB, so you can do things like drawing on it easily.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - VB6: a scrollbar and a picture |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.051 seconds; used 383.26 kB (max 471.14 kB)