🚨 Fix UfrmLogin not compiling

This commit is contained in:
2024-11-03 16:32:35 +01:00
parent 4d92724f4e
commit 3f47eba2da
2 changed files with 17 additions and 18 deletions
+13 -14
View File
@@ -3,13 +3,13 @@ object frmFilter: TfrmFilter
Height = 615 Height = 615
Top = 171 Top = 171
Width = 290 Width = 290
ActiveControl = rgFilterType.RadioButton0
BorderIcons = [biSystemMenu, biMinimize] BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsToolWindow BorderStyle = bsToolWindow
Caption = 'Filter' Caption = 'Filter'
ClientHeight = 615 ClientHeight = 615
ClientWidth = 290 ClientWidth = 290
Font.Height = -14 Font.Height = -14
LCLVersion = '4.99.0.0'
OnCreate = FormCreate OnCreate = FormCreate
OnDestroy = FormDestroy OnDestroy = FormDestroy
OnShow = FormShow OnShow = FormShow
@@ -30,16 +30,16 @@ object frmFilter: TfrmFilter
ChildSizing.ShrinkVertical = crsScaleChilds ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 2 ChildSizing.ControlsPerLine = 2
ClientHeight = 29 ClientHeight = 38
ClientWidth = 278 ClientWidth = 268
Columns = 2 Columns = 2
ItemIndex = 0 ItemIndex = 0
Items.Strings = ( Items.Strings = (
'Exclusive' 'Exclusive'
'Inclusive' 'Inclusive'
) )
OnClick = rgFilterTypeClick
TabOrder = 0 TabOrder = 0
OnClick = rgFilterTypeClick
end end
object GroupBox1: TGroupBox object GroupBox1: TGroupBox
Left = 5 Left = 5
@@ -49,8 +49,8 @@ object frmFilter: TfrmFilter
Align = alClient Align = alClient
BorderSpacing.Around = 5 BorderSpacing.Around = 5
Caption = 'Tile filter' Caption = 'Tile filter'
ClientHeight = 303 ClientHeight = 312
ClientWidth = 278 ClientWidth = 268
TabOrder = 1 TabOrder = 1
object Label1: TLabel object Label1: TLabel
AnchorSideLeft.Control = GroupBox1 AnchorSideLeft.Control = GroupBox1
@@ -65,7 +65,6 @@ object frmFilter: TfrmFilter
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 5 BorderSpacing.Around = 5
Caption = 'Drag and Drop static tiles from the tile list on this list to add them to the filter.' Caption = 'Drag and Drop static tiles from the tile list on this list to add them to the filter.'
Color = clDefault
ParentColor = False ParentColor = False
WordWrap = True WordWrap = True
end end
@@ -118,9 +117,9 @@ object frmFilter: TfrmFilter
DE00D86FDF00D86FDF00E0A223004AC6080000000000580000005870DF000C70 DE00D86FDF00D86FDF00E0A223004AC6080000000000580000005870DF000C70
DF000000000000000000000000002070DF000000000000000000 DF000000000000000000000000002070DF000000000000000000
} }
OnClick = btnClearClick
ShowHint = True ShowHint = True
ParentShowHint = False ParentShowHint = False
OnClick = btnClearClick
end end
object btnDelete: TSpeedButton object btnDelete: TSpeedButton
AnchorSideLeft.Control = GroupBox1 AnchorSideLeft.Control = GroupBox1
@@ -169,9 +168,9 @@ object frmFilter: TfrmFilter
DE0068B0E00068B0E0000E049300F8049500F2009500070102000F049500F804 DE0068B0E00068B0E0000E049300F8049500F2009500070102000F049500F804
0200F2000200080104000E040200F8040400F200040009010500 0200F2000200080104000E040200F8040400F200040009010500
} }
OnClick = btnDeleteClick
ShowHint = True ShowHint = True
ParentShowHint = False ParentShowHint = False
OnClick = btnDeleteClick
end end
object vdtFilter: TLazVirtualDrawTree object vdtFilter: TLazVirtualDrawTree
Tag = 1 Tag = 1
@@ -227,8 +226,8 @@ object frmFilter: TfrmFilter
Width = 101 Width = 101
BorderSpacing.Around = 5 BorderSpacing.Around = 5
Caption = 'Filter active' Caption = 'Filter active'
OnChange = cbTileFilterChange
TabOrder = 1 TabOrder = 1
OnChange = cbTileFilterChange
end end
end end
object GroupBox2: TGroupBox object GroupBox2: TGroupBox
@@ -239,8 +238,8 @@ object frmFilter: TfrmFilter
Align = alBottom Align = alBottom
BorderSpacing.Around = 5 BorderSpacing.Around = 5
Caption = 'Hue filter' Caption = 'Hue filter'
ClientHeight = 189 ClientHeight = 198
ClientWidth = 278 ClientWidth = 268
TabOrder = 2 TabOrder = 2
object cbHueFilter: TCheckBox object cbHueFilter: TCheckBox
Left = 5 Left = 5
@@ -250,8 +249,8 @@ object frmFilter: TfrmFilter
Align = alTop Align = alTop
BorderSpacing.Around = 5 BorderSpacing.Around = 5
Caption = 'Filter active' Caption = 'Filter active'
OnChange = cbHueFilterChange
TabOrder = 0 TabOrder = 0
OnChange = cbHueFilterChange
end end
object vdtHues: TLazVirtualDrawTree object vdtHues: TLazVirtualDrawTree
Cursor = 63 Cursor = 63
@@ -275,7 +274,7 @@ object frmFilter: TfrmFilter
item item
Position = 2 Position = 2
Text = 'Name' Text = 'Name'
Width = 193 Width = 195
end> end>
Header.DefaultHeight = 21 Header.DefaultHeight = 21
Header.Height = 36 Header.Height = 36
+4 -4
View File
@@ -149,11 +149,11 @@ procedure TfrmFilter.vdtFilterDragDrop(Sender: TBaseVirtualTree;
Source: TObject; DataObject: IDataObject; Formats: TFormatArray; Source: TObject; DataObject: IDataObject; Formats: TFormatArray;
Shift: TShiftState; Pt: TPoint; var Effect: Integer; Mode: TDropMode); Shift: TShiftState; Pt: TPoint; var Effect: Integer; Mode: TDropMode);
var var
sourceTree: TVirtualDrawTree; sourceTree: TLazVirtualDrawTree;
selected, node: PVirtualNode; selected, node: PVirtualNode;
sourceTileInfo, targetTileInfo: PTileInfo; sourceTileInfo, targetTileInfo: PTileInfo;
begin begin
sourceTree := Source as TVirtualDrawTree; sourceTree := Source as TLazVirtualDrawTree;
if (sourceTree <> Sender) and (sourceTree <> nil) and if (sourceTree <> Sender) and (sourceTree <> nil) and
(sourceTree.Tag = 1) then (sourceTree.Tag = 1) then
begin begin
@@ -180,8 +180,8 @@ procedure TfrmFilter.vdtFilterDragOver(Sender: TBaseVirtualTree;
Source: TObject; Shift: TShiftState; State: TDragState; Pt: TPoint; Source: TObject; Shift: TShiftState; State: TDragState; Pt: TPoint;
Mode: TDropMode; var Effect: Integer; var Accept: Boolean); Mode: TDropMode; var Effect: Integer; var Accept: Boolean);
begin begin
if (Source <> Sender) and (Source is TVirtualDrawTree) and if (Source <> Sender) and (Source is TLazVirtualDrawTree) and
(TVirtualDrawTree(Source).Tag = 1) then (TLazVirtualDrawTree(Source).Tag = 1) then
begin begin
Accept := True; Accept := True;
end; end;