| Mirage Source http://web.miragesource.net/forums/ |
|
| ?Basic? VB6 UI Edit http://web.miragesource.net/forums/viewtopic.php?f=201&t=5373 |
Page 1 of 1 |
| Author: | Vortigem [ Sun Apr 05, 2009 7:42 pm ] |
| Post subject: | ?Basic? VB6 UI Edit |
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? |
|
| Author: | Asrrin29 [ Sun Apr 05, 2009 7:45 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
the buttons are located in a picBox. You can either set the picture in the picBox to match the background and set it's border to 0, or you can simply take them out of the picBox and delete it. |
|
| Author: | Nean [ Sun Apr 05, 2009 7:51 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
You could do PicBox.Visible = False or something in the properties, but that might turn the buttons invisible too. |
|
| Author: | Matt [ Sun Apr 05, 2009 9:16 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
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. |
|
| Author: | Vortigem [ Sun Apr 05, 2009 9:28 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
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! |
|
| Author: | Asrrin29 [ Sun Apr 05, 2009 9:36 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
set the border = 0 or false, forgot exactly which one. |
|
| Author: | Egon [ Sun Apr 05, 2009 9:37 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
Simply use a picture box instead of a command button. Other then Code: Private Sub Command1_Click() MsgBox "Woo" End Sub Use Code: Private Sub Picture1_Click()
MsgBox "Woo" End Sub |
|
| Author: | Vortigem [ Sun Apr 05, 2009 10:09 pm ] |
| Post subject: | Re: ?Basic? VB6 UI Edit |
Egon wrote: Simply use a picture box instead of a command button. Other then Code: Private Sub Command1_Click() MsgBox "Woo" End Sub Use Code: Private Sub Picture1_Click() MsgBox "Woo" End Sub 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 1. Create a UserControl. 2. Set it's ControlContainer = True and BackStyle = Transparent Not sure if its in the correct direction, nor how to create a UserControl. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|