home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!think.com!enterpoop.mit.edu!paperboy.osf.org!paperboy!drand
- From: drand@spinner.osf.org (Douglas S. Rand)
- Subject: Re: controlling an option menu from within the program
- In-Reply-To: johanb@joyce.esat.kuleuven.ac.be's message of 30 Dec 92 20:57:16 GMT
- Message-ID: <DRAND.92Dec31112858@spinner.osf.org>
- Sender: news@osf.org (USENET News System)
- Organization: Open Software Foundation
- References: <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be>
- Date: 31 Dec 92 11:28:58
- Lines: 23
-
- In article <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be> johanb@joyce.esat.kuleuven.ac.be (Johan Buelens) writes:
-
- i need to reset the choice displayed by an option menu from within the
- program: when the user presses button x, option menu y should revert
- to the default (or another) selection automagically (this to protect the
- user against absurd or potentially dangerous combinations of options).
- i tried to use XtVaSetValues(option_menu,XmNmenuHistory,0,NULL) which
- executes without complaints but also without visible results; the program
- then crashes the next time the option menu is activated.
-
- the kludge i use now is to destroy the option menu and recreate it,
- but this is obviously horrible style, and causes a lot of flicker when
- the menu undergoes such a shock therapy...
-
- This sounds like a bug to me, I've certainly done things like this.
- Could you please say which version of Motif you are running?
- You can also try setting the menuHistory of the pulldown. This
- may workaround the problem.
- --
- Douglas S. Rand <drand@osf.org> OSF/Motif Dev.
- Snail: 11 Cambridge Center, Cambridge, MA 02142
- Disclaimer: I don't know if OSF agrees with me... let's vote on it.
- Amateur Radio: KC1KJ
-