🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #6850

XView problems on SunOS/OpenWindows...

#6850
From: scott%grlab.uucp
Date: Mon, 18 Feb 1991 18:43
28 lines
1901 bytes
I'm trying to set something up so an XView PANEL_TEXT field is
auto-"selected" under programmatic control. I haven't seen any way to
effect this change directly...like this fictional piece of code...

   xv_set (item,
           PANEL_TEXT_SELECT, 0, strlen ((char *) xv_get (item, PANEL_VALUE)),
           NULL);

So what I'm resorting to is trying to synthesize some events. I want to
fool things into believing that a triple-click has occurred in the
PANEL_TEXT item, thus causing the select. The idea is that when I "move"
to a new field, the new field is "selected" in such a way that newly typed
characters will replace the old contents. I want the text in the field to
be reverse-video'd, too. 

Has anyone had any experience with faking events to either the PANEL
package of XView or to the notifier, in general? I've been poking through
the MIT XView code to try to get some hints...it seems it ought to be
possible, but I'm missing something somewhere here.

I'm running:
   SunOS 4.1; OpenWindows 2.0; SPARCstation 1+

Scott Blachowicz
USPS:  Graphicus                E-mail:  scott%grlab.UUCP@hpubvwa.NSR.HP.COM
       150 Lake Str S, #206      ..or..  scott@grlab.Celestial.COM
       Kirkland, WA USA 98033    ..or..  ...!hpubvwa!grlab!scott
Voice: 206/828-4691             FAX:     206/828-4236
Technical Details
Message-ID: <1661@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: scott%grlab.uucp@hpubvwa.nsr.hp.com
Newsgroups: comp.sys.sun
Subject: XView problems on SunOS/OpenWindows...
Keywords: Windows
Message-ID: <1661@brchh104.bnr.ca>
Date: 18 Feb 91 18:43:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 28
Approved: Sun-Spots@rice.edu
X-Original-Date: 11 Feb 91 21:27:25 GMT
X-Sun-Spots-Digest: Volume 10, Issue 37, message 17
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu