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

x
?
Solved

Submenu highligh when hovered

Posted on 2014-01-18
7
Medium Priority
?
231 Views
Last Modified: 2014-01-23
The vb6 menu editor would not produce results as show in the attachment.

The attachment is the screen shot of submenu being highlighted when mouse is hovered on it

How was it created?

Highlight-On-Submenu.docx
0
Comment
Question by:rohaya
[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
  • 4
  • 3
7 Comments
 
LVL 43

Expert Comment

by:pcelba
ID: 39790971
Windows menus are almost always handled by Win32 API calls. You may call these Win32 functions from VB6 directly. Code samples are e.g. here: http://www.ex-designz.net/apicat.asp?apicat=34

The function of your interest cold be the TrackPopupMenu.

Another useful resource is e.g. here: http://visualbasic.about.com/od/usevb6/l/aa103002a.htm
or here: http://www.developerfusion.com/article/84350/dynamic-menus-amp-the-menu-api/
and here: http://patorjk.com/programming/vb6examples.htm
0
 

Author Comment

by:rohaya
ID: 39791066
Thanks for the references.

I'm not going for sofisticated api programming just to attain the not so crucial results.

It will just end up in crashes...

I would prefer to buy any third party ocx or dll if they are available

Thank you
0
 
LVL 43

Expert Comment

by:pcelba
ID: 39791176
Win32 API call does not mean sophisticated programming. It is just a simple way how to use the function implemented in OS but not available in your development tool.

Win32 API calls do not result in crashes if you provide correct parameters. OTOH,  OCX controls stability is not so good in many cases...

Above links contain many menu handling code samples so I believe it should be very easy to test and use them.

The menu without item highlighting seems to be a bug. What VB6 Service Pack do you use? And why do you stay with VB6? VB.NET is rather different but more modern development tool.
0
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 

Author Comment

by:rohaya
ID: 39791510
I'm using vb6 professional sp6. I do programming during my free time. I could not upgrade to .net because I have 10 years of code to upgrade.

I'm doing well with vb6, with controls such as igrid and chilkat.

Back to the menu highlighting. The sample from author dos, crashes before anything.

If you could help me to get one of the samples running, I would appreciate it. I might pay you if you have paypal account.

Thank you
0
 

Accepted Solution

by:
rohaya earned 0 total points
ID: 39791766
0
 
LVL 43

Expert Comment

by:pcelba
ID: 39791850
Great! Please mark your post as the solution.
0
 

Author Closing Comment

by:rohaya
ID: 39802553
Found solution
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

715 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