You've already forked lazarus-ccr
* Fix compilation of vtbasic demo
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1509 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -22,7 +22,7 @@ unit VTDBExample;
|
||||
interface
|
||||
|
||||
uses
|
||||
delphicompat, LCLIntf, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
||||
delphicompat, LCLIntf, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, LCLType,
|
||||
VirtualTrees, StdCtrls, ExtCtrls, sqlite3ds, Menus, VTreeData, Buttons, LResources;
|
||||
|
||||
type
|
||||
@@ -113,8 +113,8 @@ implementation
|
||||
r : TRect;
|
||||
begin
|
||||
{get size of desktop}
|
||||
//todo: not implemented under gtk
|
||||
{$ifdef Windows}
|
||||
{$ifdef LCLWin32}
|
||||
//todo: enable when SPI_GETWORKAREA is implemented
|
||||
SystemParametersInfo(SPI_GETWORKAREA, 0, @r, 0);
|
||||
Height := r.Bottom-Top;
|
||||
Width := r.Right-Left;
|
||||
|
@@ -20,7 +20,7 @@ interface
|
||||
|
||||
uses
|
||||
delphicompat, LCLIntf, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, VirtualTrees, ExtCtrls, StdCtrls, LResources;
|
||||
Dialogs, VirtualTrees, ExtCtrls, StdCtrls, LResources, LCLType;
|
||||
|
||||
type
|
||||
TfrmVTNoData =
|
||||
@@ -271,8 +271,9 @@ implementation
|
||||
var
|
||||
r : TRect;
|
||||
begin
|
||||
{$ifdef LCLWin32}
|
||||
//todo: enable when SPI_GETWORKAREA is implemented
|
||||
{get size of desktop}
|
||||
{$ifdef Windows}
|
||||
SystemParametersInfo(SPI_GETWORKAREA, 0, @r, 0);
|
||||
Height := r.Bottom-Top;
|
||||
{$endif}
|
||||
|
@@ -3,8 +3,8 @@ unit ViewCode;
|
||||
interface
|
||||
|
||||
uses
|
||||
delphicompat, LCLIntf, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, StdCtrls, LResources, SynHighlighterPas, SynEdit;
|
||||
DelphiCompat, LCLIntf, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, StdCtrls, LResources, SynHighlighterPas, SynEdit, LCLType;
|
||||
|
||||
type
|
||||
|
||||
@@ -29,7 +29,8 @@ implementation
|
||||
r : TRect;
|
||||
begin
|
||||
{get size of desktop}
|
||||
{$ifdef Windows}
|
||||
{$ifdef LCLWin32}
|
||||
//todo: enable when SPI_GETWORKAREA is implemented
|
||||
SystemParametersInfo(SPI_GETWORKAREA, 0, @r, 0);
|
||||
Height := r.Bottom-Top;
|
||||
Width := r.Right-Left;
|
||||
|
Reference in New Issue
Block a user