| View previous topic :: View next topic |
| Author |
Message |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 10:52 am Post subject: [Question] Visual Basic 6 |
|
|
Right So Im Creating Yet Another Trainer (Oh No Another Kickme93 Trainer!)
I Was Wondering... How Do You Make Them Tool Box Things At The Top You Know Like In IE Or Any Other Program You Click File And It Has A Menu Appear. Scroll Down Menu Or Somthing Like That, Im Not Sure About The Name.
Anyways Back To My Question. How Do I Make One Of Them?
Thanks
Kickme93
I Will +Rep You
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 11:25 am Post subject: |
|
|
vb6:
Right click form and click menu editor
c/c++:
Create resource and add to the window
.NET:
Use MenuStrip
These are the languages I know how to add a menu. I believe delphi has a control for the menu, but I'm not too sure.
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 11:26 am Post subject: |
|
|
| How Do I Use The Menu Editor In Vb6?
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 11:36 am Post subject: |
|
|
| You enter the caption and give it a name. Say I want to only have File and under that is Open and Exit. I would first put in File for caption and give it a name like mnuFile. In the listbox below you should see the caption. Click under File so a blank line is selected. Then put Open for caption then give it a name like mnuOpen. Then press insert. Now, click Open in the listbox and press the right arrow. Do the same for Exit as you did for Open. If there are no blank lines, press the insert button. Hope this was clear.
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 11:41 am Post subject: |
|
|
Im Completly Lost From That..
So First I Enter Something In Caption For Example Hacks. Then What?
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 11:53 am Post subject: |
|
|
Made .wmv to show what I wrote.
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 11:55 am Post subject: |
|
|
Thanks , This Will Be Dead Helpful!
Now Then..
How Do I Add Little Submenus Into That?
How Do I Program Exit To Close The Trainer?
Will I Be Programming It The Same Way With Adding Hacks?
How Do I Add More Menu's (File, Edit, View Etc)
How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Thu Nov 15, 2007 3:04 pm Post subject: |
|
|
| kickme93 wrote: | Thanks , This Will Be Dead Helpful!
Now Then..
How Do I Add Little Submenus Into That?
How Do I Program Exit To Close The Trainer?
Will I Be Programming It The Same Way With Adding Hacks?
How Do I Add More Menu's (File, Edit, View Etc)
How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games  |
How Do I Program Exit To Close The Trainer?
How Do I Make It Load Up Forms (Form 1, Form 2 Etc) Making It Have Different Games
How Do I Add Little Submenus Into That?
Click the -> button on the menu.[/code]
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 3:20 pm Post subject: |
|
|
| Quote: |
How Do I Add More Menu's (File, Edit, View Etc)
|
To add more you just add the caption and name, but it should not have any dots. So if you want File, Edit, and About it would look like this in the listview
| Code: |
File
''''Something
Edit
''''Something
About
''''Something
|
If you want something to have a sub menu, it would look something like this
| Code: |
File
''''Something
'''''''''Something2
|
This would mean click the right arrow two times for something2.
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 3:30 pm Post subject: |
|
|
| Im Lost... Explain With A Little Bit More Detail Please?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Nov 15, 2007 4:14 pm Post subject: |
|
|
| kickme93 wrote: | | Im Lost... Explain With A Little Bit More Detail Please? |
Killer explained it fine. Just use the shift to right button in the menu editor twice to move it into a menu items sub menu.
| Description: |
|
| Filesize: |
11 KB |
| Viewed: |
5890 Time(s) |

|
_________________
- Retired. |
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 5:15 pm Post subject: |
|
|
I See It Now! Thanks!
Any Possible Explanation On The Others (Sorry Im Rubbish With Codes And Programming But Im Learning!)
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 6:09 pm Post subject: |
|
|
To show a new form, you can use set.
Depending if you want it so you can play with the parent form with the other form open, you wouldn't add vbModal. If you want to restrict it to only play time with one form, you add vbModal to show
| Code: |
f.Show
------------------
f.Show vbModal
|
As wiccaan said, you need to unload it. You can do this with the terminate event. I usually do it on the form that closes instead of unloading them all at the same time. If you have vbModal with show, you can put unload after that line
| Code: |
f.show vbModal
Unload f
|
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Nov 15, 2007 8:23 pm Post subject: |
|
|
When you use vbModal on a form that form takes control (inherits the handle) and the other form that called it will stop what it's doing until the loaded form is done. With that, if you are using Set to create the new form, you need to set it to nothing when you are done with it:
| Code: | Set f = New Form2
Form2.Show vbModal, Form1
Set f = Nothing |
The form sub Form_Unload will be called in form2 when you close it normally so you do not need to unload it yourself. If you don't use Set blah = Nothing, you are leaving the memory allocated to a blank instance of the form which will / can cause memory leaks.
_________________
- Retired. |
|
| Back to top |
|
 |
|