betz@runx.ips.oz (Andrew Betzis) (09/11/87)
Is there any way of displaying the AppendMenu() metacharacters (^ ! < / ( ) in a menu. :-) & thanks, andrew betzis ACSnet: betz@runx.ips.oz JANET: runx.ips.oz!betz@ukc ARPA: betz%runx.ips.oz@uunet.uu.net CSNET: betz@runx.ips.oz UUCP: {enea,hplabs,mcvax,prlb2,uunet,ubc-vision,ukc}!munnari!runx.ips.oz!betz
dwb@apple.UUCP (David W. Berry) (09/15/87)
In article <1108@runx.ips.oz> betz@runx.ips.oz (Andrew Betzis) writes: > > Is there any way of displaying the AppendMenu() metacharacters >(^ ! < / ( ) in a menu. In the original call to AppendMenu use a dummy string and then use SetItem to set the actual text. AppendMenu(mh, "\pFoo;Bar;dummy"); SetItem(mh, 3, "\p(!</("); Of course this makes it more difficult to get menu's from resources. -- David W. Berry dwb@well.uucp dwb@Delphi dwb@apple.com 293-0752@408.MaBell
drc@dbase.UUCP (Dennis Cohen) (09/15/87)
The most obvious way is to do an AppendMenu(menuHandle, 'xx') followed by an SetItem(menuHandle, CountMItems(menuHandle), <string with MetaChars>). There are surely other ways as well, but this is fairly simple and straightforward. Dennis Cohen Ashton-Tate Glendale Development Center dBASE Mac Development Team