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

The widget should have a transparent background, but the content should be solid. #38

Open
mateuszstalmach opened this issue Jul 23, 2023 · 3 comments
Labels
help wanted Extra attention is needed limitation This task cannot be achieved due to limitations of the technologies used

Comments

@mateuszstalmach
Copy link
Contributor

Hello, can you create transparent background color in widgets?
Maybe this article help you to make this feature: https://www.magpcss.org/ceforum/viewtopic.php?f=8&t=17421#

@beyluta
Copy link
Owner

beyluta commented Jul 23, 2023

I don't think this is possible using WinForms. I also wanted to do this back when the project started, but I have little knowledge of WPF and don't know how to convert the project into it.

https://stackoverflow.com/questions/58142092/cefsharp-winforms-is-it-possible-to-make-the-background-transparent

@beyluta beyluta added help wanted Extra attention is needed limitation This task cannot be achieved due to limitations of the technologies used labels Jul 23, 2023
@mateuszstalmach
Copy link
Contributor Author

mateuszstalmach commented Jul 23, 2023 via email

@beyluta
Copy link
Owner

beyluta commented Jul 23, 2023

I can do transparent WinForm with two properties. this.BackColor = Color.LimeGreen;this.TransparencyKey = Color.LimeGreen; But i have a problem with transparent CefrSharp. niedz., 23 lip 2023, 09:25 użytkownik Beyluta @.> napisał:

I don't think this is possible using WinForms. I also wanted to do this back when the project started, but I have little knowledge of WPF and don't know how to convert the project into it. https://stackoverflow.com/questions/58142092/cefsharp-winforms-is-it-possible-to-make-the-background-transparent — Reply to this email directly, view it on GitHub <#38 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRYSGCI43VGDGVTQJS7YNTXRTGWHANCNFSM6AAAAAA2UF4NV4 . You are receiving this because you authored the thread.Message ID: @.
>

Form transparency is something that WinWidgets already has natively. But this is because the Form control has support for this property. Apparently the browser control (From CefSharp) only supports transparency when using WPF instead of WinForms. The properties do exist but they don't do anything it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed limitation This task cannot be achieved due to limitations of the technologies used
Projects
None yet
Development

No branches or pull requests

2 participants