Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Submenu highligh when hovered

Posted on 2014-01-18
7
Medium Priority
?
232 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 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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…
Progress

963 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