オンオフがしたい。
procedure Trancrate(OnFlg:Boolean);
var
sColor: TColor;
attrib: Integer;
HND: LCLType.HWND;
begin
if OnFlg then
begin
HND:= Form1.Handle;
Form1.Color:= clPurple;
sColor:= clPurple;
attrib := GetWindowLongA(HND, GWL_EXSTYLE);
SetWindowLongA(HND, GWL_EXSTYLE, attrib Or WS_EX_LAYERED);
SetLayeredWindowAttributes(HND, sColor, 0, 1);
end else begin
end;
end;
自己完結しました。
ありがとうござます。