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

Buttons loosing Border in IDE, ObjectInspektor #307

Open
WeberAndre opened this issue Oct 12, 2023 · 1 comment
Open

Buttons loosing Border in IDE, ObjectInspektor #307

WeberAndre opened this issue Oct 12, 2023 · 1 comment

Comments

@WeberAndre
Copy link

Hello,

I'am useing Delphi 10.4.2, with the most current vcl-style-utils - and the change in "vcl.Styles.uxThemes.pas" in the function
"UxTheme_Button" breaks the Delphi IDE and the formdesigner. f.e. TBitBtn looses its fillcolor and border.
bug02

and the alignmenu of the Object Inspektor - look like this:
bug01

LBtnBmp.Transparent := True;
seems to be the issue - because per default the color of the bottom left pixel is used for transparency, if the button is a nice rounded one it works, but if the button is rectangluar this pixel belongs to the border around the button surface, which becames transparent.
And if the Button fills its area with clBtnFace.. the whole bottom will become transparent.

Can you explain me why this code was changed - to a temporary bitmap?
To use a temp bitmap there it must be a TBitmap with Alpha Channel no transparency by a single color.

@WeberAndre
Copy link
Author

Ok -> loosing the border is related that the IDE internally uses a active style - with button's without border. (so its no styleutils problem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant