I for one would be interested in knowing what actually is 'expected' in this
circumstance. I personally think that's quite unclear and am not at all surprised
there is a difference between platforms.
I guess it's obvious that \n should be a newline. But should they be left
justified? Or centered? Or...?
If tabs are used, should they line up, given the proportional font? What width
should they be? Etc.?
Cheers,
Ben.
Send instant messages to your online friends http://au.messenger.yahoo.com
On Windows, where the OS-standard line break is \r\n, shouldn't _that_ also be
used to break lines in a tooltip? And what about Mac?
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
204. You're being audited because you mailed your tax return to the IRC.
On Windows, where the OS-standard line break is \r\n, shouldn't _that_ also be
used to break lines in a tooltip? And what about Mac?
Best regards,
Tony.
This was a known problem for some time. It looks like I found a
solution, see the patch below. Let me know if this works for you.
*** ../vim-7.1.188/src/gui_w32.c Thu Aug 30 12:24:21 2007
--- src/gui_w32.c Thu Jan 3 12:35:52 2008
***************
*** 987,992 ****
--- 987,997 ----
{
LPNMTTDISPINFOW lpdi = (LPNMTTDISPINFOW)lParam;
+ /* Set the maximum width, this also enables using
+ * \n for line break. */
+ SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH,
+ 0, 500);
+
tt_text = enc_to_ucs2(str, NULL);
lpdi->lpszText = tt_text;
/* can't show tooltip if failed */
***************
*** 995,1000 ****
--- 1000,1010 ----
# endif
{
LPNMTTDISPINFO lpdi = (LPNMTTDISPINFO)lParam;
+
+ /* Set the maximum width, this also enables using
+ * \n for line break. */
+ SendMessage(lpdi->hdr.hwndFrom, TTM_SETMAXTIPWIDTH,
+ 0, 500);
if (STRLEN(str) < sizeof(lpdi->szText)
|| ((tt_text = vim_strsave(str)) == NULL))
--
FATHER: Did you kill all those guards?
LAUNCELOT: Yes ... I'm very sorry ...
FATHER: They cost fifty pounds each!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///