emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get information of a tip created by x-show-tip


From: Feng Shu
Subject: Re: How to get information of a tip created by x-show-tip
Date: Sun, 20 Jan 2019 09:21:05 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

martin rudalics <address@hidden> writes:

>>>> (setq tooltip-reuse-hidden-frame t)
>>>
>>> This may hide the frame from 'visible-frame-list'.
>>>
>>
>> Does this mean: when tooltip-reuse-hiden-frame is t, the return of
>> visible-frame-list
>> will always do not show tooltip frame, no matter tooltip actuly show
>> or
>> hide?
>
> No.  While the tooltip is shown the tooltip frame is on
> ‘visible-frame-list’.
>
> martin
>

Thanks for the information :-)

x-show-tip's background-color works well, but
can not change foreground-color, does it do not support foreground-color?

```
(progn
  (x-show-tip
   (substring-no-properties
    "
this is a test
this is a test
this is a test
this is a test")
   (selected-frame)
   '((name . "tooltip")
     (internal-border-width . 2)
     (background-color . "white")
     (foreground-color . "red")
     (left . 200)
     (top . 300)
     (border-width . 1)
     (no-special-glyphs . t))
   10 0 0)
  (dolist (frame (visible-frame-list))
    (when (frame-parameter frame 'tooltip)
      (princ (frame-parameters frame)))))
```


-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]