flat assembler
Message board for the users of flat assembler.

Index > Windows > Resource Drama...

Author
Thread Post new topic Reply to topic
kohlrak



Joined: 21 Jul 2006
Posts: 1413
Location: Uncle Sam's Pad
kohlrak 22 Apr 2007, 00:41
Personally, i wish i didn't have to use a resource file for this, since i havn't a clue how to use those ugly looking things, but i can't figure out how to make a menu item otherwise. Now, i tried to edit this resource section, but apparently i don't know what i'm doing... Something's generating an error message here (so it won't assemble). Could some one take a look at it for me..?

Code:
section '.rsrc' resource data readable
     directory RT_MENU,appMenu

     resource  appMenu,\
               30,LANG_ENGLISH,menuMain

     menu menuMain
          menuitem  'MenuBar A',0x10,MFR_POPUP
          menuitem       'MenuBar A -> MenuItem A',0x11,MFT_STRING
          menuitem       'MenuBar A -> MenuItem B',0x12,MFT_STRING
                         menuseparator
          menuitem       'MenuBar A -> MenuItem C',0x13,MFR_END
          menuitem       'MenuBar A -> MenuItem D',0x14,MFR_END
          menuitem  'MenuBar B',0x020,MFR_POPUP
          menuitem       'MenuBar B -> MenuItem A',0x21,MFR_END
          menuitem       'MenuBar B -> MenuItem B',0x22,MFR_END
          menuitem  'MenuBar C (Without Item)',0x30,MFR_END       


Thanks in advance.

EDIT: Never mind, sorted out... I hate these unexplained naming conventions. Oh well, at least i have this one working. Not sure how you branch of menu items, but that's not important at this point.
Post 22 Apr 2007, 00:41
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.