Author |
Message |
Quan Guest
Offline
|
Posted: Thu May 04, 2006 4:02 pm Post subject: Couple of vb6 questions |
|
|
|
|
How would I make my program take a screen capture for a specific area of the screen?
And
How do I make one object invisible when another object is visible?
Thanks. |
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu May 04, 2006 9:08 pm Post subject: |
|
|
|
|
Screen captures are actually more complicated than you might think. The method I've seen is to create a DC, select a bitmap into it, and then use BitBlt() to copy from the source DC. If you didn't understand that, you're not ready.
And I think you'll have to be more clear with your second question. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
|
Quan Guest
Offline
|
Posted: Sat May 06, 2006 12:16 pm Post subject: |
|
|
|
|
Okay. Thanks.
Second question:
I found how how to do it. Im making an Avatar Maker and I want the user to be able to click a button an image shows up, then when they click another button in the same catagory the image within that catagory that they chose before becomes invisible..
Um I guess I can explain it better..
Okay - think of a dress up game made in Flash. Where a user clicks on a shirt and then the shirt goes on the top part of the body. It replaces the previous shirt image already on the body. Same goes for the legs, the head, neck etc.. |
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun May 07, 2006 8:40 pm Post subject: |
|
|
|
|
I think the answer to that will become apparent once you actually start coding the app. |
|
Back to top |
|
|
quan Guest
Offline
|
Posted: Sun May 07, 2006 11:13 pm Post subject: |
|
|
|
|
oh, okay |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue May 16, 2006 12:09 pm Post subject: |
|
|
|
|
.visible=true
.visible=false
...have fun _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Fri May 26, 2006 3:40 pm Post subject: |
|
|
|
|
one option (ugly + hacky)
would be to send the print screen key using vb (screen capture key)
then it would just be gettting it off the cliboard.
of couse you would need some way to preserver the cliboards current contents |
|
Back to top |
|
|
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Mon May 29, 2006 4:22 am Post subject: |
|
|
|
|
You should probably talk to Drake on SSForum because he does a lot of VB programming for his map editor. _________________
|
|
Back to top |
|
|
Cerium Server Help Squatter
Age:41 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Mon May 29, 2006 8:26 pm Post subject: |
|
|
|
|
Doc Flabby wrote: | one option (ugly + hacky)
would be to send the print screen key using vb (screen capture key)
then it would just be gettting it off the cliboard.
of couse you would need some way to preserver the cliboards current contents |
VB5 had a clipboard object, so you could easily do some swapping to use your method. But, I believe it would be more work and more prone to failure.
Using the DC method is much more reliable, and only breaks in a few common cases, and the code is much smaller AND you dont have to deal with the clipboard.
Also, its nice to see you working on something that isnt designed to piss someone off, quan. Keep it up. _________________ There are 7 user(s) ignoring me right now. |
|
Back to top |
|
|
|