Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!ukc!axion!delluk!jet!cm From: cm@jet.uucp (colin manning) Newsgroups: comp.windows.x.motif Subject: Re: Motif mnemonics Keywords: motif, mnemonics, uil Message-ID: <1991Apr30.112657.20882@jet.uucp> Date: 30 Apr 91 11:26:57 GMT References: <1991Apr16.060456.4476@cs.uow.edu.au> <1043@rm1.UUCP> Distribution: comp Organization: Joint European Torus Lines: 35 In <1043@rm1.UUCP> vrenjak@rm1.UUCP (Milan Vrenjak) writes: >In article <1991Apr16.060456.4476@cs.uow.edu.au>, jorgi@cs.uow.edu.au (George B Zamroz) writes: >|> Last week I wrote asking about a problem I had regarding the use of mnemonics >|> under UIL. I have since found out that the mnemonics are indeed there (i.e. >|> they work) but simply don't appear (the appropriate character in the label is >|> not underlined). Any ideas? > >I found that I couldn't specify the ascii character but rather >the character's decimal value. For example, > > XmNlabelString = 'Open'; > XmNmnemonic = 79; > >and this worked fine to give O as the mnemonic for Open. I have found that mnemonics for Motif defined in uil work fine. I have things like: XmCascadeButton { arguments { XmNlabelString = "File"; XmNmnemonic = keysym("F"); }; . . . }; I get the F underlined correctly, and can pull down the menu with Alt-F. I think that perhaps you should be using the keysym() function, not quoting the key number directly. Hope this helps. -- - Colin Manning, cm%jet.uucp@ukc.ac.uk (world) OR cm@jet.uucp (UK only) - Disclaimer: Please note that the above is a personal view and should not be construed as an official comment from the JET project.