Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
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: 6431 days Last view: 6431 days |
| ||
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: 6648 days Last view: 6648 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
Ah alright thanks! | |||
Disch Red Cheep-cheep Since: 12-10-05 Last post: 6711 days Last view: 6711 days |
| ||
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: 6648 days Last view: 6648 days |
| ||
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: 6711 days Last view: 6711 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
In WinAPI means it's just a static class with a border really. | |||
Disch Red Cheep-cheep Since: 12-10-05 Last post: 6711 days Last view: 6711 days |
| ||
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: 6431 days Last view: 6431 days |
| ||
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 | | |