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