Hello everyone, may I ask if it is possible to make background of a borderless form transparent in Linux, so I can use alphablended png image as a background while retaining opacity of all controls on the form?
All solutions I found are windows-specific, and TForm.SetShape method wont work for me, as it doesn't allow for semitransparency
Second question: I also having trouble drawing my png image directly on the form's canvas (via loading png from resources). Drawing same image on a TImage component works fine like this:
MyTImageObject.Picture.LoadFromResourceName(hInstance, resnameString);
But when I use
var img:TBitmap;
img:=TBitmap.Create;
img.LoadFromResourceName(hInstance, resnameString);
I get an exception (EResNotFound), also get it when loading resource into TResourceStream first.
And when I use
var img:TPortableNetworkGraphic;
img:=TPortableNetworkGraphic.Create;
img.LoadFromResourceName(hInstance, resnameString);
program runs, but nothing is drawn on Form.Canvas.Draw(0,0,img) call
Am I correct to assume that even If I manage to put my image on form canvas, opaque form background will still be seen?