@@ -840,7 +840,6 @@ procedure twebstreamerfo.oneventstart(const Sender: TObject);
840840 rect1: rectty;
841841begin
842842
843- hide;
844843 { $if defined(darwin) and defined(macapp)}
845844 binPath := IncludeTrailingBackslash(ExtractFilePath(ParamStr(0 )));
846845 ordir := copy(binPath, 1 , length(binPath) -6 ) + ' Resources/' ;
@@ -1033,19 +1032,12 @@ procedure twebstreamerfo.oneventstart(const Sender: TObject);
10331032
10341033 tmainmenu1.menu.itembynames([' showgrid' ]).Checked := showgrid.Value ;
10351034
1036- // onchangeshowwave(nil);
1037-
1038-
10391035 tmainmenu1.menu.itembynames([' about' , ' title' ]).Caption :=
10401036 ' Simple Web Player v1.' + IntToStr(versionnum) + ' on ' + platformtext;
10411037
1042-
10431038 rect1 := application.screenrect(window);
10441039
10451040 fontheight := round(rect1.cy / 800 * 12 );
1046- // hide;
1047- // resizesp(fontheight);
1048- // hide;
10491041 oncheckdevices();
10501042
10511043 edrecformat.Value := 0 ;
@@ -1054,14 +1046,12 @@ procedure twebstreamerfo.oneventstart(const Sender: TObject);
10541046
10551047 checkconnection();
10561048
1057- Visible := False;
1058-
10591049 optionswindow := [wo_taskbar];
10601050 window.recreatewindow;
10611051
1062- Visible := False;
1063-
10641052 application.ProcessMessages;
1053+
1054+ Visible := False;
10651055 onchangeshowwave(nil );
10661056 resizesp(fontheight);
10671057 Show;
@@ -1243,7 +1233,7 @@ procedure twebstreamerfo.oncreate(const Sender: TObject);
12431233 { $ENDIF}
12441234begin
12451235 hide;
1246-
1236+
12471237 SetExceptionMask(GetExceptionMask + [exZeroDivide] + [exInvalidOp] +
12481238 [exDenormalized] + [exOverflow] + [exUnderflow] + [exPrecision]);
12491239
@@ -1300,7 +1290,7 @@ procedure twebstreamerfo.oncreate(const Sender: TObject);
13001290
13011291 statname := IncludeTrailingBackslash(ExtractFilePath(ParamStr(0 ))) + ' swp.ini' ;
13021292 tstatfile1.filename := statname;
1303-
1293+
13041294end ;
13051295
13061296procedure twebstreamerfo.onreset (const Sender: TObject);
@@ -2127,18 +2117,18 @@ procedure twebstreamerfo.onexport(const Sender: TObject);
21272117procedure twebstreamerfo.oncreated (const Sender: TObject);
21282118begin
21292119 hide;
2120+ height := 1 ;
2121+ width := 1 ;
21302122end ;
21312123
21322124procedure twebstreamerfo.onresize (const Sender: TObject);
21332125begin
2134-
21352126 if (showgrid.Value ) and (isinit) then
21362127 begin
21372128 griddisp.Height := Height - griddisp.top - baddrow.Height - 18 - font.Height;
21382129 baddrow.top := griddisp.bottom + 6 ;
21392130 bdelrow.top := baddrow.top;
21402131 end ;
2141-
21422132end ;
21432133
21442134end .
0 commit comments