You've already forked lazarus-ccr
LazMapViewer: Fix trackdemo sample. Add checkbox to use threads.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8110 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -211,6 +211,7 @@ object MainForm: TMainForm
|
|||||||
FEEB0000FEC70000FE980000FD570000EA0CFFFFFF00FFFFFF00FFFFFF00FFFF
|
FEEB0000FEC70000FE980000FD570000EA0CFFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00
|
||||||
}
|
}
|
||||||
|
POIImagesWidth = 0
|
||||||
POITextBgColor = clCream
|
POITextBgColor = clCream
|
||||||
OnCenterMove = MapViewCenterMove
|
OnCenterMove = MapViewCenterMove
|
||||||
OnZoomChange = MapViewZoomChange
|
OnZoomChange = MapViewZoomChange
|
||||||
@ -249,10 +250,10 @@ object MainForm: TMainForm
|
|||||||
OnPrepareCanvas = TrackGridPrepareCanvas
|
OnPrepareCanvas = TrackGridPrepareCanvas
|
||||||
ColWidths = (
|
ColWidths = (
|
||||||
30
|
30
|
||||||
|
85
|
||||||
|
85
|
||||||
|
85
|
||||||
84
|
84
|
||||||
84
|
|
||||||
84
|
|
||||||
87
|
|
||||||
)
|
)
|
||||||
Cells = (
|
Cells = (
|
||||||
4
|
4
|
||||||
@ -277,7 +278,7 @@ object MainForm: TMainForm
|
|||||||
Left = 0
|
Left = 0
|
||||||
Height = 19
|
Height = 19
|
||||||
Top = 565
|
Top = 565
|
||||||
Width = 152
|
Width = 150
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
Caption = 'Trace track automatically'
|
Caption = 'Trace track automatically'
|
||||||
@ -352,6 +353,19 @@ object MainForm: TMainForm
|
|||||||
BorderSpacing.Top = 8
|
BorderSpacing.Top = 8
|
||||||
Shape = bsBottomLine
|
Shape = bsBottomLine
|
||||||
end
|
end
|
||||||
|
object cbUseThreads: TCheckBox
|
||||||
|
AnchorSideLeft.Control = cbAutoTrace
|
||||||
|
AnchorSideLeft.Side = asrBottom
|
||||||
|
AnchorSideTop.Control = cbAutoTrace
|
||||||
|
Left = 166
|
||||||
|
Height = 19
|
||||||
|
Top = 565
|
||||||
|
Width = 79
|
||||||
|
BorderSpacing.Left = 16
|
||||||
|
Caption = 'Use threads'
|
||||||
|
OnChange = cbUseThreadsChange
|
||||||
|
TabOrder = 3
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object Splitter1: TSplitter
|
object Splitter1: TSplitter
|
||||||
Left = 606
|
Left = 606
|
||||||
|
@ -15,6 +15,7 @@ type
|
|||||||
TMainForm = class(TForm)
|
TMainForm = class(TForm)
|
||||||
Bevel1: TBevel;
|
Bevel1: TBevel;
|
||||||
cbAutoTrace: TCheckBox;
|
cbAutoTrace: TCheckBox;
|
||||||
|
cbUseThreads: TCheckBox;
|
||||||
clbTrackColor: TColorBox;
|
clbTrackColor: TColorBox;
|
||||||
Label1: TLabel;
|
Label1: TLabel;
|
||||||
lblInfo: TLabel;
|
lblInfo: TLabel;
|
||||||
@ -25,6 +26,7 @@ type
|
|||||||
TrackGrid: TStringGrid;
|
TrackGrid: TStringGrid;
|
||||||
Timer: TTimer;
|
Timer: TTimer;
|
||||||
procedure cbAutoTraceChange(Sender: TObject);
|
procedure cbAutoTraceChange(Sender: TObject);
|
||||||
|
procedure cbUseThreadsChange(Sender: TObject);
|
||||||
procedure clbTrackColorChange(Sender: TObject);
|
procedure clbTrackColorChange(Sender: TObject);
|
||||||
procedure FormActivate(Sender: TObject);
|
procedure FormActivate(Sender: TObject);
|
||||||
procedure MapViewCenterMove(Sender: TObject);
|
procedure MapViewCenterMove(Sender: TObject);
|
||||||
@ -104,6 +106,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TMainForm.cbUseThreadsChange(Sender: TObject);
|
||||||
|
begin
|
||||||
|
MapView.UseThreads := cbUseThreads.Checked;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TMainForm.clbTrackColorChange(Sender: TObject);
|
procedure TMainForm.clbTrackColorChange(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
MapView.DefaultTrackColor := clbTrackColor.Selected;
|
MapView.DefaultTrackColor := clbTrackColor.Selected;
|
||||||
|
@ -40,10 +40,9 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
</Unit0>
|
</Unit0>
|
||||||
<Unit1>
|
<Unit1>
|
||||||
<Filename Value="..\colored_tracks\main.pas"/>
|
<Filename Value="main.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="MainForm"/>
|
<ComponentName Value="MainForm"/>
|
||||||
<HasResources Value="True"/>
|
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
</Unit1>
|
</Unit1>
|
||||||
</Units>
|
</Units>
|
||||||
|
@ -10,8 +10,7 @@ uses
|
|||||||
athreads,
|
athreads,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
Interfaces, // this includes the LCL widgetset
|
Interfaces, // this includes the LCL widgetset
|
||||||
Forms, main
|
Forms, main;
|
||||||
{ you can add units after this };
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user