Here is an unit that shows how to add blur to the entire window in Windows 10.To me, it looks like you have turned on some sort of transparency on the black(or default?) color and that is what you see. try to set the font color to an other dark color like blue and see if that helps at all.
The problem is that LCL controls are not displayed nicely, but BGRAControls are working fine.
Attached project 'aerodemo.zip'.
Any ideas?
In the screenshot an image (looks good) displayed with BGRAControls, and the Exit button made with LCL (looks bad).
Hi!
As long as the LCL control owns a canvas you can draw anything you like.
That is the way I "misstreat" the SpeedButton:
* create a BGRAbitmap of the size of the SpeedButton and the color of the parent
* set the size of the SpeedButton.glyph to the size of the SpeedButton.
* paint something you like on the tmp bitmap
* draw the bitmap on the glyph
procedure TForm1.SpeedButton1Click(Sender: TObject); var tmp : TBGRABitmap; begin tmp := TBGRABitmap.create (SpeedButton1.width,SpeedButton1.Height,self.Color); SpeedButton1.Glyph.SetSize(SpeedButton1.width,SpeedButton1.Height); tmp.RoundRectAntialias(0,0,SpeedButton1.width-1,SpeedButton1.Height-1,15,15,cssRed,2,cssBlue,[]); tmp.Draw(SpeedButton1.Glyph.Canvas,0,0,true); tmp.free; end;
Result in attachment.
Winni
Here is an unit that shows how to add blur to the entire window in Windows 10.To me, it looks like you have turned on some sort of transparency on the black(or default?) color and that is what you see. try to set the font color to an other dark color like blue and see if that helps at all.
The problem is that LCL controls are not displayed nicely, but BGRAControls are working fine.
Attached project 'aerodemo.zip'.
Any ideas?
In the screenshot an image (looks good) displayed with BGRAControls, and the Exit button made with LCL (looks bad).
PS.
You might have better lack if you set the forms.color to RgbToColor(250,250,250); instead of pure black.