Forms
Archived Posts from this Category
Archived Posts from this Category
How to Create Rounded Form
0 comments Wednesday 07 Mar 2007 | Delphi Tutorial | Forms
You can create a gradient filled form to make form that is more beautiful. Continue Reading »
0 comments Friday 02 Mar 2007 | Delphi Tutorial | Forms
Hide the titlebar.
Continue Reading »
0 comments Friday 16 Feb 2007 | Delphi Tutorial | Forms, Windows API
If you want to prevent the user to move a window you have to hide the caption. This is done by changing the window attributes in the FormCreate event. Its also possible to set the property BorderStyle to ‘bsNone’, but than the window has no frame at all.
Continue Reading »
0 comments Thursday 15 Feb 2007 | Delphi Tutorial | Forms
function GetDesktopScreenShot:TBitmap;
var
Desktop:HDC;
begin
Result:= TBitmap.Create;
Desktop:= GetDC(0);
try
try
Result.PixelFormat := pf32bit;
Result.Width := Screen.Width;
Result.Height := Screen.Height;
BitBlt(Result.Canvas.Handle,0,0, Result.Width, Result.Height, Desktop,0,0,SRCCOPY);
Result.Modified := True;
finally
ReleaseDC(0,Desktop);
end;
except
Result.Free;
Result:=nil;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Image1.Picture.Bitmap := GetDesktopScreenShot;
end;
0 comments Sunday 21 Jan 2007 | Delphi Tutorial | Forms