Get wine to display transparent text areas?

Questions about Wine on Linux
Locked
Venecity
Level 1
Level 1
Posts: 5
Joined: Fri Feb 27, 2015 8:09 pm

Get wine to display transparent text areas?

Post by Venecity »

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.
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Get wine to display transparent text areas?

Post by olivierfrdierick »

Please, run your application executable with Wine from the command line and copy-paste the console output here (in a code tag).
Venecity
Level 1
Level 1
Posts: 5
Joined: Fri Feb 27, 2015 8:09 pm

Re: Get wine to display transparent text areas?

Post by Venecity »

Thank you for your help.

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!
This is all the terminal shows.
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Get wine to display transparent text areas?

Post by olivierfrdierick »

You may want to make a sample application for others to test.
There is an attachment form below the full editor.
Venecity
Level 1
Level 1
Posts: 5
Joined: Fri Feb 27, 2015 8:09 pm

Re: Get wine to display transparent text areas?

Post by Venecity »

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.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Get wine to display transparent text areas?

Post by dimesio »

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.
Venecity
Level 1
Level 1
Posts: 5
Joined: Fri Feb 27, 2015 8:09 pm

Re: Get wine to display transparent text areas?

Post by Venecity »

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).
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Get wine to display transparent text areas?

Post by olivierfrdierick »

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.
Venecity
Level 1
Level 1
Posts: 5
Joined: Fri Feb 27, 2015 8:09 pm

Re: Get wine to display transparent text areas?

Post by Venecity »

Very well, I'll get to that, thank you for your help.
Rashid
Newbie
Newbie
Posts: 1
Joined: Fri Mar 20, 2015 5:36 pm

Re: Get wine to display transparent text areas?

Post by Rashid »

Setting "Transparent" property at run time fixes the problem:

Code: Select all

Label1.Transparent := True;
I do not know why after creating form with label's "Transparent" property (on design time was setted to True) is resetting to False.
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Get wine to display transparent text areas?

Post by olivierfrdierick »

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.
Locked