Solved

Submenu highligh when hovered

Posted on 2014-01-18
7
225 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 149
VB6 Compile Compatibility Issue 4 90
PHP question(s) about order of output 9 57
T-SQL:  Sigh---Boy, this is fun.... 12 33
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

895 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

12 Experts available now in Live!

Get 1:1 Help Now