-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Tooltips #266
base: master
Are you sure you want to change the base?
WIP Tooltips #266
Conversation
Co-authored-by: Daniel C <brikbusters@gmail.com>
I opened this PR as a draft because I don't plan to update it anymore. |
What's left to be done here? |
First, we need to find out which controls are supported. Second, there should be assertions and comments about the unsupported controls if we use the current implementation. Third, there might be better solutions. |
No unfortunately you have it correct: Win32 builtin support for tooltips is just really complex. |
If this is too complex, could we perhaps just pick one entry for tooltips? For instance, |
Support for all the controls you list here already implemented in this PR. @rubyFeedback Give tooltips with this PR a try, testers on Windows especially needed! |
Tested the control gallery Windows 11, ran in Visual Studio and got a __debugbreak
For some reason I couldn't get any error message (compiling with MinGW) but it's clear it's this line: Used this code: https://github.com/matyalatte/libui-ng/blob/1fe3dfff5b643c3314f6cd65915939202e52b923/examples/controlgallery/main.c |
Hmm, I use mingw-w64 on Windows10 but it works fine.
It's weird that
Is it true? The line 353 is not the main function at the commit. |
I had been doing a few experiments on the old file, but your code had the exact same error.
Same thing. It might be a compiler issue on my end? I'm compiling libui with a custom Makefile into a standalone binary with the control gallery. But the current libui-ng/libui-ng codebase compiles fine with the same makefile. |
Ok, I cleaned and it's working on the control gallery now. I'm sure it was some goof on my end. But EDIT: Looks like my old tooltips implementation isn't working either. So might be some bizarre issue on my end. |
The only way to get support here is to use meson (even if the cause is my PR.) I built standalone binaries with mingw-w64 like this.
Then, the control gallery worked on clean installed Windows 10 without DLLs. |
Well, I'd sure hope meson isn't doing any compilation magic to make libui work 😆 Anyway, it's my issue now looks like. EDIT: it's working now, I had copied the wrong resource file. Tooltips are working well, no errors or crashes running in visual studio debugger in Windows 11. |
#256 has many problems because it's hard coded for my apps.
This PR is an updated version of the old one.
I fixed some issues and supported more controls.
Tooltip API