The MASM Forum Archive 2004 to 2012

Project Support Forums => GoAsm Assembler and Tools => Topic started by: 1rDirEctoALgran0 on August 25, 2006, 07:39:31 AM

Title: Integrated menu flag constants in GoRC
Post by: 1rDirEctoALgran0 on August 25, 2006, 07:39:31 AM
Why MFS_GRAYED = MF_GRAYED = GRAYED = state value 3h (disables and greys the menu item) in GoRC
and MFS_GRAYED = MF_GRAYED = GRAYED = 1h for Microsoft ?

Why MFS_DISABLED = MF_DISABLED = DISABLED = state value 3h (same as above) in GoRC
and MFS_DISABLED = MF_DISABLED = DISABLED = 2h for Microsoft ?

Why use INACTIVE = state value 2 (menu item not greyed but cannot be selected) in GoRC
and INACTIVE is unknown in MSDN ?

I think Jeremy reinvent some constant values for an hypothetical improvement. :dazzled:
Please keep it simple !
May be I am wrong...

What is your opinion ?

Patrick
Title: Re: Integrated menu flag constants in GoRC
Post by: jorgon on August 28, 2006, 02:40:52 PM
Hi Patrick

My notes (which I wrote when I developed GoRC) say that GoRC codes menuitem GRAYED as 3h for both MENU and MENUEX, whereas Microsoft RC codes 3h for MENUEX and 1h for MENU.

At the time this seemed to make sense, bearing in mind that:-
1. MENUEX merely adds a helpID to MENU and therefore in theory there should be no difference in the coding of GRAYED between them
2. GRAYED means the same as DISABLED
3. INACTIVE is not documented in the SDK (does it still exist?)
Title: Re: Integrated menu flag constants in GoRC
Post by: 1rDirEctoALgran0 on August 28, 2006, 08:22:57 PM
Hi Jeremy,

About INACTIVE,
"INACTIVE = state value 2 (menu item not greyed but cannot be selected)"
is an excerpt of GoRC help. The example below is accepted by GoRC :

222 MENU
{
     MENUITEM "&Soup", 100
     MENUITEM "S&alad", 101
     POPUP "^Entree"
     {
          MENUITEM "&Fish", 200, MFS_INACTIVE   // 1st name
          MENUITEM "&Chicken", 201, MF_INACTIVE // 2nd name
          MENUITEM "&Salad", 202, INACTIVE      // 3rd name
          POPUP "&Beef"
          {
               MENUITEM "&Steak", 301
               MENUITEM "&Prime Rib", 302
          }
     }
     MENUITEM "&Dessert", 103
}

Best regards. :wink

Patrick
Title: Re: Integrated menu flag constants in GoRC
Post by: jorgon on August 29, 2006, 08:23:13 AM
Touché