Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > divider line in menus


Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-2005, 10:01 AM
TheSquire TheSquire is offline
Freshman
 
Join Date: Feb 2005
Posts: 45
Default divider line in menus


Hey there,

I have a sys tray icon with right-click menu, and I was wondering if I can put up some horizontal divider lines between some menu items, to make it look a little cleaner, or maybe just a space or something.

Any ideas? I searched but couldn't find anything (anyone know how to combine keywords with AND? For some reason it doesn't work in search...or is it just me?)

Christoph
Reply With Quote
  #2  
Old 08-05-2005, 11:12 AM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,726
Default

If you are using a VB menu, then use a hypen as the caption for a separator. If you are using AppendMenu API then use the MF_SEPARATOR constant.
__________________
Quis custodiet ipsos custodues.
Reply With Quote
  #3  
Old 08-05-2005, 11:14 AM
TheSquire TheSquire is offline
Freshman
 
Join Date: Feb 2005
Posts: 45
Default

I see, and just put anything in the name of the menu, since I won't be using it? It won't be selectable either, will it?
Reply With Quote
  #4  
Old 08-05-2005, 11:18 AM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,726
Default

Yes, any control name will do. I usually use mnuSep1, mnuSep2... mnuSepX. And no, they can't be selected.
__________________
Quis custodiet ipsos custodues.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->