Mirage Source

Free ORPG making software.
It is currently Mon May 06, 2024 12:43 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Apr 07, 2009 9:03 pm 
Offline
Regular
User avatar

Joined: Mon Nov 24, 2008 8:05 pm
Posts: 39
Location: Denver, Colorado
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!

_________________
Image


Top
 Profile  
 
PostPosted: Tue Apr 07, 2009 10:09 pm 
Offline
Knowledgeable

Joined: Sun Jan 13, 2008 5:59 pm
Posts: 107
http://www.freevbcode.com/ShowCode.Asp?ID=1903
Three seconds on Google <3

Is this what you were wanting?


Top
 Profile  
 
PostPosted: Wed Apr 08, 2009 5:24 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
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.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
PostPosted: Wed Apr 08, 2009 12:05 pm 
Offline
Knowledgeable

Joined: Sun Jul 29, 2007 12:23 am
Posts: 199
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.


Top
 Profile  
 
PostPosted: Wed Apr 08, 2009 1:46 pm 
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.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group