flat assembler
Message board for the users of flat assembler.

Index > Windows > Resource: How to get tab in menu captions? (Solved)

Author
Thread Post new topic Reply to topic
Bodger



Joined: 16 Jan 2006
Posts: 7
Bodger
Greetings,

How or does the menuitem macro support displaying accelerator keys in the caption? I've tried the inline \t (like in a standard rc file), but this obviously doesn't work.

Everything else I need at the moment is working, including the actual accelerators. I just need this to finish off my mini-app.

Thanks in advance,
Bodger.

_________________
-- quidquid latine dictum sit altum viditur --


Last edited by Bodger on 21 Jan 2006, 00:00; edited 1 time in total
Post 20 Jan 2006, 04:23
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
AFAIK menu captions cannot contain tabs
Post 20 Jan 2006, 21:45
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7752
Location: Kraków, Poland
Tomasz Grysztar
It can. In FASMW source it is done the classic way:
Code:
  _ equ ,09h,

  menu main_menu
       menuitem '&File',0,MFR_POPUP
                menuitem '&New' _ 'Ctrl+N',IDM_NEW
                menuitem '&Open...' _ 'Ctrl+O',IDM_OPEN
                menuitem '&Save' _ 'Ctrl+S',IDM_SAVE
                menuitem 'Save &as...',IDM_SAVEAS
                menuseparator
                menuitem 'E&xit' _ 'Alt+X',IDM_EXIT,MFR_END    

But you can do it also like this:
Code:
                menuitem <'&New',9,'Ctrl+N'>,IDM_NEW    
Post 20 Jan 2006, 21:48
View user's profile Send private message Visit poster's website Reply with quote
Bodger



Joined: 16 Jan 2006
Posts: 7
Bodger
Many, many thanks.

Yes, that construction makes sense. I'm surprised it didn't occur to me.

FASM is looking better and better all the time!

Right, I'm back to coding then,
Bodger.

_________________
-- quidquid latine dictum sit altum viditur --
Post 20 Jan 2006, 23:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.