home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8280 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.7 KB  |  36 lines

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