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

  1. Newsgroups: comp.windows.x.motif,80,articles
  2. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!gate!joyce!johanb
  3. From: johanb@joyce.esat.kuleuven.ac.be (Johan Buelens)
  4. Subject: controlling an option menu from within the program
  5. Message-ID: <1992Dec30.205716.17673@gate.esat.kuleuven.ac.be>
  6. Summary: controlling an option menu from within the program: how to ?
  7. Keywords: option menu
  8. Sender: news@gate.esat.kuleuven.ac.be (USENET News System)
  9. Organization: K.U.Leuven, Belgium
  10. Date: Wed, 30 Dec 1992 20:57:16 GMT
  11. Lines: 34
  12.  
  13. hi,
  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.                 --------------
  28.  
  29. by the way, i'd also like to know if there's a way to change the right
  30. arrow selection widget generated by XmVaCreateSimpleOptionMenu to something
  31. else (e.g. an horizontal menu button as used by the Motif window manager).
  32.  
  33.                 --------------
  34.  
  35. i suggest you reply by mail, i'll summarize to comp.windows.x.motif.
  36. thanks a lot,
  37.  
  38. johan -b
  39.  
  40. ---------------------------
  41. Johan H. BUELENS
  42. K.U.Leuven / ESAT / K. Mercierlaan 94 / B - 3001  Heverlee / Belgie
  43. phone  : (32) (16) 20 09 31 ext. 1076
  44. fax    : (32) (16) 22 18 55
  45. e-mail : johanb@esat.kuleuven.ac.be  (preferred)
  46.          buelens@imec.be, fheaa00@blekul11.bitnet
  47.