programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: [Activating a GRAYITEM]

From: Bob Nash <BNash_at_smud.org>
Date: Fri, 26 Sep 2003 13:33:51 -0700

Thanks Jeff! This did the trick:

: ENABLE-HELP-ITEM ( -- )
  HWND GetMenu M_HELP MF_BYCOMMAND MF_ENABLED OR EnableMenuItem DROP ;

-----Original Message-----
From: Jeffrey Massung [mailto:jma_at_mfire.com]
Sent: Friday, September 26, 2003 10:53 AM
To: sftalk_at_forth.com
Subject: [sftalk] Re: [Activating a GRAYITEM]

Try this:

\ hMenu is the handle of APP-MENU loaded
hMenu M_HELP MF_BYCOMMAND MF_ENABLED OR EnableMenuItem

Jeff

> Assuming I have a menu set up like this:

> MENU APP-MENU
> POPUP "Help"
> M_HELP GRAYITEM "Help"
> END-POPUP
> END-MENU

> and, assuming that there is an action defined for M_HELP in the =
APP-COMMANDS switch,
> how do I activate the GRAYITEM from within the application? I assume =
its a
> PostMessage to APP-MENU, but I am not sure of the message type.

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug=20
reports, please send email to support_at_forth.com
----------------------------------------------------------------------

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Fri Sep 26 2003 - 13:37:29 PDT

This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 03:04:31 PST