flat assembler
Message board for the users of flat assembler.

Index > Windows > Grayed menu item in Fresh IDE

Author
Thread Post new topic Reply to topic
f0x1er



Joined: 01 Feb 2005
Posts: 12
Location: Russia, Staryy Oskol
f0x1er
How to make grayed menu item in Fresh using macroses and procs from gui.asm and gui.inc?
Post 05 Feb 2005, 14:03
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
f0x1er wrote:
How to make grayed menu item in Fresh using macroses and procs from gui.asm and gui.inc?


Well, unfortunately in current version of gui.asm (CreateCoolMenu) you can't make menu item grayed initially in design-time. You have to use EnableMenuItem function with MF_GRAYED.

It is design flaw that will be fixed in one of the next versions.

Regards.

btw: If you need to disable/enable some menu items and/or other controls depending on the state of the program - check AM_ONIDLE message - it was introduced especially for that purpose.
Post 09 Feb 2005, 20:15
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar.

Powered by rwasa.