🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.open-look
3 messages
3 total messages Started by David L. Fielding Fri, 22 Jan 1993 21:21
XView Question: Changing Focus
#2768
Author: David L. Fielding
Date: Fri, 22 Jan 1993 21:21
14 lines
922 bytes
	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.

	Thanks
	David
-- 
David L. Fielding			fielding@theory.tc.cornell.edu
Cornell Information Technologies
502 Olin Library		     Phone:(607)273-8664 or
Cornell University, Ithaca, NY 14853 Phone:(607)255-9098 Fax:(607)255-9346
Re: XView Question: Changing Focus
#2783
Author: The Tankster
Date: Mon, 25 Jan 1993 08:41
39 lines
1771 bytes
   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

*********************************************************************
Re: XView Question: Changing Focus
#2781
Author: Jim Fiori - Special Projects
Date: Mon, 25 Jan 1993 14:16
15 lines
1089 bytes
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);
	
Jim Fiori
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads