Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Underline in menus?

Posted on 2001-06-20
11
Medium Priority
?
178 Views
Last Modified: 2010-05-02
Hello!
How do I make an area with dropdownmenus, ie. like the menu in VB - File Edit View..... etc.

All these menucaptions is placed in a sort of 3D frame, but i cant place a frame up there !

Take a look at this screendump here: http://bobstar.subnet.dk/_76933.html

Hope you can follow me :O)

Regardz
Janus
0
Comment
Question by:Janus007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +4
11 Comments
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 6209859
In the menu caption add the & character

menu1.Caption = "&View",

menu2.Caption = "View && Edit"
0
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 6209865
or menu1.Caption = "-"

Or maybe i guess wrong for what you want.
0
 
LVL 5

Expert Comment

by:GeoffKell
ID: 6209929
Use the menu editor inside VB. It's a bit of a pain to use but quite easy once you get used to it. Best to read about it in help.

The & character (as stated above) is used to indicate the keyboard shortcut.

Regards
GK
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:GeoffKell
ID: 6209933
I should have mentioned that you call it up from the VB Tools menu (Menu Editor) or via Control-E.

GK
0
 
LVL 15

Expert Comment

by:ameba
ID: 6210046
With VB menus, you can have that 'Frame' effect. You can create 3D line under the menus:
1. by adding Toolbar control (Microsoft Windows Common Controls)

or
2. draw line or use 2 Line controls on your form:

' Form1, create menu, add 2 Line controls
Option Explicit

Private Sub Form_Load()
    With Line1
        .X1 = 0
        .X2 = 20000
        .Y1 = 0
        .Y2 = 0
        .BorderColor = vb3DShadow
    End With
    With Line2
        .X1 = 0
        .X2 = 20000
        .Y1 = 1 * Screen.TwipsPerPixelY
        .Y2 = 1 * Screen.TwipsPerPixelY
        .BorderColor = vb3DHighlight
    End With
End Sub

Note:
Please, do not 'accept my comment as answer' if it is not for A grade.
0
 
LVL 15

Accepted Solution

by:
ameba earned 200 total points
ID: 6210049
>With VB menus, you can have that 'Frame' effect
should be:
With VB menus, you CANNOT have that 'Frame' effect
0
 
LVL 4

Expert Comment

by:amit_panjwani
ID: 6210697
why dont you use coolbar instead ?
coolbar coupled with Toolbar ( buttons with menus give you very much the same effect)

0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6211239
After you get the underlined items using the "&" prefix on the letter/number of your choice, you may notice that Win2000 won't display it!

Also, it turns out that Win2000 has decided that if you use the mouse, you don't need the keyboard shortcut, so it won't display it until you press the Alt key.
0
 

Expert Comment

by:nomulap
ID: 6211385
Janus,

Have you ever used Menu Editor in VB?
0
 

Author Comment

by:Janus007
ID: 6212465
0
 

Author Comment

by:Janus007
ID: 6213364
well it seems like i found out by myself :O)

http://www.vbaccelerator.com/ has an excellent ComCtl32 - i will use that!

I thank all of you for your postings!

Kind regards
Janus007


ps: ameba nealy hitted my wish, so therefore......
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question