flat assembler
Message board for the users of flat assembler.

Index > Windows > bug in fasm resource compiling?

Author
Thread Post new topic Reply to topic
iklin



Joined: 20 Mar 2004
Posts: 120
Location: Russia, Siberia
iklin 01 Sep 2004, 16:49
It seems there is a bug in fasm resource compiling:
menus flag MF_HELP processing.

If I tried in resource section
Code:
menuitem '&Help', 0, MFR_POPUP + MF_HELP + MFR_END    

it compiles but don't shows menu.

If I tried compile such menu with standalone resource compiler
and include it by 'from'
Code:
section '.rsrc' data readable resource from 'file.res'    

it works fine.

If there is no bug, what happens?

_________________
O, tempora! O, mores!
Post 01 Sep 2004, 16:49
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 01 Sep 2004, 17:16
Perhaps you mean the MFT_RIGHTJUSTIFY flag, standard "menuitem" macro doesn't have feature of setting type flags, but it can be easily modified:
Code:
macro menuitem string,id,resinfo,type,status
 { dd type+MFT_STRING,status+0,id
   dw resinfo
   du string,0
   align 4
   if resinfo and MFR_END <> 0
   menu_level = menu_level - 1
   end if
   if resinfo and MFR_POPUP <> 0
   menu_level = menu_level + 1
   dd 0
   end if
   if menu_level = 0
   menu_size
   end if }    

And with such version of this macro you can do it this way:
Code:
menuitem '&Help',0, MFR_POPUP + MFR_END,MFT_RIGHTJUSTIFY    
Post 01 Sep 2004, 17:16
View user's profile Send private message Visit poster's website Reply with quote
iklin



Joined: 20 Mar 2004
Posts: 120
Location: Russia, Siberia
iklin 02 Sep 2004, 04:32
Quote:

Perhaps you mean the MFT_RIGHTJUSTIFY flag


Yes. And now it works fine.

I think you can do this modified "menuitem" macro standard.
I like fasm for all-sufficient and maybe such macro will help somebody.
Post 02 Sep 2004, 04:32
View user's profile Send private message ICQ Number 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.