Re: Creating a tooltip programmatically at a certain screen position
"'Matthias Melcher' via fltk.general"
Oct 26, 2025
You can create a non_moda()l window. It will hover above any of your application windows without blocking event delivery. Make it borderless() and use position() to make it follow your mouse pointer if that's what you want. Fl::event_x_root()/event_y_root() gives you the mouse position in global coordinates during events. To make your window behave more like the original, there are also Fl_Window::set_tooltip_window() and set_menu_window() that are used to give the desktop driver additional indication for what the window is used.
There is of course the source code for in Fl_TooltipBox src/Fl_Tooltip.cxx that show how the original tooltip is implemented. It has additional timers ans monitors the mouse.
ggar...@gmail.com schrieb am Sonntag, 26. Oktober 2025 um 01:00:49 UTC+2:
Title explains it better. I would like to create a tooltip window that
is not associated to any FLTK Widget (it will follow a Vulkan widget).
How can I do that easily?
Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.