Files
lazarus-ccr/components/virtualtreeview-new/trunk/demos/vtbasic/ViewCode.pas
blikblum d67d6d0a63 Merge fixes from 4.8 branch to trunk
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2788 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2013-09-07 19:08:28 +00:00

44 lines
896 B
ObjectPascal

unit ViewCode;
interface
uses
DelphiCompat, LCLIntf, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, LResources, SynHighlighterPas, SynEdit, LCLType;
type
{ TfrmViewCode }
TfrmViewCode =
class(TForm)
SynEdit1: TSynEdit;
SynPasSyn1: TSynPasSyn;
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
procedure TfrmViewCode.FormActivate(Sender: TObject);
var
r : TRect;
begin
{get size of desktop}
{$ifdef LCLWin32}
//todo: enable when SPI_GETWORKAREA is implemented
SystemParametersInfo(SPI_GETWORKAREA, 0, @r, 0);
Height := r.Bottom-Top;
Width := r.Right-Left;
{$endif}
end;
initialization
{$I ViewCode.lrs}
end.