| Mirage Source http://web.miragesource.net/forums/ |
|
| VB6 - Transparent Picture Box - How? http://web.miragesource.net/forums/viewtopic.php?f=143&t=5394 |
Page 1 of 1 |
| Author: | Vortigem [ Tue Apr 07, 2009 9:03 pm ] |
| Post subject: | VB6 - Transparent Picture Box - How? |
In a previous post I was trying to figure out how to display a picture box as transparent. Several of you shared a few ideas with me (thank you very much) though I'm still trying to make it work. In game, I have a picture box window that contains some command buttons and I would like to make the picture box itself transparent so players can only see the command buttons. I am told the best way to do this is to make the picture box a solid color and use a code to make that specific color transparent. However, through my searching I haven't been able to find the proper code or guide for doing this (and I'm still familiarizing with VB6). Could anyone please lend a hand with what code I can use or an alternate method to accomplish what I am trying to do? Thank you! |
|
| Author: | KruSuPhy [ Tue Apr 07, 2009 10:09 pm ] |
| Post subject: | Re: VB6 - Transparent Picture Box - How? |
http://www.freevbcode.com/ShowCode.Asp?ID=1903 Three seconds on Google <3 Is this what you were wanting? |
|
| Author: | Nean [ Wed Apr 08, 2009 5:24 am ] |
| Post subject: | Re: VB6 - Transparent Picture Box - How? |
Is the picture box necessary? Copy the command buttons, and then delete the picture box, and then paste the command buttons where the picture box was... Simple as that. |
|
| Author: | Beres [ Wed Apr 08, 2009 12:05 pm ] |
| Post subject: | Re: VB6 - Transparent Picture Box - How? |
When I read his post, I seen "In Game" so I am guessing he wants to place a transparent picture box over the game screen, put buttons in it so the button appear on the screen.. Maybe I am wrong. |
|
| Author: | Matt [ Wed Apr 08, 2009 1:46 pm ] |
| Post subject: | Re: VB6 - Transparent Picture Box - How? |
Beres wrote: When I read his post, I seen "In Game" so I am guessing he wants to place a transparent picture box over the game screen, put buttons in it so the button appear on the screen.. Maybe I am wrong. I don't think it will work. If I'm not mistaken, it'll happen the same way as if you tried to put a transparent richtextbox over the game screen. It'll fall behind the graphics being blit. Either way, what Nean said would be his best bet. Less stress on the client and if he pastes the controls onto the picscreen (or where ever he wants it), it'll do exactly what he wants. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|