The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: jissé on March 08, 2006, 03:50:17 PM

Title: Question about SEPARATOR in menu
Post by: jissé on March 08, 2006, 03:50:17 PM
Hello ! Sorry for my so bad english...

I want to build a little menu with 4 item but I need to separate the 3th and the 4th with a "SEPARATOR".
Is it possible to do this with RadAsm ? I'm searching since a long time...
If you know a solution... Please help me !

Thank you

Title: Re: Question about SEPARATOR in menu
Post by: Shantanu Gadgil on March 08, 2006, 06:00:30 PM
use the menuitem's caption as "-" (single hyphen)
No need to give it a name or an ID !!!
Title: Re: Question about SEPARATOR in menu
Post by: Mincho Georgiev on March 08, 2006, 07:51:36 PM
QuoteNo need to give it a name or an ID !!!
:naughty: Nope.
Actually MENUITEM "",0 is the separator, which means that you have EMPTY name and NULL ID. It can't be done if you dont have them at all!

jissé, you can do it like that:

#define MAINMENU 100 //optional ,you can use just the string "MAINMENU" instead of const. ID, but i prefer this way
#define IDM_ONE 101
#define IDM_TWO 102
#define IDM_THREE 103
#define IDM_FOUR 104

MAINMENU MENU
{
   POPUP "&Main Popup"
   {
        MENUITEM "&One",IDM_ONE.
        MENUITEM "&Two",IDM_TWO
        MENUITEM "",0
        MENUITEM "&Three",IDM_THREE
        MENUITEM "&Four",IDM_FOUR
   }
}
Title: Re: Question about SEPARATOR in menu
Post by: Shantanu Gadgil on March 08, 2006, 08:08:41 PM
This _IS_ inside the RADASM support forum...so assuming editing via RadASM's menu editor...  :P

Regarding this:
MENUITEM "",0

if directly editing the .RC file
try:
MENUITEM SEPARATOR

(bear in mind keep the menu resource as MENU and NOT MENUEX for "MENUITEM SEPARATOR")

for MENUEX the "MENUITEM,,..." thing will need to be done.
Title: Re: Question about SEPARATOR in menu
Post by: jissé on March 08, 2006, 10:48:41 PM

Nice !

Thank you for your help !

Have a good day shaka_zulu and shantanu_gadgil !