Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
?Basic? VB6 UI Edit
#1
Using the Cerberus Engine as an example, is it possible and if so - how can I go about doing this?

[Image: keyzzzzr.png]

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:

[Image: keyzzzz.png]

Any Ideas?
Reply
#2
You could do PicBox.Visible = False or something in the properties, but that might turn the buttons invisible too.
Reply
#3
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.
Reply
#4
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)
[Image: keyzzzz.png]

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!
Reply
#5
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
Reply
#6
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 Big Grin

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)