{"id":800,"date":"2008-05-28T07:04:04","date_gmt":"2008-05-28T07:04:04","guid":{"rendered":"http:\/\/6teen.ru\/?p=713"},"modified":"2008-05-28T07:04:04","modified_gmt":"2008-05-28T07:04:04","slug":"10549","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=800","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b"},"content":{"rendered":"<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\n\n\u041f\u0435\u0440\u0435\u0434 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0432\u044b\u0451\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f! \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:\n\n\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \"New Application\" (\"\u041d\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\") \u0438\u0437 \u043c\u0435\u043d\u044e \"File\" (\"\u0424\u0430\u0439\u043b\")\n\n\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u0444\u043e\u0440\u043c\u0443: \"New Form\"(\"\u041d\u043e\u0432\u0430\u044f \u0444\u043e\u0440\u043c\u0430\") \u0438\u0437 \u043c\u0435\u043d\u044e \"File\" (\"\u0424\u0430\u0439\u043b\"). \u042d\u0442\u043e \u043e\u043a\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u043e\u0439. \u0423 \u043d\u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0440\u0430\u043c\u043a\u0443 \u0441 \u043f\u043e\u043b\u043e\u0441\u043e\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \"BorderStyle\" \u0432 \"bsNone\". \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0434\u0438\u0437\u0430\u0439\u043d \u043e\u043a\u043d\u0430 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438.\n\n\u0418\u0437 \u043c\u0435\u043d\u044e \"Project\" (\"\u041f\u0440\u043e\u0435\u043a\u0442\") \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \"Options\"(\"\u041e\u043f\u0446\u0438\u0438\"). \u0417\u0430\u0439\u0442\u0438 \u043d\u0430 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 \"Forms\"(\"\u0424\u043e\u0440\u043c\u044b\") \u0438 Form2 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u043e\u0440\u043c (Auto-Create forms) \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0444\u043e\u0440\u043c (Available forms)\n\n\u041d\u0430 \u0444\u043e\u0440\u043c\u0443-\u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0443 \u0441 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 System \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Timer. \u0412 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 Interval \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 5000, \u0430 \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0438 OnTimer \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c:\n\nTimer1.Enabled := false;\n\n\u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0430 \u0431\u044b\u043b\u0430 \u0432\u0438\u0434\u043d\u0430 \u0432 \u043f\u0435\u0440\u0438\u043e\u0434 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 - 5000 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434, \u0442.\u0435. 5 \u0441\u0435\u043a\u0443\u043d\u0434.\n\n\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0430\u0436\u0430\u0432 Ctrl+F12 \u0438 \u0432\u044b\u0431\u0440\u0430\u0432 Project1. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:\n\nprogram Project1;\n\nuses\nForms,\nUnit1 in 'Unit1.pas' {Form1},\nUnit2 in 'Unit2.pas' {Form2};\n\n{$R *.RES}\n\nbegin\nApplication.Initialize;\nApplication.CreateForm(TForm1, Form1);\nApplication.Run;\nend.\n\n\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0432\u043d\u0435\u0441\u0451\u043c \u0441\u044e\u0434\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0442\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u043c:\n\nprogram Project1;\n\nuses\nForms,\nUnit1 in 'Unit1.pas' {Form1},\nUnit2 in 'Unit2.pas' {Form2};\n\n{$R *.RES}\n\nbegin\nApplication.Initialize;\nForm2 := TForm2.Create(Application);\nForm2.Show;\nForm2.Update;\nwhile Form2.Timer1.Enabled do\nApplication.ProcessMessages;\nApplication.CreateForm(TForm1, Form1);\nForm2.Hide;\nForm2.Free;\nApplication.Run;\nend.\n\n**************************************************************\n\n\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\n\n\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430 \u0438 \u0442.\u0434., \u043b\u0443\u0447\u0448\u0435 \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435\n\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 Word).\n\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e:\n1. \u0421\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u0444\u043e\u0440\u043c\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 SplashForm).\n2. \u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0435 \u0435\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 (availableForms).\n3. \u0412 Progect Source \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440):\n\nprogram Splashin;\nuses\nForms,\nMain in 'MAIN.PAS',\nSplash in 'SPLASH.PAS';\n{$R *.RES}\nbegin\ntry\nApplication.Initialize;\nSplashForm := TSplashForm.Create(Application);\nSplashForm.Show;\nSplashForm.Update;\nApplication.CreateForm(TMainForm, MainForm);\nSplashForm.Hide;\nfinally\nSplashForm.Free;\nend;\nApplication.Run;\nend.\n\n\u0418 \u0444\u043e\u0440\u043c\u0430 SplashForm \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043f\u043e\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f Create \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0435\u0442\n\u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443:\n1. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u043d\u0430 \u0444\u043e\u0440\u043c\u0443 \u0442\u0430\u0439\u043c\u0435\u0440 \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c:\n\nprocedure TSplashForm.Timer1Timer(Sender: TObject);\nbegin\nTimer1.Enabled := False;\nend;\n\n2. \u0421\u043e\u0431\u044b\u0442\u0438\u0435 onCloseQuery \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u044b:\n\nprocedure TSplashForm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);\nbegin\nCanClose := Not Timer1.Enabled;\nend;\n\n3. \u0418 \u043f\u0435\u0440\u0435\u0434 SplashForm.Hide; \u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u0446\u0438\u043a\u043b:\n\nrepeat\nApplication.ProcessMessages;\nuntil SplashForm.CloseQuery;\n\n4. \u0412\u0441\u0435! \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u0442\u0430\u0439\u043c\u0435\u0440\u0435 \u043f\u0435\u0440\u0438\u043e\u0434 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 3-4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.\n5. \u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a, \u0443 \u0442\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c Caption:\nSetWindowLong (Main.Handle,GWL_STYLE, GetWindowLong(Main.Handle, GWL_STYLE) AND NOT WS_CAPTION OR\nWS_SIZEBOX);\n\n\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043e\u0442 \"Sevastyanov Andrey\" (mystic2000@newmail.ru)\n\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u044d\u0442\u043e, \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u043a\u043e\u0440\u044f\u0432\u043e. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0433\u0430 \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u043b\u0433\u043e, \u0442\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0432  \u043d\u0430 \u044d\u0442\u0443 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0443 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c, \u0430 \u043f\u043e\u0442\u043e\u043c\n\u0443\u0431\u0440\u0430\u0432 \u0435\u0435 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u0435\u0440\u043e\u0435  \u043f\u044f\u0442\u043d\u043e \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0410 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a Delphi 6...\n\u041f\u043e-\u043c\u043e\u0435\u043c\u0443, \u043b\u0443\u0447\u0448\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c splash-\u0444\u043e\u0440\u043c\u0443 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435.\n\n\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043e\u0442 \"digimaster\" (digimaster@mail.ru)\n\u041b\u0443\u0447\u0448\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a:\nprocedure TForm1.FormCreate(Sender: TObject);\nvar\nt:integer;\nbegin\nSplashForm:=TSplashForm.Create(nil);\nSplashForm.Show;\nt:=GetTickCount;\nwhile (GetTickCount-t)5000 do begin \/\/\u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0448\u043b\u043e 5000 \u043c\u0438\u043b\u043b\u0438\u0432\u0435\u043a\nsleep(0);\nApplication.ProcessMessages;\nif not SplashForm.Visible then break;\nend;\n\/\/Application Init Code here...\n\nSplashForm.Free;\nend;\n\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c SplashForm unit \u0432 \u0441\u043f\u0438\u0441\u043e\u043a USES \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b.\n\n***********************************************************\n\n\u041c\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431.\n\n\u0412 \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:\nbegin\n  FSplash:=TFSplash.Create(Application);\n  FSplash.Show;\n  FSplash.Update;\n  Application.CreateForm(TForm1, Form1);\n  Application.Run;\nend.\n\n\u0412 \u0444\u0430\u0439\u043b\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b:\nprocedure TForm1.FormActivate(Sender: TObject);\nbegin\n...\nFSplash.Free;\n...\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,386],"tags":[1339,937,322,1769],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/800"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=800"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}