Skip to content
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

set background color of a label #43

Closed
antsol20 opened this issue Oct 1, 2022 · 3 comments
Closed

set background color of a label #43

antsol20 opened this issue Oct 1, 2022 · 3 comments
Assignees
Labels
bindings Something with the low-level WinAPI bidings question Further information is requested

Comments

@antsol20
Copy link

antsol20 commented Oct 1, 2022

This is a great piece of work.
But how do you set the bk color of a label (or set the mode to transparent)?
An example would be very helpful. Thanks!

@rodrigocfd rodrigocfd added the question Further information is requested label Oct 1, 2022
@rodrigocfd
Copy link
Owner

Does this help?

https://stackoverflow.com/a/4495814

@antsol20
Copy link
Author

antsol20 commented Oct 2, 2022

Hi thanks.

I'm expecting a SetBkColor method in gdi_HDC
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-setbkcolor

But don't see one?

Thanks

rodrigocfd added a commit that referenced this issue Oct 3, 2022
@rodrigocfd
Copy link
Owner

Oh I somehow missed it, but it's here now.

It will be published soon in the next version, but you can use it right away by pointing your Cargo dependency to the GitHub repo:

@rodrigocfd rodrigocfd self-assigned this Jan 25, 2023
@rodrigocfd rodrigocfd added the bindings Something with the low-level WinAPI bidings label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings Something with the low-level WinAPI bidings question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants