Korolev Michael wrote:Code: Select all
OpenWindow(0,0,0,200,100,"test",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
ButtonGadget(0,10,10,80,25,"test")
GadgetToolTip(0,~"test tip\nNewline")
Repeat
Until WaitWindowEvent(50)=#PB_Event_CloseWindow
The newline support in tooltips only doesn't work in Windows. Michael Korolev's example is already working fine on Linux (tested on Ubuntu 14.04 x64 with KDE and PB 5.41 x64) and MacOS X (tested on OS X 10.6.8 (Snow Leopard) with PB 5.41 x86).
So +1 for a Windows implementation in PB...
Some further links to multiline tooltip workarounds for Windows:
- Display multiline tooltip using maximum tip width (
netmaestro)
- Display multiline tooltip using #CR$ (
Shardik, extending an example from netmaestro)
- Display multiline tooltip using maximum tip width or #CRLF$ (
inSANE)