Thread View: comp.windows.misc
1 messages
1 total messages
Started by Dave Bukovinsky
Fri, 07 Dec 1990 21:40
sunview API
Author: Dave Bukovinsky
Date: Fri, 07 Dec 1990 21:40
Date: Fri, 07 Dec 1990 21:40
41 lines
1915 bytes
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
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