Skip to content

Commit b3617b6

Browse files
authored
Strech screenshot got from Owon
1 parent c48b69d commit b3617b6

File tree

4 files changed

+50
-41
lines changed

4 files changed

+50
-41
lines changed

src/owon_oszi.lpi

+28-20
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
<ProjectOptions>
44
<Version Value="12"/>
55
<General>
6+
<Flags>
7+
<CompatibilityMode Value="True"/>
8+
</Flags>
69
<SessionStorage Value="InProjectDir"/>
710
<Title Value="owon_oszi"/>
811
<Scaled Value="True"/>
912
<ResourceType Value="res"/>
1013
<UseXPManifest Value="True"/>
1114
<XPManifest>
12-
<DpiAware Value="True"/>
15+
<DpiAware Value="True/PM"/>
1316
</XPManifest>
1417
<Icon Value="0"/>
1518
</General>
16-
<BuildModes>
17-
<Item Name="Default" Default="True"/>
19+
<BuildModes Count="1">
20+
<Item1 Name="Default" Default="True"/>
1821
</BuildModes>
1922
<PublishOptions>
2023
<Version Value="2"/>
@@ -23,26 +26,26 @@
2326
<RunParams>
2427
<FormatVersion Value="2"/>
2528
</RunParams>
26-
<RequiredPackages>
27-
<Item>
29+
<RequiredPackages Count="2">
30+
<Item1>
2831
<PackageName Value="TAChartLazarusPkg"/>
29-
</Item>
30-
<Item>
32+
</Item1>
33+
<Item2>
3134
<PackageName Value="LCL"/>
32-
</Item>
35+
</Item2>
3336
</RequiredPackages>
34-
<Units>
35-
<Unit>
37+
<Units Count="2">
38+
<Unit0>
3639
<Filename Value="owon_oszi.lpr"/>
3740
<IsPartOfProject Value="True"/>
38-
</Unit>
39-
<Unit>
41+
</Unit0>
42+
<Unit1>
4043
<Filename Value="owon_oszi_main.pas"/>
4144
<IsPartOfProject Value="True"/>
4245
<ComponentName Value="main"/>
4346
<HasResources Value="True"/>
4447
<ResourceBaseClass Value="Form"/>
45-
</Unit>
48+
</Unit1>
4649
</Units>
4750
</ProjectOptions>
4851
<CompilerOptions>
@@ -56,6 +59,11 @@
5659
</SearchPaths>
5760
<CodeGeneration>
5861
<SmartLinkUnit Value="True"/>
62+
<Checks>
63+
<IOChecks Value="True"/>
64+
<RangeChecks Value="True"/>
65+
<OverflowChecks Value="True"/>
66+
</Checks>
5967
<Optimizations>
6068
<OptimizationLevel Value="2"/>
6169
</Optimizations>
@@ -76,16 +84,16 @@
7684
</Linking>
7785
</CompilerOptions>
7886
<Debugging>
79-
<Exceptions>
80-
<Item>
87+
<Exceptions Count="3">
88+
<Item1>
8189
<Name Value="EAbort"/>
82-
</Item>
83-
<Item>
90+
</Item1>
91+
<Item2>
8492
<Name Value="ECodetoolError"/>
85-
</Item>
86-
<Item>
93+
</Item2>
94+
<Item3>
8795
<Name Value="EFOpenError"/>
88-
</Item>
96+
</Item3>
8997
</Exceptions>
9098
</Debugging>
9199
</CONFIG>

src/owon_oszi.lpr

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
{$IFDEF UNIX}
77
cthreads,
88
{$ENDIF}
9-
{$IFDEF HASAMIGA}
10-
athreads,
11-
{$ENDIF}
129
Interfaces, // this includes the LCL widgetset
1310
Forms, tachartlazaruspkg, owon_oszi_main
1411
{ you can add units after this };

src/owon_oszi_main.lfm

+14-16
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
object main: Tmain
2-
Left = 1258
3-
Height = 440
4-
Top = 137
2+
Left = 1853
3+
Height = 460
4+
Top = 189
55
Width = 640
66
AllowDropFiles = True
77
Caption = 'main'
8-
ClientHeight = 416
8+
ClientHeight = 436
99
ClientWidth = 640
10-
Constraints.MinHeight = 440
10+
Constraints.MinHeight = 460
1111
Constraints.MinWidth = 640
1212
KeyPreview = True
1313
Menu = MainMenu
@@ -72,18 +72,18 @@ object main: Tmain
7272
end
7373
object Pic: TPanel
7474
Left = 200
75-
Height = 358
75+
Height = 378
7676
Top = 58
7777
Width = 440
7878
Align = alClient
79-
ClientHeight = 358
79+
ClientHeight = 378
8080
ClientWidth = 440
8181
Color = clWhite
8282
ParentColor = False
8383
TabOrder = 2
8484
object Image: TImage
8585
Left = 1
86-
Height = 356
86+
Height = 376
8787
Top = 1
8888
Width = 438
8989
Align = alClient
@@ -3676,7 +3676,7 @@ object main: Tmain
36763676
end
36773677
object Chart: TChart
36783678
Left = 1
3679-
Height = 356
3679+
Height = 376
36803680
Top = 1
36813681
Width = 438
36823682
AxisList = <
@@ -3757,16 +3757,16 @@ object main: Tmain
37573757
end
37583758
object LeftGUI: TPanel
37593759
Left = 0
3760-
Height = 358
3760+
Height = 378
37613761
Top = 58
37623762
Width = 200
37633763
Align = alLeft
3764-
ClientHeight = 358
3764+
ClientHeight = 378
37653765
ClientWidth = 200
37663766
TabOrder = 1
37673767
object rgTeiler: TRadioGroup
37683768
Left = 10
3769-
Height = 56
3769+
Height = 72
37703770
Top = 192
37713771
Width = 182
37723772
AutoFill = True
@@ -3778,7 +3778,7 @@ object main: Tmain
37783778
ChildSizing.ShrinkVertical = crsScaleChilds
37793779
ChildSizing.Layout = cclLeftToRightThenTopToBottom
37803780
ChildSizing.ControlsPerLine = 1
3781-
ClientHeight = 39
3781+
ClientHeight = 55
37823782
ClientWidth = 180
37833783
Enabled = False
37843784
ItemIndex = 0
@@ -3787,8 +3787,6 @@ object main: Tmain
37873787
'1:10'
37883788
)
37893789
OnClick = rgTeilerClick
3790-
ParentBackground = False
3791-
ParentColor = False
37923790
TabOrder = 0
37933791
end
37943792
object lblFreq: TLabel
@@ -3843,7 +3841,7 @@ object main: Tmain
38433841
object gbKursor: TGroupBox
38443842
Left = 10
38453843
Height = 80
3846-
Top = 264
3844+
Top = 280
38473845
Width = 182
38483846
Caption = 'gbKursor'
38493847
ClientHeight = 63

src/owon_oszi_main.pas

+8-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ implementation
203203

204204
{$R *.lfm}
205205

206-
{.$I owon_dt.inc} {German GUI}
207-
{$I owon_en.inc} {English GUI}
206+
{$I owon_dt.inc} {German GUI}
207+
{.$I owon_en.inc} {English GUI}
208208

209209
{ Tmain }
210210

@@ -359,6 +359,9 @@ procedure Tmain.SetCSVenv; {Setup for CSV mode}
359359
begin
360360
rgTeiler.Enabled:=false;
361361
Image.Visible:=false;
362+
Image.Stretch:=false;
363+
Image.Proportional:=false;
364+
// Image.Tag:=0; {Disable image zoom}
362365
Chart.Visible:=true;
363366
actSaveScreen.Enabled:=true;
364367
end;
@@ -367,6 +370,9 @@ procedure Tmain.SetBMPenv; {Setup for BMP mode}
367370
begin
368371
rgTeiler.Enabled:=false;
369372
Image.Visible:=true;
373+
Image.Stretch:=true;
374+
Image.Proportional:=true;
375+
// Image.Tag:=1; {Enable image zoom}
370376
Chart.Visible:=false;
371377
actSaveScreen.Enabled:=false;
372378
ClearMetaData;

0 commit comments

Comments
 (0)