Computing.Net > Forums > Programming > Visual Basic: Menues

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Visual Basic: Menues

Reply to Message Icon

Original Message
Name: gooter005
Date: June 26, 2007 at 18:47:45 Pacific
Subject: Visual Basic: Menues
OS: Windows Xp
CPU/Ram: 1.7 GB
Model/Manufacturer: sr1730z Persario
Comment:

Is there a way to caputuemenues from other programs and put them in your program. Like the way apple does theres. Is it posible for me to do this in visual basic. If so could some one help out on how. I use VB 6.0 still because its the one i know. I dont like .net and vista.

Edog


Report Offensive Message For Removal


Response Number 1
Name: StuartS
Date: June 27, 2007 at 03:38:18 Pacific
Reply: (edit)

No, you cannot. VB6 menus have to be written within the source code.

Stuart


Report Offensive Follow Up For Removal

Response Number 2
Name: pingy
Date: July 2, 2007 at 11:46:25 Pacific
Reply: (edit)

The way standard menu's look is contoled by Windows.
Why?
Because we want an user interface that is recognized by anyone.
If you want something else then you'll have to build your own components.
Next question will be: is it worth the time?
Personally I like component building but it's quite another ball game. Building a single component may take the same time as building a comple application. Just think of what a menu actually is:
It's a list,
specifically a drop-down list of strings,
Since it's not a common list you'll have to calculate the the length of the list and the positions of the strings.
You can click on the strings and then generate an event but...
Strings/items can be disabled,
There are separators (which should be disabled items)
There can be any level of submenu's
You need to draw an arrow or something like that to indicate the submenu
You have to supply a backgroundcolour,
a font, but...
Also change the backgroundcolour if selected
Make visible (underscore?) what the shortcuts are,
intercept keypresses for them,
also Up, Down, Left, Right, Escape, Enter to navigate through the menu's
Make them reusable for other apps that you program.... and so on and so on.

If you just want menu's, stick to the windows style.

But then again: Personally I like component building... :-)


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software