🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.misc
Article #337

sunview API

#337
From: Dave Bukovinsky
Date: Fri, 07 Dec 1990 21:40
41 lines
1915 bytes
I apologize if this is a duplicate posting - there were problems with
postnews.


I have a problem conerning the use of canvases within the sunview API.
Sunview provides facilities to the programmer such that users can
select a range of text using the left & middle mouse buttons.  A good
example is shelltool or cmdtool, where the user can select a range of
text and its highlighted.  This text, then, to the application, becomes
the primary selection with regards to the selection server.  The API
provides this facility for tty and text subwindow types, but not for
canvas types (graphical).

Now, the application I am writing requires that I use the canvas type
of window, and I would like to have the user select a range of
(graphical) text using the mouse, highlight it, and make it the primary
selection for use by other sunview applications.

The only way I could think of to do this is to read each character
between the current cursor position and the mouse position, store it in
a (selection) buffer, and redraw it on the canvas highlighted.  It
seems veeeeeerrrryyyyy cumbersome to say the least....

Has anyone needed to do this before?  Is there a better solution?
(maybe an undocumented sunview feature or library function?)

PS.  I am running on sun 3/60's and 3/80's with SunOs 4.0.3.....

Feel free to e-mail me directly or post any suggestions to this
newsgroup.

thanks in advance
---dave


-- 
Dave Bukovinsky
Motorola Inc.
	phone: (708) 632-4753
	uucp: uunet!motcid!bukovins
Technical Details
Message-ID: <5686@berry17.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!motcid!bukovins

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!motcid!bukovins
From: bukovins@motcid.UUCP (Dave Bukovinsky)
Newsgroups: comp.windows.misc
Subject: sunview API
Keywords: sunview windows graphics
Message-ID: <5686@berry17.UUCP>
Date: 7 Dec 90 21:40:25 GMT
Organization: Motorola Inc., Cellular Infrastructure Div., Arlington Heights, IL
Lines: 41