News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Integrated menu flag constants in GoRC

Started by 1rDirEctoALgran0, August 25, 2006, 07:39:31 AM

Previous topic - Next topic

1rDirEctoALgran0

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

jorgon

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?)
Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)

1rDirEctoALgran0

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

jorgon

Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)