Solved

Submenu highligh when hovered

Posted on 2014-01-18
7
224 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
  • 4
  • 3
7 Comments
 
LVL 41

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 41

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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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 41

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now