473,725 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gray a disabled menu item???

Hi gurus,
I have managed to have a menu item initially disabled and then enable
at run time in my MFC application in Visual C++ 6 as explained in this
thread (thanks!):
http://groups.google.it/groups?q=ena...sbbsa05&rnum=1

But I would also like the initially disabled menu item to be grayed.
I tried setting the grayed box in the properties of the menu item, but
that way the menu item won't be enabled at run time.

I'm sure there is a very simple way to do it, butI have no idea.
Does anybody know how?

Thank you very much,
Ste
Jul 19 '05 #1
3 6010
WW
madder10 wrote:
Hi gurus,
I have managed to have a menu item initially disabled and then enable
at run time in my MFC application in Visual C++ 6 as explained in this
thread (thanks!):


http://www.slack.net/~shiva/welcome.txt

--
WW aka Attila
Jul 19 '05 #2
"madder10" <ma******@liber o.it> wrote...
I have managed to have a menu item initially disabled and then enable
at run time in my MFC application [...]

But I would also like the initially disabled menu item to be grayed. [...]


You're in a wrong newsgroup. Try microsoft.publi c.vc.mfc.

Victor
Jul 19 '05 #3
On 5 Oct 2003 05:57:26 -0700, ma******@libero .it (madder10) wrote:
Hi gurus,
I have managed to have a menu item initially disabled and then enable
at run time in my MFC application in Visual C++ 6 as explained in this
thread (thanks!):
http://groups.google.it/groups?q=ena...sbbsa05&rnum=1


The thread you quote was posted to microsoft.publi c.vc.language. Why
would you post this question here instead of a group that has already
proven that it can answer such queries?

--
Greg Schmidt (gr***@trawna.c om)
Trawna Publications (http://www.trawna.com/)
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1051
by: Carl Gilbert | last post by:
Hi I have recently been having trouble with the edit items in both the context menu and edit menu in vs.net designer. On the context menu, the only items that are not disabled are 'View code' and 'Change name and text properties'. On the edit drop down only the 'Find and replace' menu item is enabled. This sometimes resolves itself when I close the form and re-open or close VS
2
3892
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it is a server problem but was told it is not possible, therefore assuming it is a client script problem? the script works last time...
0
1394
by: Dana Epp | last post by:
I have a ToolBarButton that when I set it to disabled (button.Enabled = false;) causes a really ugly gray masking effect to take place. This is normal and the intended way of the button, but I would like to clean it up. Instead of using the gray mask, I want to use my own grayscaled high quality image. I thought by simply setting button.ImageIndex = new_num; (where new_num is the index of the grayscale image) I could do this. But alas, that...
13
3905
by: KMiller | last post by:
I would like to control entry into one or more of the tabs > I have set up on my Tab control based on set rules. Does > anyone know how to grey-out the text so that a user will > see that they do not have access to that particular tab? > > I tried setting the enabled = false for the given tab, but > it only seems to work in the form assembly section (that > is, if I do it after the form is loaded through a > function, it doesn't seem...
0
3307
by: jpan | last post by:
I'm using Visual Web Developer 2005 Express edition. Trying to generate resources for a page, but the "Generate Local Resource" menu item is always grayed out (disabled). I have the desired page open in design view and from what I understand, it's all that's required to use that tool. Thanks in advance!
3
1172
by: fred.dixon | last post by:
i have a simple rtfbox with a couple text boxes, i want to paste some rtf text into the rtfbox. I added a rtf box to a blank form and tested that a rtf box handles a paste automatically. it does. once i add a menu bar the rtfbox no longer accepts pasted text. it took me a bit to fgure this out. now i want to find out why and how to fix it. i would like to add a menubar.
1
1688
by: trojnfn | last post by:
I have a pulldown menu that contains five options, and ten input fields. Depending on which option is selected, the field(s) will either be enabled or disabled. I am able to use javascript to do this with radio buttons, but I do not know how to do it with the pulldowns. I am new to javascript and trying to learn as I go along. Any help would be greatly appreciated. Thanks
5
2257
by: MC | last post by:
Hi, I have been looking around for a way to apply the filter that grays out a form or div. I found some examples but the code is pretty complex. Any simple ways to gray that out so I can highlight another form or div? Thanks, Mica PS. I looked at several of the 'easy' examples and they did not work when I applied them.
2
4193
by: dharmbhav | last post by:
Hello all, I am trying to develop a roll-over menu effect on a page. It works fine with all other browsers except IE6. Can some one please help me? HTML: <div class="menu-item-wrap"> <a href="#" class="menu-item-text"> Menu1 </a>
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.