| Mirage Source http://miragesource.net/forums/ |
|
| About Custom Menu http://miragesource.net/forums/viewtopic.php?f=143&t=5573 |
Page 1 of 1 |
| Author: | ryonn [ Thu May 07, 2009 4:54 am ] |
| Post subject: | About Custom Menu |
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 |
|
| Author: | Rian [ Thu May 07, 2009 5:40 am ] |
| Post subject: | Re: About Custom Menu |
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
|
|
| Author: | ryonn [ Thu May 07, 2009 6:41 am ] |
| Post subject: | Re: About Custom Menu |
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? |
|
| Author: | Rian [ Fri May 08, 2009 7:04 pm ] |
| Post subject: | Re: About Custom Menu |
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 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|