home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!chx400!decus!u_bornetun
- From: u_bornetun@decus.ch
- Newsgroups: comp.windows.x.motif
- Subject: Re: Query about the Command widget
- Message-ID: <2375.2b0a092a@decus.ch>
- Date: 18 Nov 92 09:13:14 CET
- References: <1992Nov17.042003.26005@ccu1.aukuni.ac.nz>
- Organization: DECUS (Switzerland)
- Lines: 31
-
- In article <1992Nov17.042003.26005@ccu1.aukuni.ac.nz>, sands@ccu1.aukuni.ac.nz (Greg Sands) writes:
- > I have a small problem with the XmCommand widget that I cannot see how to fix.
- > The difficulties occur when a previous item in the list has been selected and
- > executed. I can now deselect that item OK, but what I want is that when I next
- > press the up-arrow key, the selected item will be the last one in the list.
- > Instead, it the one immediately before the one previously selected, as if the
- > item had not been deselected at all. It seems as though the
- > SelectionBoxUpOrDown action routine may be the one to look at, but how would
- > I modify it to do what I want? Basically it would be sufficient to over-ride
- > the first arrow-key press, and force it to select the bottom item.
- >
- > Thanks for any help you can give with this.
- >
- > Greg.
- >
- >
- > --
- > Greg Sands. | Department of Engineering Science
- > ----------- | University of Auckland
- > g.sands@aukuni.ac.nz | New Zealand.
-
-
- I had the same problem, and gave up trying to solve it the "proper" way.
- I used a collection of widgets to implement the same functionality. You just
- need a scrolled list with the commands and an XmTextField to type in.
- Managing the list is easy, and you need event handlers on the text field
- for arrow up and down. Use activate callback on the text field to get the
- command.
-
-
- Ulrika
-