You've already forked lazarus-ccr
jvcllaz: Fix compilation of DB packages under Linux. Some fixes in DB-related demos.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6875 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -84,9 +84,10 @@ object Form1: TForm1
|
|||||||
Top = 0
|
Top = 0
|
||||||
Width = 594
|
Width = 594
|
||||||
Align = alTop
|
Align = alTop
|
||||||
|
BevelOuter = bvNone
|
||||||
Caption = '(Some) persons in the novel "The Grapes of Wrath" by John Steinbeck'
|
Caption = '(Some) persons in the novel "The Grapes of Wrath" by John Steinbeck'
|
||||||
Color = clBackground
|
Color = clBlack
|
||||||
Font.Color = clHighlightText
|
Font.Color = clWhite
|
||||||
Font.Height = -16
|
Font.Height = -16
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
|
@ -12,10 +12,9 @@ object Form1: TForm1
|
|||||||
AnchorSideLeft.Control = Owner
|
AnchorSideLeft.Control = Owner
|
||||||
AnchorSideTop.Control = Owner
|
AnchorSideTop.Control = Owner
|
||||||
AnchorSideRight.Control = Bevel1
|
AnchorSideRight.Control = Bevel1
|
||||||
AnchorSideBottom.Control = Owner
|
AnchorSideBottom.Control = StatusBar1
|
||||||
AnchorSideBottom.Side = asrBottom
|
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 509
|
Height = 486
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 378
|
Width = 378
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
@ -86,6 +85,8 @@ object Form1: TForm1
|
|||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
object Button1: TButton
|
object Button1: TButton
|
||||||
AnchorSideLeft.Control = Panel1
|
AnchorSideLeft.Control = Panel1
|
||||||
|
AnchorSideBottom.Control = Panel1
|
||||||
|
AnchorSideBottom.Side = asrBottom
|
||||||
Left = 4
|
Left = 4
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 4
|
Top = 4
|
||||||
|
@ -22,14 +22,14 @@
|
|||||||
<Version Major="1" Release="4"/>
|
<Version Major="1" Release="4"/>
|
||||||
<Files Count="1">
|
<Files Count="1">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="..\design\JvDB\JvDBReg.pas"/>
|
<Filename Value="..\design\JvDB\jvdbreg.pas"/>
|
||||||
<HasRegisterProc Value="True"/>
|
<HasRegisterProc Value="True"/>
|
||||||
<UnitName Value="JvDBReg"/>
|
<UnitName Value="JvDBReg"/>
|
||||||
</Item1>
|
</Item1>
|
||||||
</Files>
|
</Files>
|
||||||
<RequiredPkgs Count="5">
|
<RequiredPkgs Count="5">
|
||||||
<Item1>
|
<Item1>
|
||||||
<PackageName Value="JvStdCtrlsLazR"/>
|
<PackageName Value="jvstdctrlslazr"/>
|
||||||
</Item1>
|
</Item1>
|
||||||
<Item2>
|
<Item2>
|
||||||
<PackageName Value="IDEIntf"/>
|
<PackageName Value="IDEIntf"/>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
<PackageName Value="JvCoreLazD"/>
|
<PackageName Value="JvCoreLazD"/>
|
||||||
</Item3>
|
</Item3>
|
||||||
<Item4>
|
<Item4>
|
||||||
<PackageName Value="JvDBLazR"/>
|
<PackageName Value="jvdblazr"/>
|
||||||
</Item4>
|
</Item4>
|
||||||
<Item5>
|
<Item5>
|
||||||
<PackageName Value="FCL"/>
|
<PackageName Value="FCL"/>
|
||||||
|
@ -55,10 +55,10 @@
|
|||||||
</Files>
|
</Files>
|
||||||
<RequiredPkgs Count="4">
|
<RequiredPkgs Count="4">
|
||||||
<Item1>
|
<Item1>
|
||||||
<PackageName Value="JvStdCtrlsLazR"/>
|
<PackageName Value="jvstdctrlslazr"/>
|
||||||
</Item1>
|
</Item1>
|
||||||
<Item2>
|
<Item2>
|
||||||
<PackageName Value="JvCtrlsLazR"/>
|
<PackageName Value="jvctrlslazr"/>
|
||||||
</Item2>
|
</Item2>
|
||||||
<Item3>
|
<Item3>
|
||||||
<PackageName Value="JvCoreLazR"/>
|
<PackageName Value="JvCoreLazR"/>
|
||||||
|
@ -90,7 +90,7 @@ type
|
|||||||
FSearchText: string;
|
FSearchText: string;
|
||||||
FLookupMode: Boolean;
|
FLookupMode: Boolean;
|
||||||
FListActive: Boolean;
|
FListActive: Boolean;
|
||||||
FFocused: Boolean;
|
// FFocused: Boolean;
|
||||||
FSearchTickCount: Integer;
|
FSearchTickCount: Integer;
|
||||||
FOnKeyValueChange: TNotifyEvent;
|
FOnKeyValueChange: TNotifyEvent;
|
||||||
function CanModify: Boolean;
|
function CanModify: Boolean;
|
||||||
@ -120,8 +120,10 @@ type
|
|||||||
procedure SetReadOnly(Value: Boolean);
|
procedure SetReadOnly(Value: Boolean);
|
||||||
procedure CMGetDataLink(var Msg: TLMessage); message CM_GETDATALINK;
|
procedure CMGetDataLink(var Msg: TLMessage); message CM_GETDATALINK;
|
||||||
protected
|
protected
|
||||||
|
{
|
||||||
procedure FocusKilled(NextWnd: THandle); override;
|
procedure FocusKilled(NextWnd: THandle); override;
|
||||||
procedure FocusSet(PrevWnd: THandle); override;
|
procedure FocusSet(PrevWnd: THandle); override;
|
||||||
|
}
|
||||||
procedure GetDlgCode(var Code: TDlgCodes); override;
|
procedure GetDlgCode(var Code: TDlgCodes); override;
|
||||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||||
property DataField: string read FDataFieldName write SetDataFieldName;
|
property DataField: string read FDataFieldName write SetDataFieldName;
|
||||||
@ -359,7 +361,9 @@ type
|
|||||||
procedure SetOnCustomDraw(const Value: TTVCustomDrawEvent);
|
procedure SetOnCustomDraw(const Value: TTVCustomDrawEvent);
|
||||||
procedure SetOnCustomDrawItem(const Value: TTVCustomDrawItemEvent);
|
procedure SetOnCustomDrawItem(const Value: TTVCustomDrawItemEvent);
|
||||||
protected
|
protected
|
||||||
|
{
|
||||||
procedure FocusSet({%H-}PrevWnd: THandle); override;
|
procedure FocusSet({%H-}PrevWnd: THandle); override;
|
||||||
|
}
|
||||||
procedure CreateParams(var Params: TCreateParams); override;
|
procedure CreateParams(var Params: TCreateParams); override;
|
||||||
procedure ListLinkActiveChanged; override;
|
procedure ListLinkActiveChanged; override;
|
||||||
public
|
public
|
||||||
@ -438,7 +442,7 @@ implementation
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Variants,
|
Variants,
|
||||||
CommCtrl, Graphics, DBConst,
|
Graphics, DBConst,
|
||||||
JvJclUtils, JvDBConst, JvDBUtils, JvThemes;
|
JvJclUtils, JvDBConst, JvDBUtils, JvThemes;
|
||||||
|
|
||||||
//=== { TJvLookupDataSourceLink } ============================================
|
//=== { TJvLookupDataSourceLink } ============================================
|
||||||
@ -835,6 +839,7 @@ begin
|
|||||||
Code := [dcWantArrows, dcWantChars];
|
Code := [dcWantArrows, dcWantChars];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{
|
||||||
procedure TJvDBLookupControl.FocusKilled(NextWnd: THandle);
|
procedure TJvDBLookupControl.FocusKilled(NextWnd: THandle);
|
||||||
begin
|
begin
|
||||||
FFocused := False;
|
FFocused := False;
|
||||||
@ -848,7 +853,7 @@ begin
|
|||||||
inherited FocusSet(PrevWnd);
|
inherited FocusSet(PrevWnd);
|
||||||
Invalidate;
|
Invalidate;
|
||||||
end;
|
end;
|
||||||
|
}
|
||||||
procedure TJvDBLookupControl.CMGetDataLink(var Msg: TLMessage);
|
procedure TJvDBLookupControl.CMGetDataLink(var Msg: TLMessage);
|
||||||
begin
|
begin
|
||||||
Msg.Result := LRESULT(FDataLink);
|
Msg.Result := LRESULT(FDataLink);
|
||||||
@ -1569,10 +1574,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{
|
||||||
procedure TJvDBLookupTreeView.FocusSet(PrevWnd: THandle);
|
procedure TJvDBLookupTreeView.FocusSet(PrevWnd: THandle);
|
||||||
begin
|
begin
|
||||||
FTree.SetFocus;
|
FTree.SetFocus;
|
||||||
end;
|
end;
|
||||||
|
}
|
||||||
|
|
||||||
function TJvDBLookupTreeView.GetShowButtons: Boolean;
|
function TJvDBLookupTreeView.GetShowButtons: Boolean;
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user