home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!nwnexus!ole!rwing!fnx!sgihbtn!dkarr
- From: dkarr@sierra.com (David Karr)
- Newsgroups: comp.windows.x
- Subject: keyboardFocusPolicy problem
- Message-ID: <1992Dec11.192157.27180@sierra.com>
- Date: 11 Dec 92 19:21:57 GMT
- Sender: news@sierra.com
- Organization: Sierra Geophysics, Kirkland WA
- Lines: 39
- Nntp-Posting-Host: dopey
- X-Newsreader: TIN [version 1.1 PL8]
-
- I'm seeing a strange problem with the keyboardFocusPolicy resource. I am
- running on an HP9000/750, with VUE (although it also happens under mwm).
- Running Motif v1.1.1.
-
- I normally run with my window manager keyboardFocusPolicy set to "pointer",
- and my application keyboardFocusPolicy set to "explicit". I don't have any
- problems. Someone else here runs with both set to "explicit". He is
- seeing some strange behavior (and I've been able to repeat it) in regard to
- widget focus.
-
- In our application, we perform some actions that cause particular container
- widgets in our dialogs to be replaced (manage one, unmanage the other) with
- a different container widget. The widgets in each container are
- optionmenus, textfields, buttons, etc. When we bring the dialog up (in
- explicit/explicit mode), we can click on a field or press TAB to change the
- widget focus. We can then toggle the container widget, but at that point
- we appear to have lost the ability to get focus to any of the
- Text/TextField-derived widgets. In fact, the "focus highlight" is not
- present on any widget in the dialog. We can click on buttons and
- optionmenus, but clicking on a textfield only gives us the little caret at
- the bottom of the field. We don't get the focus highlight or the insert
- cursor, and valid keypresses don't get inserted into the field.
-
- If I then move the window focus to another window, and then move it back
- again to the application, then the last widget that had focus regains the
- focus highlight and the insert cursor. I am then able to enter text into
- the field.
-
- And again, if my window manager focus policy is "pointer" (still keeping
- the application focus policy at "explicit), then this problem does not
- occur.
-
- I don't know if this is relevant, but we call XmAddTabGroup for all the
- widgets we want to be a separate tab group.
- --
- David M. Karr
- Sierra Geophysics, Inc.
- ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
- Phone: (206) 822-5200 (x343)
-