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

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!ulowell!koverber
  3. From: koverber@cs.ulowell.edu (Kurt Overberg)
  4. Subject: Re: controlling an option menu from within the program
  5. Message-ID: <C050GD.Lpu@ulowell.ulowell.edu>
  6. Originator: koverber@bigmax.ulowell.edu
  7. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  8. Organization: University of Massachusetts at Lowell Computer Science
  9. References: <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be> <DRAND.92Dec31112858@spinner.osf.org>
  10. Date: Thu, 31 Dec 1992 18:53:01 GMT
  11. Lines: 22
  12.  
  13.  
  14. In article <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be> johanb@joyce.esat.kuleuven.ac.be (Johan Buelens) writes:
  15. |> 
  16. |>    user against absurd or potentially dangerous combinations of options).
  17. |>    i tried to use XtVaSetValues(option_menu,XmNmenuHistory,0,NULL) which
  18. |>    executes without complaints but also without visible results; the program
  19. |>    then crashes the next time the option menu is activated.
  20.  
  21. I was always under the impression that the XmNmenuHistory took 
  22. a Widget ID of the last option chosen.  It looks like you are
  23. simply setting it to zero (or NULL)...  Try setting it to the Widget ID
  24. of the button you want the option menu to default to.
  25.  
  26.  
  27.                     peace out.
  28.  
  29.                       kurt
  30.  
  31. -- 
  32. Kurt Overberg            | I honestly doubt you care about my opinions ;^)      
  33. U of Mass, Lowell        | "Poke a double-decker on a Llama taboot,       
  34. koverber@cs.ulowell.edu  |  Llama taboot, taboot!"      -Phish
  35.