|
-
Dec 3rd, 2008, 06:42 PM
#1
Thread Starter
Lively Member
VB6 Menu Program
Hello!
I am definately newer to the VB world but have a little experience from a class I took a few years ago.
Anyways here's an idea of what I would like this program to do: Eliminate the use of windows desktop for my arcade cabinet.
I am currently building a classic stand up arcade unit which will play all old school console games as well as arcade classics.
Currently for the programs to run u have to shuffle around between different emulation programs and I don't want to make my company do that. I want to creat an easy to use menu system of which people can point, click, and be on their way.
So whats my request?
I need help creating this menu. Which I think is a simple task I just haven't a clue where to get some sort of guide that fits my specific need. Here's a step by step visual of what I want to happen from the second when someone clicks the program.
Program is clicked it opens a menu titled "Emu Menu". On this Emu Menu I want buttons which open yet another menu that is titled w/e the button was clicked:
[Nintendo] [Super Nintendo] [Gameboy] [Nintendo 64]
[Sega] [Playstation] [Arcade]
So lets say someone was to click Gameboy.
This opens another menu titled obviously "Gameboy".
Here, I want the buttons OR scroll menu to have executable links for the game. So if someone was to click Tetris in this menu it opens the file from C;/yadayada/tetris. Easy.
If I can just get a template I can fill in the blanks.
I don't know what else to say but if anyone has any clue as to what I want to do and need more information please email me at [email protected]
or reply here ill check daily thanks!
Justin
-
Dec 3rd, 2008, 11:52 PM
#2
Thread Starter
Lively Member
Re: VB6 Menu Program
Figured it out on my own! One problem, I can make .exe files execute with the Shell command, BUT .smc files will not!!!!!!
I have .smc files directly linked to my zsnes emulator so theres no dragging and dropping.
How do I open files that arent EXE?!
-
Dec 4th, 2008, 03:22 PM
#3
Re: VB6 Menu Program
Assuming that double-clicking on the files (in Explorer/My Computer/etc) does what you want, you use ShellExecute.
For information and examples, see the article How do I open a file/web-page in its default application? from our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page)
Note that you can also use ShellExecute for .exe files, so you don't need to have separate code for different file types.
-
Dec 4th, 2008, 04:16 PM
#4
Thread Starter
Lively Member
Re: VB6 Menu Program
Thanks figured it out and then some! This is great I would say this has been resolved!
-
Dec 4th, 2008, 09:05 PM
#5
Thread Starter
Lively Member
Re: VB6 Menu Program
Ok I'm nearing completion of all the basic effects I will require to load this into my cabinet.
Images within a button. Simple right? 2 ways to do it: I can either go to my properties section and add a picture or use the code
Command2.Picture = LoadPicture("c:\routehere")
Is there like a .Stretch command I can put here? or I don't even mind figuring up the dimensions of the button if I can manually resize my image that way.
Back to googling a solution!
Thanks
-
Dec 5th, 2008, 04:44 AM
#6
Re: VB6 Menu Program
There is nothing built in, but you could write code to do it... however, unless you have several hundred images, it would be easier to manually resize them in a paint program (which would also be likely to give better quality).
-
Dec 7th, 2008, 12:31 PM
#7
Thread Starter
Lively Member
Re: VB6 Menu Program
There's quite a few but i guess I can just resize in paint no biggie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|