freepascal - How can I make my form blur -


i create form in lazarus. , want blur, not transparent. , find code

    function setlayeredwindowattributes (hwnd:longint; color:longint; x:byte; alpha:longint):bool stdcall; external 'user32';     function setwindowlonga (hwnd:longint; nindex:longint; dwnewlong:longint):longint stdcall; external 'user32';     function getwindowlonga ( hwnd:longint; nindex:longint):longint stdcall; external 'user32';  const   lwa_colorkey = 1;   lwa_alpha = 2;   lwa_both = 3;   ws_ex_layered = $80000;   gwl_style = -16;    var   form1: tform1;   implementation    procedure settranslucent(thehwnd: longint; color: longint; ntrans: integer); var attrib:longint; begin   attrib := getwindowlonga(thehwnd, gwl_style);   setwindowlonga (thehwnd, gwl_exstyle, attrib or ws_ex_layered);   setlayeredwindowattributes (thehwnd, color, ntrans,1); end;   procedure tform1.formcreate(sender: tobject); begin // borderstyle := bsnone   settranslucent (form1.handle, $00836b74 , 0);  end;          

but code make form transparent.

how can fix it?


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -