السلام عليكم ورحمة الله
إخواني إليكم هذه الدوال API التي قد تضفي إلى إطارات برامجكم نوعا من الجاذبية.
procedure TForm1.FormCreate(Sender: TObject);
begin
//This APIs tested under windows 2000 and XP pro with Delphi 6.
//Earlier version of Delphi maybe you should redefine the API functions
//If any problem please let me know
AnimateWindow(Handle, 500, AW_BLEND); // try these effects:
// AW_CENTER, AW_HOR_POSITIVE, AW_HOR_NEGATIVE, AW_VER_POSITIVE and AW_VER_NEGATIVE
ShowMEssage('Now well go TRANSPARENT'); SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_LAYERED); SetLayeredWindowAttributes(Handle, 1, Round(255 * 75 / 100), LWA_ALPHA);
end;[code]