home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!exodus!rickg
- From: rickg@eng.sun.com (The Tankster)
- Newsgroups: comp.windows.open-look
- Subject: Re: XView Question: Changing Focus
- Date: 25 Jan 93 08:41:44
- Organization: SunSoft, Inc.
- Lines: 39
- Distribution: world
- Message-ID: <RICKG.93Jan25084144@irondude.eng.sun.com>
- References: <1993Jan22.212142.27485@tc.cornell.edu> <1k0snmINNfic@spdev.East.Sun.COM>
- Reply-To: rickg@eng.sun.com
- NNTP-Posting-Host: irondude
- In-reply-to: jdf@nitehawk.East.Sun.COM's message of 25 Jan 1993 14:16:22 GMT
-
-
- From: jdf@nitehawk.East.Sun.COM (Jim Fiori - Special Projects)
- Newsgroups: comp.windows.open-look
- Date: 25 Jan 1993 14:16:22 GMT
- Organization: Sun Microsystems, Inc.
-
- In article 27485@tc.cornell.edu, fielding@theory.TC.Cornell.EDU (David L. Fielding) writes:
- >
- > How does one change the focus from a text field in one
- >panel to a text field in a different panel in the same window?
- >I'm using XView 3.0.
- >
- > xv_set (panel, PANEL_CARET_ITEM, another_item, NULL);
- > This code only works in the same panel.
- >
-
- Use the WIN_FOCUS attribute for the panel:
-
- xv_set (panel, WIN_FOCUS, PANEL_CARET_ITEM, another_item, NULL);
-
-
-
- that's WIN_SET_FOCUS, and beware of race conditions....
-
-
- <<tank
-
- --
-
- *********************************************************************
-
- Richard M. "Tank" Goldstein rickg@Eng.Sun.COM
- Window Developer Environment
- SunSoft, Inc.
-
- "I'm a scientist. I don't think, I observe."
- -Dr. Clayton Forrester
-
- *********************************************************************
-