Mirage Source
About Custom Menu - Printable Version

+- Mirage Source (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: Programming (https://mirage-engine.uk/forums/forumdisplay.php?fid=24)
+----- Forum: Visual Basic 6 (https://mirage-engine.uk/forums/forumdisplay.php?fid=32)
+----- Thread: About Custom Menu (/showthread.php?tid=2785)



About Custom Menu - ryonn - 07-05-2009

Hi,

I'm new to this Mirage.
I would like to know, how can I setup my own custom menu window, so that
1. There is no menu bar/title bar (the one with the 'X' button)
2. There is a button inside the custom menu window, which if clicked will close the custom menu window (itself)

Please help
R


Re: About Custom Menu - Rian - 07-05-2009

To make the bar containing the X button disapear, click on the form, and in the properties change the value for "Control Box" from true to false.

To make your own X button, just make a picture box or even a label that just says "X" or something. Then in the click code put something like

Code:
End
or
Code:
Unload Me



Re: About Custom Menu - ryonn - 07-05-2009

Mine gives error when the ControlBox is mentioned.
So, I try the BorderStyle = 0, and there.. no border anymore.. including the top menu bar.

Could you please let me know more about how to make the click code?


Re: About Custom Menu - Rian - 08-05-2009

Double click the control, and it'll bring up the _Click code of the control.

Say you have a picture box called picExit. You double click the picture box, and the code will come up with something like

Code:
Private Sub picExit_Click()

End Sub
Then in the picExit_Click sub, you could put something like this

Code:
Private Sub picExit_Click()
    Unload Me
End Sub