Avatar of mdcarr
mdcarr

asked on 

When using SetMenuItemInfo how do I only disable the menuitems caption and not the icon?

First, thank you for your time.

I have inherited a piece of vb6 code that manipulates the menuitems using the apis GetMenuItemInfo and SetMenuItemInfo.  There is a property in this code that allows a menuitem to be enabled and disabled.  After setting a menuitem to be disabled both the associated icon and caption become grayed out.  This is actually the normal behavior.  However because of the complex icons that my application uses, the grayed out state of these icons looks horrible.  So I think it would be sufficient to just grey out the menuitems caption and leave the menuitems icon still looking enabled.  

So the question becomes, how do only greyout/disable the caption using these apis?

Thank you very much,
Michael Carr
Visual Basic Classic

Avatar of undefined
Last Comment
mdcarr
ASKER CERTIFIED SOLUTION
Avatar of TRobinJames
TRobinJames

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mdcarr
mdcarr

ASKER

Thank you very much for looking into this.  I figured it out.
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo