![]() |
?Basic? VB6 UI Edit - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: ?Basic? VB6 UI Edit (/showthread.php?tid=2687) |
?Basic? VB6 UI Edit - Vortigem - 05-04-2009 Using the Cerberus Engine as an example, is it possible and if so - how can I go about doing this? ![]() Above is a basic VB window in game. I would like to be able to turn the background (A) invisible while keeping the buttons (B) visible, making the window look a bit more like this in game: ![]() Any Ideas? Re: ?Basic? VB6 UI Edit - Nean - 05-04-2009 You could do PicBox.Visible = False or something in the properties, but that might turn the buttons invisible too. Re: ?Basic? VB6 UI Edit - Matt - 05-04-2009 There's code that will remove any pixel matching a certain color from a picbox. You could simply do this and set the picbox's color to the one you set to be removed. Re: ?Basic? VB6 UI Edit - Vortigem - 05-04-2009 Matt Wrote:There's code that will remove any pixel matching a certain color from a picbox. You could simply do this and set the picbox's color to the one you set to be removed. This might do the trick, I'll do some looking around and see how I can manage this. Meanwhile, I have another issue (being that I'm still familiarizing with VB6) ![]() In the above picture, I'm trying to make a clickable inventory icon of a simple backpack, however it still has the 'button impression' around it. How can I narrow this down to simply the image? Thank you very much! Re: ?Basic? VB6 UI Edit - Egon - 05-04-2009 Simply use a picture box instead of a command button. Other then Code: Private Sub Command1_Click() Code: Private Sub Picture1_Click() Re: ?Basic? VB6 UI Edit - Vortigem - 05-04-2009 Egon Wrote:Simply use a picture box instead of a command button. Woot, that was very simple! Thank you ![]() Now if I can just figure out how to make the main box transparent. Through a little search, I came by this: Quote:using a transparent usercontrol Not sure if its in the correct direction, nor how to create a UserControl. |