Lisp HUG Maillist Archive

Selected text in display panes

CAPI's display panes by default have a right-click popup menu with the
usual Cut/Copy/Paste functionality.  So, at least internally, the CAPI
must be able to get at the current text selection of the pane.  Is
anybody aware how user code could do the same?  I poked around a bit
with the Class Browser, APROPOS, TRACE, and so on, but I haven't found
anything promising yet.

Thanks,
Edi.


Re: Selected text in display panes

On Tue, Feb 12, 2008 at 03:10:33PM +0100, Edi Weitz wrote:
> CAPI's display panes by default have a right-click popup menu with
> the usual Cut/Copy/Paste functionality.  So, at least internally,
> the CAPI must be able to get at the current text selection of the
> pane.  Is anybody aware how user code could do the same?  I poked
> around a bit with the Class Browser, APROPOS, TRACE, and so on, but
> I haven't found anything promising yet.

Data point: on Linux I see no right-click popup menu by default on a
display-pane.  However I can highlight and then paste the highlighted
text into a terminal window, so X knows about the selection.  I was
also able to retrieve it via capi:selection, but not capi:clipboard,
which returned some other value.

-- L


Re: Selected text in display panes

On Tue, 12 Feb 2008 20:01:49 GMT, Martin Simmons <martin@lispworks.com> wrote:

> Windows and Mac OS X handle this menu automatically and CAPI doesn't
> know anything about selected text in display panes.

Ah, OK, thanks for the info.  Would have been nice, though... :)


Updated at: 2020-12-10 08:44 UTC