PageRenderTime 64ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/Beta_3_8_13/xpeasy.pas

#
Pascal | 158 lines | 57 code | 11 blank | 90 comment | 2 complexity | 32c9a539337222ecf2663af66b040acb MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause
  1. { --------------------------------------------------------------- }
  2. { Dieser Quelltext ist urheberrechtlich geschuetzt. }
  3. { (c) 2000 OpenXP Team (Urversion von Martin Wodrich ) }
  4. { , http://www.openxp.de }
  5. { }
  6. { Xp-Easy-Konfigurationsmodus (OpenXP) }
  7. { --------------------------------------------------------------- }
  8. { $Id: xpeasy.pas 6619 2003-10-25 13:36:15Z $ }
  9. {$I xpdefine.inc}
  10. unit xpeasy;
  11. interface
  12. uses
  13. {$IFDEF NCRT }
  14. xpcurses,
  15. {$ENDIF }
  16. typeform,fileio,inout,keys,winxp,win2,maske,datadef,database,
  17. maus2,mouse,resource,xpglobal,
  18. xp0,xp1,xp1o,xp1o2,xp1input,xp2c;
  19. function NeuBenutzergruss:boolean;
  20. procedure EasyMainDialog;
  21. implementation
  22. function NeuBenutzergruss:boolean;
  23. var x,y,i : integer;
  24. msglines : byte;
  25. z : taste;
  26. s:String;
  27. begin
  28. msglines:=ival(getres2(14000,0));
  29. msgbox(73,msglines+7,'',x,y);
  30. moff;
  31. // wrt(x+3,y+1,'Cross \\// '+
  32. // RightStr(' ' + verstr+pformstr+betastr+' (c) 1992-99 '+pm, 50));
  33. // wrt(x+3,y+2,' //\\ Point');
  34. s:=x_copyright + ' ' + author_name;
  35. wrt(x+67-length(s),y+2,s);
  36. for i:=1 to msglines do
  37. begin
  38. s:=getres2(14000,i);
  39. wrt(x+3,y+3+i, s);
  40. end;
  41. mon;
  42. pushhp(1550);
  43. NeuBenutzergruss := (ReadButton(x+35,y+msglines+5,2,'*'+getres2(14000,30),1,true,z) <> 1);
  44. pophp;
  45. closebox;
  46. freeres;
  47. end;
  48. procedure EasyMainDialog;
  49. var x,y,i : Integer;
  50. msglines: Integer;
  51. brk : boolean;
  52. begin
  53. {Adressconfig fuer Easy}
  54. msglines:=ival(getres2(14001,0));
  55. dialog(ival(getres2(252,100)),8+msglines,getres2(252,101),x,y); { 'Adreáeinstellungen (ZCONNECT / RFC)' }
  56. msglines:=ival(getres2(14001,0));
  57. for i:=1 to msglines do
  58. begin
  59. maddtext(3,i+1,getres2(14001,i),col.coldialog);
  60. end;
  61. maddstring(3,3+msglines,getres2(252,103),postadresse,47,PostadrLen,''); { 'Postanschrift ' }
  62. msetvfunc(TestPostanschrift);
  63. maddstring(3,4+msglines,getres2(252,104),telefonnr,47,TeleLen,'>VFBQP +-0123456789');
  64. msetvfunc(TestTelefon); { 'Telefon ' }
  65. maddstring(3,5+msglines,getres2(252,105),wwwHomepage,47,Homepagelen,range(' ','~'));
  66. msetvfunc(TestUrl);
  67. maddbool(3,7+msglines,getres2(252,109),adrpmonly); { 'Adresse, Telefon und Homepage nur in PMs' }
  68. readmask(brk);
  69. closemask;
  70. closebox;
  71. end;
  72. {
  73. $Log: xpeasy.pas,v $
  74. Revision 1.17 2002/02/21 13:52:33 mk
  75. - removed 21 hints and 28 warnings
  76. Revision 1.16 2001/10/15 09:04:22 ml
  77. - compilable with Kylix ;-)
  78. Revision 1.15 2001/09/10 15:58:03 ml
  79. - Kylix-compatibility (xpdefines written small)
  80. - removed div. hints and warnings
  81. Revision 1.14 2001/07/31 13:10:35 mk
  82. - added support for Delphi 5 and 6 (sill 153 hints and 421 warnings)
  83. Revision 1.13 2001/07/28 12:04:15 mk
  84. - removed crt unit as much as possible
  85. Revision 1.12 2000/11/18 14:46:56 hd
  86. - Unit DOS entfernt
  87. Revision 1.11 2000/11/04 23:01:14 fe
  88. Made 'hauruck' compilable with FreeBSD.
  89. Revision 1.10 2000/10/17 10:05:57 mk
  90. - Left->LeftStr, Right->RightStr
  91. Revision 1.9 2000/07/21 17:39:57 mk
  92. - Umstellung auf AllocHeaderMem/FreeHeaderMem
  93. Revision 1.8 2000/07/12 14:43:47 mk
  94. - einige ^AnsiString in einen normalen String umgewandelt
  95. - AnsiString-Fixes fuer die Datenbank
  96. Revision 1.7 2000/07/11 21:39:22 mk
  97. - 16 Bit Teile entfernt
  98. - AnsiStrings Updates
  99. - ein paar ASM-Routinen entfernt
  100. Revision 1.6 2000/06/01 16:03:05 mk
  101. - Verschiedene Aufraeumarbeiten
  102. Revision 1.5 2000/05/02 19:14:02 hd
  103. xpcurses statt crt in den Units
  104. Revision 1.4 2000/04/29 11:54:09 mw
  105. - MIME in News voreingestellt
  106. - Triggerlevel 2 voreingestellt
  107. - EASY-Mode Aufruf ver„ndert
  108. Revision 1.3 2000/04/22 20:08:15 mw
  109. - EASY-Modus per Compilerschalter abschaltbar (damit in office-Beta
  110. noch nicht drin !!!)
  111. - Elegantere Programmierung des Aufrufs
  112. - Umbennenung der neuen Procedure und Function
  113. - Fehler durch unvollst„ndiges Init beseitigt (FirstBox wurde noch nicht
  114. angelegt
  115. - Organisation wird nicht mehr im EASY-Mode abgefragt, Rest der Adressconfig
  116. aber weiterhin
  117. - Beseitigung unn”tiger MW-Verweise
  118. Revision 1.2 2000/04/22 18:24:05 mw
  119. - Erste Dialoge des Easy-Mode
  120. Achtung: Easy-Mode ist noch unvollst„ndig
  121. Man kann sich aber schon die ersten Dialoge ansehen
  122. Derzeit aber nur in der deutschen Version !!!
  123. Revision 1.1 2000/04/22 14:30:51 mw
  124. - EASY-Mode Teil 2 begonnen
  125. }
  126. end.