🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37827

Focus problems

#37827
From: Esmond Pitt
Date: Thu, 08 Mar 1990 00:35
20 lines
1074 bytes
I have a window containing several text widgets, and under various
circumstances I need the keyboard focus to be directed initially to a
particular widget under control of the application (which I am not writing
- I'm just writing them a Motif interface).

I've tried XtSetKeyboardFocus() but:

	(a) I don't sufficiently understand why there are two
	parameters, although I have both set plausibly, and

	(b) if the target widget is not the first-created, text widget
	both the target widget and the first-created have blinking
	cursors when I re-enter XtMainLoop().

What's going on here?


-- 
Esmond Pitt, Computer Power Group
ejp@bohra.cpg.oz
Technical Details
Message-ID: <370@bohra.cpg.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!uhccux!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!bohra!ejp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!uhccux!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!bohra!ejp
From: ejp@bohra.cpg.oz (Esmond Pitt)
Newsgroups: comp.windows.x
Subject: Focus problems
Message-ID: <370@bohra.cpg.oz>
Date: 8 Mar 90 00:35:03 GMT
Reply-To: ejp@bohra.UUCP (Esmond Pitt)
Organization: Computer Power Group, Melb, Australia
Lines: 20