Get wine to display transparent text areas?
Get wine to display transparent text areas?
Hello.
I'm developping a Delphi application, obviously, for windows. However, due to recent problems to my computer, I'm having to use Ubuntu from now on, not long after I installed my new OS, I had found Wine and installed it, thankfully enough, the entirety of my project works under Wine, only problem being, none of my transparent text areas are actually transparent.
Instead, a solid background color appears under my text, which is supposed to show over a semi-transparent textbox, which itself is layered over character sprites, this causes the whole text area to ruin the UI of the application.
It seems no one asked about a similar problem to mine, thus I'm asking now, how can I enable transparent textboxes?
For anyone used to such components, the textboxes I use are: TLabel and TDBText, not sure if this will help, however.
If need be, I have native windows dlls to apply, I simply do not know which dll handles transparency, nor if any does.
Thank you for your time, and any future answer.
I'm developping a Delphi application, obviously, for windows. However, due to recent problems to my computer, I'm having to use Ubuntu from now on, not long after I installed my new OS, I had found Wine and installed it, thankfully enough, the entirety of my project works under Wine, only problem being, none of my transparent text areas are actually transparent.
Instead, a solid background color appears under my text, which is supposed to show over a semi-transparent textbox, which itself is layered over character sprites, this causes the whole text area to ruin the UI of the application.
It seems no one asked about a similar problem to mine, thus I'm asking now, how can I enable transparent textboxes?
For anyone used to such components, the textboxes I use are: TLabel and TDBText, not sure if this will help, however.
If need be, I have native windows dlls to apply, I simply do not know which dll handles transparency, nor if any does.
Thank you for your time, and any future answer.
- olivierfrdierick
- Level 5
- Posts: 258
- Joined: Thu Sep 13, 2012 12:09 pm
Re: Get wine to display transparent text areas?
Please, run your application executable with Wine from the command line and copy-paste the console output here (in a code tag).
Re: Get wine to display transparent text areas?
Thank you for your help.
This is all the terminal shows.
Code: Select all
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x10070 0x00000000
fixme:win:WINNLSEnableIME hwnd 0x100e4 enable -1: stub!
fixme:win:WINNLSEnableIME hwnd 0x100d8 enable -1: stub!
fixme:win:WINNLSEnableIME hwnd 0x100ca enable -1: stub!
- olivierfrdierick
- Level 5
- Posts: 258
- Joined: Thu Sep 13, 2012 12:09 pm
Re: Get wine to display transparent text areas?
You may want to make a sample application for others to test.
There is an attachment form below the full editor.
There is an attachment form below the full editor.
Re: Get wine to display transparent text areas?
Alright, I attached the sample (sorry for the size, it is caused by the VCL)
Obviously, running the application under windows have the text transparent.
When run under wine (with the wine dll's, at least) every transparency is replaced by a block, the color of which can be changed, however, it's not what I am looking to do :T.
Obviously, running the application under windows have the text transparent.
When run under wine (with the wine dll's, at least) every transparency is replaced by a block, the color of which can be changed, however, it's not what I am looking to do :T.
Re: Get wine to display transparent text areas?
There was nothing attached to your post. It may be too big for the forum; try uploading the file somewhere else and posting a download link.
Also, you didn't mention what Wine version you're using. If it's not the latest development release, upgrade.
Also, you didn't mention what Wine version you're using. If it's not the latest development release, upgrade.
Re: Get wine to display transparent text areas?
Oh, yes... I have embedded images into it to show my problem, made the size of the .exe skyrocket, my apologies.
Here's a mediafire link:
http://www.mediafire.com/download/btrad ... Sample.exe
As for my version of Wine, I do use the latest developpement build (1.7.37).
Here's a mediafire link:
http://www.mediafire.com/download/btrad ... Sample.exe
As for my version of Wine, I do use the latest developpement build (1.7.37).
- olivierfrdierick
- Level 5
- Posts: 258
- Joined: Thu Sep 13, 2012 12:09 pm
Re: Get wine to display transparent text areas?
I did a debug trace with WINEDEBUG=all.
gdi32 and user32 are called to set and draw the text labels.
It's not possible to override those two DLL to native.
winetricks gdiplus had no effect.
I can only advise you to file a bug report.
gdi32 and user32 are called to set and draw the text labels.
It's not possible to override those two DLL to native.
winetricks gdiplus had no effect.
I can only advise you to file a bug report.
Re: Get wine to display transparent text areas?
Very well, I'll get to that, thank you for your help.
Re: Get wine to display transparent text areas?
Setting "Transparent" property at run time fixes the problem:
I do not know why after creating form with label's "Transparent" property (on design time was setted to True) is resetting to False.
Code: Select all
Label1.Transparent := True;
- olivierfrdierick
- Level 5
- Posts: 258
- Joined: Thu Sep 13, 2012 12:09 pm
Re: Get wine to display transparent text areas?
Still, Wine should behave like Windows and a bug report should be filed if it doesn't. The info you provided might give a clue to the devs about what is failing in Wine and it should be included in a comment on the bug report.