Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows 11 trasparency

Status
Not open for further replies.

massimo.b

Programmer
Jan 12, 2022
2
IT
Hi, I have an app written in vfp9 with one button overlaid on another. Even disabling transparency in windows 11, the text of the button below is shown in transparency. Same thing happens with other types of overlapping controls (for reasons of space). Even disabled buttons, with transparency, look awful. Until windows 10 everything worked. Does anyone have the same problem and have a solution?
See attached image.
Thank you
 
 https://files.engineering.com/getfile.aspx?folder=8adeb644-5aff-4132-9a38-64181dea4e55&file=trasparency_windows_11.png
I'm sorry but I don't understand the problem. Are you referring to the very light text behind the Cerca button (text that begins with "Ric" as far as I can see)?

If so, why is the text there in the first place? If this is a label on your form, why did you place it behind a button? And, if you don't want this to happen, why do you have "overlapping controls"?

If I have completely misunderstood your question, my apologies.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi Mike,
the light text that begins with "Ric" is the caption of a button thet is behind the Cerca button.
In windows 10 the button that begins with "Ric" is not visible.
I know it's an unusual situation, but the program is quite old and several developers got their hands on it.
I know that just removing the button below will fix the problem but that's not the point.
I was looking for a quick solution to solve the problem without changing the existing operating logic.
In the meantime I noticed that by setting the themes property of the button to False the transparency of the button disappears.
The same happens changing the SpecialEffect property from 3D to Plain.
Thank you
 
I noticed that by setting the themes property of the button to False the transparency of the button disappears.

Yes, that sounds plausible. In fact, I usually put [tt]_screen.Themes = .F.[/tt] in my main program to avoid unwanted visual effects - although I don't remember seeing this particular problem before.

Anyway, good that it's solved. And welcome to the forum, by the way.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Good you found a solution by turning off themes. I would have pointed that out, too.

But then I wonder how that worked in Win 10 and not 11, or even Win8, themes make a change already since Win XP, which introuced that. Was it perhaps VFP6 before? Because VFP also only introducced themes with VFP7, which came out about the same time as WinXP.

Besides themes don't introduce transparency. Gradients? Yes. But transparency? Are you using an image control with a PNG for your buttons? The only other way to enable transparency is full or none by wither GIF or mask (MSK), which would look different. Mabe that's also something Win11 introduced, I haven't got my hands on that.

Chriss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top