home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!math.fu-berlin.de!umn.edu!csus.edu!decwrl!sdd.hp.com!cs.utexas.edu!rutgers!netnews.upenn.edu!msuinfo!eecae.ee.msu.edu!griffin
- From: griffin@eecae.msu.edu (Dan Griffin)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Disabling Menu Items Under GadTools
- Message-ID: <1992Aug30.091742.10957@msuinfo.cl.msu.edu>
- Date: 30 Aug 92 09:17:42 GMT
- Sender: news@msuinfo.cl.msu.edu
- Organization: Michigan State University, College of Engineering, East Lansing
- Lines: 20
- Originator: griffin@eecae.ee.msu.edu
-
-
- For some reason I can't seem to get menu items disabled using GadTools doing:
-
- ClearMenuStrip( Wnd );
- menu[14].nm_Flags |= NM_ITEMDISABLED;
- menu[15].nm_Flags |= NM_ITEMDISABLED;
- SetMenuStrip( Wnd, Menus );
-
- I plan to reenable them like this:
-
- ClearMenuStrip( Wnd );
- menu[14].nm_Flags &= ~NM_ITEMDISABLED;
- menu[15].nm_Flags &= ~NM_ITEMDISABLED;
- ResetMenuStrip( Wnd, Menus );
-
- if I can get them turned off, first. I know that NM_ITEMDISABLED sets a
- bit (0x0010) so the above seems logical to me. What am I doing wrong?
- --
- Dan Griffin
- griffin@egr.msu.edu
-