(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-23-24 10:38 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - VB6: a scrollbar and a picture
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
HyperHacker
Posts: 1763/5072
It has most of the methods a window has in VB, so you can do things like drawing on it easily.
Disch
Posts: 151/202
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.
interdpth
Posts: 101/362
In WinAPI means it's just a static class with a border really.
Disch
Posts: 150/202
I guess part of my problem with understanding VB logic is that I never really understood what a "picture box" was.
dcahrakos
Posts: 389/499
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
Posts: 147/202
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).
interdpth
Posts: 100/362
Ah alright thanks!
dcahrakos
Posts: 388/499
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
Posts: 98/362
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?
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.011 seconds; used 350.04 kB (max 395.25 kB)