Delphi Tutorial
Archived Posts from this Category
Archived Posts from this Category
With the following function we can use the GetAliasParams method of TSession to get the directory mapping for an alias.
0 comments Monday 12 Feb 2007 | Delphi Tutorial | Database
Extract an icon from application.
0 comments Monday 05 Feb 2007 | Delphi Tutorial | Files
A text replace function for strings.
0 comments Thursday 01 Feb 2007 | Delphi Tutorial | Strings
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
Here Borland Database Engine (BDE) error list:
1 comment Sunday 21 Jan 2007 | Delphi Tutorial | Database