Category : BASIC Source Code
Archive   : DATTIM.ZIP
Filename : DATETIM1.FRM

 
Output of file : DATETIM1.FRM contained in archive : DATTIM.ZIP
#Ì$–FK
FullWindow
"&ÿDateTimeÿÿÿhv@ ÒB#þ è( @€€€€€€€€€€€€€ÀÀÀÿÿÿÿÿÿÿÿÿÿÿÿIIII”””ÙI@ ÙI
”ÿÿð”Ù@ÿøÿð I
”ÿÿýßÿÿ𔐠@ÿÿÿÿÿÿÿ @”øÿÿÿÿÿÿÿ”ُÿÿÿÿÿÿÿðÙ
”øÿÿÿÿÿÿÿ𔐠@ÿÿÿÿÿÿÿ @
xøøÿÿÿÿÿÿÿ
 @Oÿÿÿý @
xHøøðpÿý
 @ÿÿÿÿ @
wøøðxÿðÿÿ
 IðÿðÙ@”xxøøÿÿÿð”ُÿÿÙ
wøøøøøÿÿ
 Ùw„O€Ù@wøøøð
” ÙwwpÙ@””ÙIIIIIÿÿÿÿÿÿÿÿÿðÿÿÀÿÿÿþü?øððààÀÀÀÀÀÀÀÀààððøü?þÿÿÿÀÿÿðÿÿÿÿÿÿÿÿÿ$Form1ÿ"€
Zeitmesser ÿèÿˆMenuÿ&Menuÿÿ‰ MenuClickÿ&ClickÿŠ
Separator1ÿÿÿ,€‹
MenuFormatÿdddd ddddd tttttÿÿ*€Œ
MenuFormatÿdddd ddddd hh:mmÿ)€
MenuFormatÿddd ddddd hh:mmÿ0€Ž
MenuFormatÿdddd d-mmmm-yy h:mm:ssÿ-€
MenuFormatÿddd dd-mmm-yy hh:mmÿ)€
MenuFormatÿddd d/m/yy h:mmÿ/€‘
MenuFormatÿEnter your own formatÿ’
Separator2ÿÿÿ“ MenuAboutÿ &About...ÿ”MenuHelpÿ&Helpÿìü
Q. ÒõZëyiÝ/ºä…9øÃE䃡ܸ ¿ INIFILENAME HelpFilePath¯DTFormat” Form_Unload° Abbrechení WindowState]NORMALNijWritePrivateProfileString!Left'TopÊ MenuClickChecked¦x«
MenuFormat3Caption4
Form_Paint“DatTimCurrentXxWidth SmallWindow Form_Loadh
InitializebGetPrivateProfileIntçGetPrivateProfileStringClear_MenuFormat_CheckmarksOTRUEBhModule GetClassWordhWnd GCW_HMODULEGetModuleFileNameò
ZeitmesserInterval Form_Resize MINIMIZEDnMenuAbout_ClickTBéNLMenuClick_ClickÇMenuHelp_ClickSH_NORMAL_FOCUSErrNoŽMB_OKÛ MB_ICONSTOPMenuFormat_ClickNIndex%ywFALSEZeitmesser_Timer] iZeitmesser; ActiveWindowž SystemFocus÷WndjGetActiveWindow SetFocusAPI§ DatTimOld GetWindowGW_OWNERVisible GW_HWNDFIRSTFlagsµ
SWP_NOMOVEÕ
SWP_NOSIZESWP_SHOWWINDOWSWP_NOACTIVATE SetWindowPosSeparator1_ClickZv Program related declarations
í DATETIME.INI Züÿÿ
i
y ÿÿÿÿÿÿÿÿ Form_Unload0¦X…”v> To make sure the parameters of the NORMAL window are saved,v: not the ones of the icon in case the form is minimized: ° ¡v* Write all parameters into DATETIME.INI:í DateTimeíLeft ÜÕ Z¿ ºí DateTimeíTop" äÕ Z¿ º ëøEíyes" 2íno í DateTimeí Click"  Z¿ ºä í DateTimeí FormatString  Z¿ º ºää>ÿÿÿÿ ºøI0í DateTimeí FormatNumber ºÕ Z¿ º0<ÿÿ 8 ºNÿÿÿÿv- Make sure the other form is unloaded also:79 ÿÿÿÿÿÿÿÿ
Form_Paint0TX!vD DatTim$ is a global variable containing the text to be displayed:wf|wf /tr 9I 9åÐßI0 9å £ E 2ÿÿ0åÐ E 8 9 NE8v; SmallWindow shall always follow FullWindow but is hiddeniv  as long FullWindow is active: Ü NÜ ä Nä9 ÿÿÿÿÿÿÿÿ Form_Load0X]$jv+ Get parameters from file (INIFILENAME$):oí DateTimeíLeftå, Zx Üí DateTimeíTop"ä Zx äåÓ í DateTimeí Click"íno åÿ Z º  ºÁ v* Remove trailing Chr$(0) and other stuff ÏÀ v% Remove leading and trailing blanksr Ü  íYES"¦ íTRUE¦õ íON¦õ í1"¦õ ëøåÓ í DateTimeí FormatStringíEnter your own format" åÿ Z º  ºÁ v* Remove trailing Chr$(0) and other stuff ÏÀ v% Remove leading and trailing blanksr äí DateTimeí FormatNumberä Zx º$«v@ Determine DTFormat$ and put check mark next to active format: º y Ê ºøv. Determine own path to find help file later.v$ First get own path and file name:å€Ó i í õÝ Ò Ò iå º i ºÁ iv!- Remove chr$(0) and other stuffv* Remove extension and replace with .WRI: iäÌí."ñ iÂÿÿ¤1ÿÿ i iÂÿÿä÷Á iJÿÿ iíWRI"£ iv Initialize display string:ÿí&""Initializing, one moment please... / Nÿv? Load start timer which runs for one second only, then forces:v= WindowState from MINIMIZED to NORMAL to facilitate loadingev from the WIN.INI load= line:oäÿåèä'9 ÿÿÿÿÿÿÿÿ5 Form_Resize0øX3 ¡ BñI v8 Zeitmesser(1) timer when resized from icon to normal: ä'ä¦Eåèä'2ÿÿv( WindowState = MINIMIZED, i.e. an icon v< If resized to icon then stop timer to reduce system load, v< hide the small form and clear text so it does not display v over the icon: ää' Ne x Nef| wf|8v WindowStatev4 Let the small form always follow the primary one: ¡ N¡9 ÿÿÿÿÿÿÿÿMenuAbout_Click0 XO$! bí

DateTime£ h£í  Copyright © 1991£ h£í  A.C.I. GmbH MicroSysteme£ h£í Hans-Georg Michna"£ h£í[email protected]"£ h£í$ Select Help for more info.£x9 ÿÿÿÿÿÿÿÿMenuClick_Click0,Xn ëøô ëø9 ÿÿÿÿÿÿÿÿMenuHelp_Click0.XvJ The help file path of DATETIME.WRI has been determined in Sub Form_LoadäþOþÿí

WRITE.EXE i£ “ @ º³ ¦Oÿÿ ¦ ºä¦õI$íWRITE.EXE not found. h£íInstall Windows properly."£ ¯ ¸£í Error"x89 ÿÿÿÿÿÿÿÿ

Initialize0rXjv1 Set general constants that cannot be declared:då
¬ä(¬£ hä$¬ b9 ÿÿÿÿÿÿÿÿMenuFormat_Click0(XÇÛ Ûä¦I v) Make sure that the window is repaintede v6 which may have been obscured by the unfolding menu: wx v& Ask user for its own format string: íDate and time codes: h£  íDay:£ b£í d..dddd"£ h£  í
Month:£ b£í m..mmmm"£ h£  í Year:"£ b£í

yy or yyyy£ h£  íFull date: ddddd£ h£  í Hour:"£ b£í h or hh"£ h£  í Minute:"£ b£í m or mm"£ h£  íSecond: s or ss"£ h£  íFull time: ttttt£ h£  íDate delimiter: /"£ h£  íExample: d/m/yy h:mm£  ä ä íEnter Your Own Format"ä@  í¦I0 ää0=ÿÿ 2ÿÿ0 ä 8 v' Now try if this string really works: äþ Oþÿ ä  ³ ¦ Oÿÿ ¦I0íInvalid format string: h£ b£ä£ h£íJFFFirst format activated instead. Click on Help to get more information.£ ¯ ¸£íFormat String Error"x0äî$Ç0=ÿÿ 88v' Common procedure for all menu items:$« Ê Ûø Û y9 ÿÿÿÿÿÿÿÿ2Clear_MenuFormat_Checkmarks0HX« ºää>ÿÿÿÿ é ºø ºNÿÿÿÿ9 ÿÿÿÿÿÿÿÿZeitmesser_Timer0zXòÿÿ

% ä¦I v9 Start timer, runs only for a short time after loading: ¡ B¦I0v6 Just loaded and a short time passed; time to resize0v5 to NORMAL, but then put focus back to where it wase0v (presumably Program Manager):0; 40 ° ¡0wòx0 4N 4 8 vO The start timer has fulfilled its purpose and will now be disabled for good:a ä2ÿÿv, iZeitmesser% = 1, i.e. main seconds timer ëøEx vI For repaint purposes the string is kept in the global variable DatTim$ / ]  y / v Check if got system focus:t ; º º ñI0 º 0  wj í wj¦ % 8 ƒI0v= In case FullWindow was moved put SmallWindow behind again:a00 Ü NÜ0 ä Nä0 %Iv! Still have focus:@ Ne x@ / ]ñEwx02ÿÿv Focus was lost:@v' Replace FullWindow with SmallWindow:l@w x@ Nex08 2ÿÿv6
Not visible, i.e. borderless SmallWindow is visible0 %I@ Ne x@wòx@=ÿÿ080 / ]ñE Nex0v If necessary, bring to top:0 Ní Žj NíñI@ § µõ Ãõ Õõ ž@ Níäääää ž$ç08 8v Visible/Not Visible8v iZeitmesser% = 19 ÿÿÿÿÿÿÿÿFý

  3 Responses to “Category : BASIC Source Code
Archive   : DATTIM.ZIP
Filename : DATETIM1.FRM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/