From: martin rudalics <rudalics@gmx.at>
To: Feng Shu <tumashu@163.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: How to get information of a tip created by x-show-tip
Date: Sat, 19 Jan 2019 10:32:10 +0100 [thread overview]
Message-ID: <5C42EE9A.7070201@gmx.at> (raw)
In-Reply-To: <87tvi5ow2r.fsf@163.com>
> I use the following code to test, but failure
> 1. width and height parameter do not work
> 2. I can find any frame with 'tooltip parameter
>
> ```
> (setq tooltip-reuse-hidden-frame t)
This may hide the frame from 'visible-frame-list'.
> (setq x-gtk-use-system-tooltips nil)
>
> (progn
> (x-show-tip "this is a test"
> (selected-frame)
> '((name . "tooltip1")
> (internal-border-width . 2)
> (left . 200)
> (top . 300)
> (width . 200)
> (height . 600)
> (border-width . 1)
> (no-special-glyphs . t))
> 100 0 0)
> (dolist (frame (visible-frame-list))
> (princ (frame-parameter frame 'tooltip))))
Evaluating the following here on Windows
(progn
(x-show-tip "this is a test"
(selected-frame)
'((name . "tooltip1")
(internal-border-width . 2)
(left . 200)
(top . 300)
(width . 200)
(height . 600)
(border-width . 1)
(no-special-glyphs . t))
100 0 0)
(dolist (frame (visible-frame-list))
(when (frame-parameter frame 'tooltip)
(princ (frame-parameters frame)))))
gets me
((tool-bar-position . top) (parent-id) (explicit-name . t)
(display . w32) (visibility . t) (icon-name) (window-id . 1180020)
(scroll-bar-height . 0) (scroll-bar-width . 0) (right-fringe . 0)
(left-fringe . 0) (bottom-divider-width . 0) (right-divider-width . 0)
(top . 300) (left . 200) (buried-buffer-list) (buffer-list *scratch*)
(unsplittable . t) (modeline) (width . 80) (height . 36) (name
. tooltip1) (tooltip . t) (alpha) (cursor-type . box) (auto-lower)
(auto-raise) (no-special-glyphs . t) (border-color . lightyellow)
(cursor-color . black) (mouse-color . black) (background-color
. lightyellow) (foreground-color . black) (internal-border-width . 2)
(border-width . 1) (font . -outline-Courier
New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1) (font-backend
uniscribe gdi))
martin
next prev parent reply other threads:[~2019-01-19 9:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-19 4:29 How to get information of a tip created by x-show-tip Feng Shu
2019-01-19 7:22 ` Eli Zaretskii
2019-01-19 8:12 ` martin rudalics
2019-01-19 9:06 ` Feng Shu
2019-01-19 9:32 ` martin rudalics [this message]
2019-01-19 9:37 ` Feng Shu
2019-01-19 9:55 ` Eli Zaretskii
2019-01-19 10:02 ` Feng Shu
2019-01-19 9:54 ` Feng Shu
2019-01-19 12:20 ` martin rudalics
2019-01-20 1:21 ` Feng Shu
2019-01-20 2:09 ` Drew Adams
2019-01-19 9:36 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5C42EE9A.7070201@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=tumashu@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.