Lisp HUG Maillist Archive

Question regarding tooltips

I am trying to get a tooltip to work, in an XP environment, for a text-input-
pane. Yet when I try something like...

(capi:display-tooltip (slot-value MyDialog 'MyFooPane) :x 1 :y 1 :text "Test")

It comes back with a error. I'm not sure if I'm going about this all wrong and 
simply need to change some property on the pane or if display-tooltip is 
correct but my syntax is my issue. 

What am I doing wrong?

Thanks,

William


RE: Question regarding tooltips

Hi William,

as far as I understand, display-tooltip only works on output-pane and it's children which are editor-pane and pinboard-layout plus
their children. You cannot use it with text-input-pane. My impression is, you cannot have a tooltip with text-input-pane (I didn't
find a solution, but I'm not perfectly sure).

Regards

Andreas


> -----Original Message-----
> From: owner-lisp-hug@lispworks.com 
> [mailto:owner-lisp-hug@lispworks.com] On Behalf Of William Proffitt
> Sent: Sunday, August 17, 2008 12:12 AM
> To: lisp-hug@lispworks.com
> Subject: Question regarding tooltips
> 
> 
> 
> I am trying to get a tooltip to work, in an XP environment, 
> for a text-input- pane. Yet when I try something like...
> 
> (capi:display-tooltip (slot-value MyDialog 'MyFooPane) :x 1 
> :y 1 :text "Test")
> 
> It comes back with a error. I'm not sure if I'm going about 
> this all wrong and 
> simply need to change some property on the pane or if 
> display-tooltip is 
> correct but my syntax is my issue. 
> 
> What am I doing wrong?
> 
> Thanks,
> 
> William
> 


Re: Question regarding tooltips

On Sat, Aug 16, 2008 at 10:11:58PM +0000, William Proffitt wrote:
> I am trying to get a tooltip to work, in an XP environment, for a
> text-input-pane. Yet when I try something like...
> 
> (capi:display-tooltip (slot-value MyDialog 'MyFooPane) :x 1 :y 1
> :text "Test")
> 
> It comes back with a error. I'm not sure if I'm going about this all
> wrong and simply need to change some property on the pane or if
> display-tooltip is correct but my syntax is my issue. 

The capi:interface documentation has an example of a tooltip on a
text-input-pane, if that helps.  It doesn't use display-tooltip
specifically, though, so it might not be what you want.

Help -> Search -> tooltip may've helped with this.

In actuality, I used

  cd /usr/local/lib/LispWorks/lib/5-1-0-0/manual/online/web/CAPRM/html
  opera $(grep -irl tooltip *)

which is sort of a brute-force version of the same thing, though it
*might* find things a search of the index or contents (which is what
Help -> Search does) wouldn't.

Also, note that display-tooltip is a generic function.  You could
write your own method for text-input-panes.

-- L


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