Mirage Source

Free ORPG making software.
It is currently Mon Dec 15, 2025 3:33 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: About Custom Menu
PostPosted: Thu May 07, 2009 4:54 am 
Offline
Newbie

Joined: Mon May 04, 2009 1:11 pm
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: About Custom Menu
PostPosted: Thu May 07, 2009 5:40 am 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: [email protected]
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

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
 Post subject: Re: About Custom Menu
PostPosted: Thu May 07, 2009 6:41 am 
Offline
Newbie

Joined: Mon May 04, 2009 1:11 pm
Posts: 2
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?


Top
 Profile  
 
 Post subject: Re: About Custom Menu
PostPosted: Fri May 08, 2009 7:04 pm 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: [email protected]
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

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group