Grundkurs Programmieren mit Delphi : systematisch programmieren lernen mit interaktiv gestalteten Beispielen ; inklusive Pascal-Programmierung, OOP, Grafikprogrammierung [2., überarb. und erw. Aufl] 3834801496, 9783834801494 [PDF]


144 36 7MB

German Pages 348 Year 2006

Report DMCA / Copyright

DOWNLOAD PDF FILE

Papiere empfehlen

Grundkurs Programmieren mit Delphi : systematisch programmieren lernen mit interaktiv gestalteten Beispielen ; inklusive Pascal-Programmierung, OOP, Grafikprogrammierung [2., überarb. und erw. Aufl]
 3834801496, 9783834801494 [PDF]

  • 0 0 0
  • Gefällt Ihnen dieses papier und der download? Sie können Ihre eigene PDF-Datei in wenigen Minuten kostenlos online veröffentlichen! Anmelden
Datei wird geladen, bitte warten...
Zitiervorschau

Stimmen zur vorangegangenen Auflage: „Dieses Buch werde ich meinen Studenten empfehlen, weil es eine gute und übersichtliche Einführung in Delphi bietet.“ C. Hoppa, Berufskolleg Niederberg

„Für den Einstieg in die Programmierung mit Delphi gut geeignet. Verständliche Darstellung, gute und nachvollziehbare Beispiele. /. . . / hervorragend – gut lesbar /. . . / Dieses Buch werde ich meinen Studenten empfehlen /. . . /“ Prof. Dr. K. Hardt, Hochschule Niederrhein

„Das Buch erfüllt von der Herangehensweise und der Darstellung genau die Anforderungen, mit denen Nichtinformatiker oder Anfänger einen guten Einstieg in die Problematik finden. Es ist übersichtlich und logisch aufgebaut. Die Beispiele sind gut gewählt, so dass ich eine Empfehlung an die Studenten ausspreche.“ Prof. Dr. Frank Jaeger, HTWK Leipzig

„/. . . / sehr guter systematischer Aufbau.“ Prof. Dr. Jörg Seeländer, FH Merseburg

„/. . . / endlich mal ein Einsteigerbuch für Delphi.“ Prof. Dr.-Ing. Christine Wahmkow, FH Stralsund

Aus dem Bereich IT erfolgreich lernen

Lexikon für IT-Berufe von Peter Fetzer und Bettina Schneider Grundkurs IT-Berufe von Andreas M. Böhm und Bettina Jungkunz Prüfungsvorbereitung für IT-Berufe von Manfred Wünsche Grundlegende Algorithmen von Volker Heun Grundkurs Visual Basic von Sabine Kämper Visual Basic für technische Anwendungen von Jürgen Radel Grundkurs Smalltalk – Objektorientierung von Anfang an von Johannes Brauer Grundkurs JAVA von Dietmar Abts Aufbaukurs JAVA von Dietmar Abts Grundkurs Java-Technologien von Erwin Merker Java ist eine Sprache von Ulrich Grude Middleware in Java von Steffen Heinzl und Markus Mathes Das Linux-Tutorial – Ihr Weg zum LPI-Zertifikat von Helmut Pils Rechnerarchitektur von Paul Herrmann Grundkurs Relationale Datenbanken von René Steiner Grundkurs Datenbankentwurf von Helmut Jarosch Datenbank-Engineering von Alfred Moos Grundlagen der Rechnerkommunikation von Bernd Schürmann Netze – Protokolle – Spezifikationen von Alfred Olbrich Grundkurs Verteilte Systeme von Günther Bengel Grundkurs Mobile Kommunikationssysteme von Martin Sauter Grundkurs Wirtschaftsinformatik von Dietmar Abts und Wilhelm Mülder Grundkurs Theoretische Informatik von Gottfried Vossen und Kurt-Ulrich Witt

www.vieweg-it.de

Anwendungsorientierte Wirtschaftsinformatik von Paul Alpar, Heinz Lothar Grob, Peter Weimann und Robert Winter Business Intelligence – Grundlagen und praktische Anwendungen von Hans-Georg Kemper, Walid Mehanna und Carsten Unger Grundkurs Geschäftsprozess-Management von Andreas Gadatsch Prozessmodellierung mit ARIS ® von Heinrich Seidlmeier ITIL kompakt und verständlich von Alfred Olbrich BWL kompakt und verständlich von Notger Carl, Rudolf Fiedler, William Jórasz und Manfred Kiesel Masterkurs IT-Controlling von Andreas Gadatsch und Elmar Mayer Masterkurs Computergrafik und Bildverarbeitung von Alfred Nischwitz und Peter Haberäcker Grundkurs Mediengestaltung von David Starmann Grundkurs Web-Programmierung von Günter Pomaska Web-Programmierung von Oral Avcı, Ralph Trittmann und Werner Mellis Grundkurs MySQL und PHP von Martin Pollakowski Grundkurs SAP R/3® von André Maassen und Markus Schoenen SAP ®-gestütztes Rechnungswesen von Andreas Gadatsch und Detlev Frick Kostenträgerrechnung mit SAP R/3® von Franz Klenger und Ellen Falk-Kalms Masterkurs Kostenstellenrechnung mit SAP® von Franz Klenger und Ellen Falk-Kalms Controlling mit SAP ® von Gunther Friedl, Christian Hilz und Burkhard Pedell Logistikprozesse mit SAP R/3® von Jochen Benz und Markus Höflinger IT-Projekte strukturiert realisieren von Ralph Brugger Algorithmen für Ingenieure – realisiert mit Visual Basic von Harald Nahrstedt Grundkurs Software-Entwicklung mit C++ von Dietrich May Grundkurs Programmieren mit Delphi von Wolf-Gert Matthäus

Wolf-Gert Matthäus

Grundkurs Programmieren mit Delphi Systematisch programmieren lernen mit interaktiv gestalteten Beispielen – Inklusive PascalProgrammierung, OOP, Grafikprogrammierung Mit 292 Abbildungen 2., überarbeitete und erweiterte Auflage

Bibliografische Information Der Deutschen Bibliothek Die Deutsche Bibliothek verzeichnet diese Publikation in der Deutschen Nationalbibliografie; detaillierte bibliografische Daten sind im Internet über abrufbar.

Die Wiedergabe von Gebrauchsnamen, Handelsnamen, Warenbezeichnungen usw. in diesem Werk berechtigt auch ohne besondere Kennzeichnung nicht zu der Annahme, dass solche Namen im Sinne von Warenzeichen- und Markenschutz-Gesetzgebung als frei zu betrachten wären und daher von jedermann benutzt werden dürfen. Höchste inhaltliche und technische Qualität unserer Produkte ist unser Ziel. Bei der Produktion und Auslieferung unserer Bücher wollen wir die Umwelt schonen: Dieses Buch ist auf säurefreiem und chlorfrei gebleichtem Papier gedruckt. Die Einschweißfolie besteht aus Polyäthylen und damit aus organischen Grundstoffen, die weder bei der Herstellung noch bei der Verbrennung Schadstoffe freisetzen.

1. Auflage Februar 2001 1. Auflage November 2001 3. verbesserte und erweiterte Auflage November 2003 1. Auflage 2004 2., überarbeitete und erweiterte Auflage Januar 2006 Alle Rechte vorbehalten © Friedr. Vieweg & Sohn Verlag /GWV Fachverlage GmbH, Wiesbaden 2006 Lektorat: Dr. Riccardo Mosena / Andrea Broßler Der Vieweg Verlag ist ein Unternehmen von Springer Science+Business Media. www.vieweg.de

Das Werk einschließlich aller seiner Teile ist urheberrechtlich geschützt. Jede Verwertung außerhalb der engen Grenzen des Urheberrechtsgesetzes ist ohne Zustimmung des Verlags unzulässig und strafbar. Das gilt insbesondere für Vervielfältigungen, Übersetzungen, Mikroverfilmungen und die Einspeicherung und Verarbeitung in elektronischen Systemen.

Umschlaggestaltung: Ulrike Weigel, www.CorporateDesignGroup.de Druck und buchbinderische Verarbeitung: MercedesDruck, Berlin Gedruckt auf säurefreiem und chlorfrei gebleichtem Papier. Printed in Germany ISBN 3-8348-0149-6

==

Vorwort bêÑêÉìäáÅÜ=ëÅÜåÉää=ï~ê=ÇáÉ=ÉêëíÉ=^ìÑä~ÖÉ=îÉêÖêáÑÑÉåI=ìåÇ=ÖÉêå=ÑçäÖÉ=áÅÜ=ÇÉê=^ìÑÑçêJ ÇÉêìåÖ=ÇÉë=sÉêä~ÖÉëI=ÉáåÉ=òïÉáíÉI=ïÉëÉåíäáÅÜ=ÉêïÉáíÉêíÉ=ìåÇ=îÉêÄÉëëÉêíÉ=^ìÑä~ÖÉ= îçêòìäÉÖÉåK== páÉ=ìåíÉêëÅÜÉáÇÉí=ëáÅÜ=îçå=ÇÉê=ÉêëíÉå=^ìÑä~ÖÉ=îçê=~ääÉã=ÇìêÅÜ=Ç~ë=åÉì=Üáåòì=ÖÉJ åçããÉåÉ=h~éáíÉä=U=òì=ÇÉå=dêìåÇä~ÖÉå=ÇÉê=dê~ÑáâJmêçÖê~ããáÉêìåÖ=ãáí=aÉäéÜáK== få=ÇáÉëÉã=åÉìÉå=h~éáíÉä=ïáêÇ=îÉêëí®åÇäáÅÜ=ìåÇ=~ìëÑΩÜêäáÅÜ=ÖÉëÅÜáäÇÉêíI=ïáÉ=ÖÉçJ ãÉíêáëÅÜÉ=cáÖìêÉå=~ìÑ=ÇÉã=_áäÇëÅÜáêã=ÉåíëíÉÜÉå=â∏ååÉåI=ïáÉ=^åáã~íáçåÉå=ìåÇ= péáÉäÉ= ÉåíëíÉÜÉå= ìåÇ= ïáÉ= ãáí= aÉäéÜá= ëçÖ~ê= j~äéêçÖê~ããÉ= ÜÉêÖÉëíÉääí= ïÉêÇÉå= â∏ååÉåK== tÉáíÉêÜáå=ÖÉÜí=ÇáÉ=kÉì~ìÑä~ÖÉ=~å=ÇÉå=åçíïÉåÇáÖÉå=píÉääÉå=å~íΩêäáÅÜ=Ç~ê~ìÑ=ÉáåI= ïáÉ= Ç~ë= àΩåÖëí= ~ìÑ= ÇÉå= j~êâí= ÖÉâçããÉåÉ= båíïáÅâäìåÖëëóëíÉã= _çêä~åÇ= aÉäéÜá= OMMR=òìã=báåëíáÉÖ=áå=ÇáÉ=aÉäéÜáJmêçÖê~ããáÉêìåÖ=ÖÉåìíòí=ïÉêÇÉå=â~ååK= aÉå= îáÉäÑ~ÅÜ= ÖÉ®ì≈ÉêíÉå= tΩåëÅÜÉå= ~ìÑ= îÉêÄÉëëÉêíÉ= çåäáåÉJråíÉêëíΩíòìåÖ= ïáêÇ= Ç~ÇìêÅÜ=oÉÅÜåìåÖ=ÖÉíê~ÖÉåI=Ç~ëë=åìåãÉÜê=ìåíÉê=ïïïKïJÖJãKÇÉ=áå=ÇÉê=ÄÉâ~ååJ íÉå= oìÄêáâ= Leser-Service =ÇáÉ=âçãéäÉííÉå= aÉäéÜáJmêçàÉâíÉ= òì= ~ääÉå=mêçÖê~ããJ ÄÉáëéáÉäÉå=ÄÉêÉáíÖÉëíÉääí=ëáåÇI=ìåÇ=Ç~ë=ëçïçÜä=ÑΩê=ÇáÉ=åçÅÜ=ïÉáí=îÉêÄêÉáíÉíÉ=sÉêJ ëáçå=aÉäéÜá=T=~äë=~ìÅÜ=ÑΩê=ÇáÉ=åÉìÉå=sÉêëáçåÉå=aÉäéÜá=ULOMMRK===== == ==========================tÉåå=ÇáÉëÉë=póãÄçä=ÉêëÅÜÉáåíI=Ç~åå=ïáêÇ=ãáíÖÉíÉáäíI=ïç=Ç~ë== âçãéäÉííÉ=aÉäéÜáJmêçàÉâí=ÑΩê=Ç~ë=àÉïÉáäáÖÉ=_ÉáëéáÉä=òì=ÑáåÇÉå=áëí=ìåÇ=ïáÉ=Éë=ÜÉJ êìåíÉêÖÉä~ÇÉå=ïÉêÇÉå=â~ååK== == wïáÉëé®äíáÖ=ï~êÉå=ÇáÉ=iÉëÉêãÉáåìåÖÉå=òìã=äÉíòíÉå=h~éáíÉä=ÇÉê=bêëí~ìÑä~ÖÉI=Ç~ë= ÑΩê=~ääÉ=iÉÜêÉåÇÉå=ìåÇ=iÉêåÉåÇÉå=ÖÉëÅÜêáÉÄÉå=ïìêÇÉI=ÇáÉ=ÇÉã=ÄÉï®ÜêíÉå=qìêJ ÄçJm~ëÅ~ä=Éáå=ïÉåáÖ=å~ÅÜíê~ìÉêåK=fÜåÉå=ïìêÇÉ=Ççêí=ÖÉòÉáÖíI=ïáÉ=~ìÅÜ=ãáí=aÉäJ éÜá= ÇáÉ= âä~ëëáëÅÜÉ= ëíêìâíìêáÉêíÉ= mêçÖê~ããáÉêìåÖ= ÉêÑçäÖêÉáÅÜ= îÉêãáííÉäí= ïÉêÇÉå= â~ååK== t®ÜêÉåÇ= ÉáåáÖÉ= oÉòÉåëÉåíÉå= áå= áÜêÉå= wìëÅÜêáÑíÉå= ÑçêÇÉêíÉåI= ÇáÉëÉë= h~éáíÉä= åáÅÜí=ëç=âìêò=òì=Ü~äíÉåI=ëíÉääÉå=~åÇÉêÉ=ëÉáåÉ=páååÑ®ääáÖâÉáí=êìåÇÜÉê~ìë=áåÑê~ÖÉK== aÉëÜ~äÄ=ïìêÇÉ=Éë=ëçI=ïáÉ=Éë=ï~êI=ÄÉáÄÉÜ~äíÉåI=åìê=ÇáÉ=píêìâíçÖê~ããÉ=ïìêÇÉå= çéíáëÅÜ=îÉêÄÉëëÉêíK=a~òì=åìíòíÉ=áÅÜ=ÇÉå=äÉáÅÜí=òì=ÄÉÇáÉåÉåÇÉå=kpaJbÇáíçê=îçå= j~êÅÉä=h~äí=îçå=ÇÉê=råáîÉêëáí®í=cêáÄçìêÖ=E`eFK== pÅÜäáÉ≈äáÅÜ=ÉêÑçäÖíÉI=ïáÉ=ÄÉá=àÉÇÉê=wïÉáí~ìÑä~ÖÉI=ÉáåÉ=ÖêΩåÇäáÅÜÉ=aìêÅÜëáÅÜí=ìåÇ= cÉÜäÉêÄÉëÉáíáÖìåÖI=~ìÅÜ=ÇáÉ=péê~ÅÜÉ=ïìêÇÉ=îçå=ÉáåáÖÉå=Ä~êçÅâÉå=sÉêòáÉêìåÖÉå= ÖÉêÉáåáÖíK=báå=îÉê®åÇÉêíÉë=i~óçìí=ëçää=ÇáÉ=iÉëÄ~êâÉáí=ÉêÜ∏ÜÉåK=

s =

sçêïçêí== fÅÜ= Ç~åâÉ= ~ääÉåI= ÇÉå= îáÉäÉå= oÉòÉåëÉåíÉå= ìåÇ= îçê= ~ääÉã= ãÉáåÉå= píìÇÉåíáååÉå= ìåÇ=píìÇÉåíÉåI=pÅÜΩäÉêáååÉå=ìåÇ=pÅÜΩäÉêåI=ÑΩê=ÇáÉ=îáÉäÉå=ïÉêíîçääÉå=eáåïÉáëÉ= ìåÇ= ÜçÑÑÉI= Ç~ëë= ÇáÉ= åìå= îçêäáÉÖÉåÇÉ= ^ìÑä~ÖÉ= Éáå= ÉÄÉåëç= ÄêÉáíÉë= bÅÜç= ÑáåÇÉå= ã∏ÖÉ=ïáÉ=áÜêÉ=sçêÖ®åÖÉêáåK=== rÉåÖäáåÖÉåI=áã=kçîÉãÄÉê=OMMR=========================================tçäÑJdÉêí=j~ííÜ®ìë=== =

Vorwort zur 1. Auflage =łaáÉ= aÉäéÜáJbîçäìíáçå= ÑΩê= ÇáÉ= KkbqJoÉîçäìíáçåK= råíÉê= ÇáÉëÉã= päçÖ~å= îÉêíêÉáÄí= _çêä~åÇ= ëÉáí= _ÉÖáåå= ÇáÉëÉë= g~ÜêÉë= ëÉáå= åÉìÉëíÉë= mêçÇìâíI= aÉäéÜá= UK= jáí= Kkbq= ã∏ÅÜíÉ=jáÅêçëçÑí=ÇáÉ=sáëáçå=îÉêïáêâäáÅÜÉåI=ÉáåÉ=mä~ííÑçêã=òì=ëÅÜ~ÑÑÉåI=ÇáÉ=fåÑçêJ ã~íáçåÉåI=jÉåëÅÜÉåI=póëíÉãÉ=ìåÇ=dÉê®íÉ=ãáíÉáå~åÇÉê=îÉêÄáåÇÉíK== aÉäéÜá=U=ÄêáåÖí=ÇáÉ=ÄÉäáÉÄíÉå=aÉäéÜá=s`iJpíÉìÉêÉäÉãÉåíÉ=~ìÑ=ÇáÉ=KkbqJmä~ííÑçêãK= a~ãáí=â~åå=àÉÇÉê=^åïÉåÇÉê=ë®ãíäáÅÜÉ=sçêíÉáäÉ=îçå=aÉäéÜá=ìåÇ=îçå=Kkbq=âçãJ ÄáåáÉêí=ÉáåëÉíòÉå=ìåÇ=ëÅÜäáÉ≈äáÅÜ=ãçÇÉêåÉ=ìåÇ=ÜçÅÜäÉáëíìåÖÑ®ÜáÖÉ=^åïÉåÇìåÖÉå= ÜÉêëíÉääÉåK== aáÉëÉë=_ìÅÜ=ïÉåÇÉí=ëáÅÜ=~å=_ÉÖáååÉêK=sçê~ìëÖÉëÉíòí=ïáêÇ=åáÅÜíëK== sÉêãáííÉäí=ïáêÇ=ÇÉê=äÉáÅÜíÉI=Ñ~ëí=ëéáÉäÉêáëÅÜÉ=báåëíáÉÖ=áå=ÇáÉ=tÉäí=ÇÉê=aÉäéÜáJmêçJ Öê~ããáÉêìåÖI= ÇÉê= ãáí= ÇÉê= eÉêëíÉääìåÖ= îçå= ~ííê~âíáîÉå= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= ÄÉJ Öáååí=ìåÇ=ëÅÜêáííïÉáëÉ=òì=áããÉê=êÉáòîçääÉêÉå=^åïÉåÇìåÖÉå=ÑΩÜêíK== fããÉê=ïáÉÇÉê=ìåÇ=áããÉê=~ìÑë=kÉìÉ=ïÉêÇÉå=~ìëÑΩÜêäáÅÜ=ÇáÉ=eáåíÉêÖêΩåÇÉ=Éêä®ìJ íÉêíI=ÇáÉ=ÑΩê=Ç~ë=sÉêëí®åÇåáë=ÇÉê=^Ää®ìÑÉ=áã=`çãéìíÉê=åçíïÉåÇáÖ=ëáåÇK== jÉÜê= ~äë= OTM= ^ÄÄáäÇìåÖÉå= áääìëíêáÉêÉå= Ç~ë= sçêÖÉÜÉåI= ëç= Ç~ëë= àÉÇÉê= pÅÜêáíí= ÄÉáã= k~ÅÜîçääòáÉÜÉå=~ìÑ=ÇÉã=ÉáÖÉåÉå=`çãéìíÉê=ÖÉå~ìÉëíÉåë=ΩÄÉêéêΩÑí=ïÉêÇÉå=â~ååK== lÄÖäÉáÅÜ= Ç~ë= _ìÅÜ= ÑΩê= ÇáÉ= åÉìÉëíÉ= aÉäéÜáJsÉêëáçå= ÖÉëÅÜêáÉÄÉå= ïìêÇÉI= ëç= Ü~í= ÇçÅÜ= âÉáå= iÉêåÉåÇÉê= áêÖÉåÇïÉäÅÜÉ= k~ÅÜíÉáäÉI= ÇÉê= ãáí= ®äíÉêÉå= aÉäéÜáJsÉêëáçåÉå= ~êÄÉáíÉå= ïáääK= tç= Éë= åçíïÉåÇáÖ= áëíI= ïáêÇ= ~ìÑ= ÇáÉ= råíÉêëÅÜáÉÇÉ= áã= rãÖ~åÖ= ãáí= ®äíÉêÉå=aÉäéÜáJsÉêëáçåÉå=ìåÇ=aÉäéÜá=U=ÜáåÖÉïáÉëÉåK== a~åâ= ë~ÖÉ= áÅÜ= òìÉêëí= ìåÇ= îçê= ~ääÉã= ÇÉå= qÉáäåÉÜãÉêå= ãÉáåÉê= iÉÜêîÉê~åëí~äíìåJ ÖÉåK= aáÉ= bêÖÉÄåáëëÉ= ÄÉá= ÇÉê= rãëÉíòìåÖ= ÇÉê= îçêÖÉäÉÖíÉå= jÉíÜçÇáâ= Ü~ÄÉå= òìã= dÉäáåÖÉå=ÇÉë=àÉíòáÖÉå=iÉÜêÄìÅÜÉë=ÉêÜÉÄäáÅÜ=ÄÉáÖÉíê~ÖÉåK== jÉáåÉ=äáÉÄÉ=cê~ì=çéÑÉêíÉ=îáÉäÉ=píìåÇÉåI=ìã=hçêêÉâíìê=òì=äÉëÉåK== a~åâÉå= ïÉêÇÉ=áÅÜ= ~ìÅÜ= ~ääÉå= iÉëÉêáååÉå=ìåÇ= iÉëÉêåI=ÇáÉ= ãáÅÜ=~ìÑ= ãÉáåÉê=eçJ ãÉé~ÖÉ=ïïïKïJÖJãKÇÉ=ÄÉëìÅÜÉå=ìåÇ=ãáê=áÜêÉ=jÉáåìåÖI=ëç=çÇÉê=ëçI=âìåÇíìåK=== rÉåÖäáåÖÉåI=áã=g~åì~ê=OMMQ============================================tçäÑJdÉêí=j~ííÜ®ìë= =

sf= =

==

Inhaltsverzeichnis

N= NKN==

_ÉåìíòÉêçÄÉêÑä®ÅÜÉå= KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK N= pí~êíÄáäÇÉê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK N=

NKNKN= = aÉäéÜá=UKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK N= NKNKO= = aÉäéÜá=OMMRKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK P= NKNKP= = aÉäéÜá=T=ìåÇ=®äíÉêÉ=sÉêëáçåÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK S= NKO==

cçêãìä~ê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK U=

NKOKN= = báåëíÉääìåÖ=ÇÉê=pí~êíJbáÖÉåëÅÜ~ÑíÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK U= NKOKO= = qÉëí=ÇÉë=cçêãìä~êëKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NM= NKOKP= = péÉáÅÜÉêìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NN= NKP==

píÉìÉêÉäÉãÉåíÉ=ÑΩê=Ç~ë=cçêãìä~ê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NP=

NKPKN= = ^ìëï~Üä=ãáí=aÉäéÜá=ULOMMRKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NP= NKPKO= = ^ìëï~Üä=ãáí=®äíÉêÉå=aÉäéÜáJsÉêëáçåÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NQ= NKPKP= = táÅÜíáÖÉ=h~íÉÖçêáÉå=ÄòïK=oÉÖáëíÉêÄä®ííÉêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NQ= NKQ==

_~ëáëÉäÉãÉåíÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NR=

NKQKN= = sçå=_ìííçå=Äáë=pÅêçääÄ~ê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NR= NKQKO= = k~ãÉI=_ÉëÅÜêáÑíìåÖI=fåÜ~äíKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NS= NKQKP= = sçêÉáåëíÉääìåÖÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NT=

O

=

lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ON=

OKN==

aÉê=lÄàÉâíÄÉÖêáÑÑ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ON=

OKNKN= = a~íÉåçÄàÉâíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ON= OKNKO= = sáëìÉääÉ=lÄàÉâíÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OP= OKNKP= = bêÉáÖåáëÄÉÜ~åÇäìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OR= sff =

fåÜ~äíëîÉêòÉáÅÜåáë== OKO==

báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òìã=pí~åÇ~êÇJbêÉáÖåáëKKKKKKKKKKKKKKKKKKKKKKKKKKK OS=

OKOKN= = _ìííçåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OT= OKOKO= = qÉñíÑÉåëíÉêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OV= OKOKP= = `ÜÉÅâÄçñ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PM= OKOKQ= = pÅêçääÄ~êKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PM= OKOKR= = o~ÇáçÄìííçåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PN= OKOKS= = i~ÄÉä KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PN= OKOKT= = cçêãìä~ê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PN= OKP==

báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òì=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå KKKKKKKKKKKKKK PO=

OKPKN= = oÉ~âíáçåÉå=~ìÑ=j~ìëÄÉïÉÖìåÖÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PO= OKPKO= = oÉ~âíáçåÉå=~ìÑ=q~ëíÉåÇêìÅâKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PR= OKPKP= = cçâìëJbêÉáÖåáëëÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PS=

P

=

tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK QN=

PKN==

píÉìÉêÉäÉãÉåí=iáëíÉ=EListBoxF KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK QO=

PKO==

píÉìÉêÉäÉãÉåí=`çãÄçÄçñ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK QQ=

PKP==

píÉìÉêÉäÉãÉåí=o~ÇáçÖêìééÉ=ERadioGroupF KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK QS=

PKQ==

píÉìÉêÉäÉãÉåí=jÉåΩ=EMainMenuFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK QU=

Q

=

bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë KKKKKKKKKKKKKKKKKKKKK RP=

QKN==

báåÑ~ÅÜÉ=jáííÉáäìåÖÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK RP=

QKO==

m~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK RP=

QKOKN= = báÖÉåÉê=a~íÉåâÉêå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK RQ= QKOKO= = a~íÉåâÉêåÉ=ÑêÉãÇÉê=lÄàÉâíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK RU= QKP==

^âíáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK SM=

QKPKN= = báÖÉåÉê=a~íÉåâÉêå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK SM= QKPKO= = a~íÉåâÉêåÉ=ÑêÉãÇÉê=lÄàÉâíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK SN=

sfff= =

fåÜ~äíëîÉêòÉáÅÜåáë== QKQ==

^âíáîÉê=ìåÇ=é~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ST=

QKR==

^âíáîáÉêìåÖ=ìåÇ=aÉ~âíáîáÉêìåÖ=îçå=píÉìÉêÉäÉãÉåíÉå KKKKKKKKKKKKKKKKKKKKKKKKK TM=

QKRKN= = éêçéÉêíó=Enabled KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TN= QKRKO= = ^âíáîáÉêìåÖ=ÇÉë=píÉìÉêÉäÉãÉåíë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TO= QKRKP= = få~âíáîÉ=jÉåΩJbáåíê®ÖÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TP= QKS==

sÉêëíÉÅâÉå=îçå=píÉìÉêÉäÉãÉåíÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TP=

QKSKN= = éêçéÉêíó=Visible KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TP= QKSKO= = píÉìÉêÉäÉãÉåí=ëáÅÜíÄ~ê=ã~ÅÜÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TQ= QKT==

k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TQ=

QKTKN= = éêçéÉêíóJk~ãÉå=áã=lÄàÉâíáåëéÉâíçê=ÑáåÇÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TR= QKTKO= = báÖÉåëÅÜ~Ñí=ÑÉÜäí=áã=lÄàÉâíáåëéÉâíçêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TT= QKTKP= = fåÑçêã~íáçå=ÇìêÅÜ=ÇáÉ=mìåâíäáëíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TU= QKTKQ= = fåÑçêã~íáçå=ΩÄÉê=ÇáÉ=^êí=ÇÉê=wìïÉáëìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK TV= QKTKR= = pí~êíJj~êâáÉêìåÖ=áå=iáëíÉå=ëÉíòÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK UM= QKTKS= = m~ëëáîÉê=ìåÇ=~âíáîÉê=wìÖêáÑÑ=~ìÑ=wÉáäÉå=áå=ÉáåÉê=iáëíÄçñKKKKKKKKKKKKKKKKKKK UM= QKTKT= = sÉêÉáåÑ~ÅÜìåÖÉå=ÇìêÅÜ=îÉêâΩêòíÉ=éêçéÉêíó=Items[...]KKKKKKKKKKKKKKKKKKKK UQ=

R

=

báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK UT=

RKN==

báåÑ~ÅÜÉê=qÉëíKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK UU=

RKNKN= = _ÉÇáåÖíÉë=^âíáîáÉêÉåLaÉ~âíáîáÉêÉå=îçå=_ìííçåë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK UU= RKNKO= = báåâäáÅâ=çÇÉê=^ìëâäáÅâ\KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK VO= RKNKP= = iáåâëJoÉÅÜíëJpíÉìÉêìåÖKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK VQ= RKNKQ= = q~ëíÉå=ïÉÖÑ~åÖÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK VR= RKO==

^äíÉêå~íáîÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK VU=

RKOKN= = báå=k~ÅÜííáëÅÜä~ãéÉåJpÅÜ~äíÉê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK VU= RKOKO= = wìJ=ìåÇ=^ÄëÅÜ~äíÉå=îçå=_ìííçåë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMM=

fu =

fåÜ~äíëîÉêòÉáÅÜåáë==

S

=

qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NMP=

SKN==

qáãÉêW=_ÉÖêáÑÑ=ìåÇ=_ÉÇÉìíìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMP=

SKNKN= = _áëÜÉêáÖÉ=j∏ÖäáÅÜâÉáíÉå=ìåÇ=dêÉåòÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMP= SKNKO= = qáãÉê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMR= SKO==

báåêáÅÜíìåÖ=ìåÇ=pí~êíÉáåëíÉääìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMS=

SKOKN= = mä~íòáÉêÉå=ÇÉë=qáãÉêJpóãÄçäë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMS= SKOKO= = báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNMU= SKP==

^êÄÉáí=ãáí=qáãÉêåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNM=

SKPKN= = pí~êí=ìåÇ=pÉäÄëíJpíçééKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNM= SKPKO= = e~äí=ìåÇ=tÉáíÉêã~ÅÜÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNN= SKPKP= = _äáåâÉåÇÉ=pÅÜêáÑíKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNP= SKQ==

mÉêã~åÉåíÉ=mêΩÑìåÖ=áã=eáåíÉêÖêìåÇKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNQ=

SKR==

oçíJdÉäÄJdêΩåW=aáÉ=^ãéÉä=~å=ÇÉê=hêÉìòìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNS=

SKRKN= = d~åòÉ=w~ÜäÉå=áå=ïáÉÇÉêÜçäíÉê=cçäÖÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNS= SKRKO= = aáÉ=sÉêâÉÜêë~ãéÉä KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNNU= SK=S=

aÉê=sáÉêòóäáåÇÉêJjçíçê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNON=

SK=T=

pí®ÇíÉJo~íÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNOP=

SK=U=

báå=ÉáåÑ~ÅÜÉê=_áäÇëÅÜáêãëÅÜçåÉêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNOS=

T

=

d~åòÉ=w~ÜäÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NOV=

TKN==

aáÉ=cìåâíáçåÉå=IntToStr=ìåÇ=StrToIntKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPM=

TKNKN= = d~åòò~ÜäáÖÉ=tÉêíÉ=~ìëÖÉÄÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPM= TKNKO= = d~åòò~ÜäáÖÉ=tÉêíÉ=ÉêÑ~ëëÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPN= TKNKP= = ^åïÉåÇìåÖÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPQ= TKO==

péÉáÅÜÉêéä®íòÉ=ÑΩê=Ö~åòÉ=w~ÜäÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPU=

TKOKN= = jçíáî~íáçå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPU=

u= =

fåÜ~äíëîÉêòÉáÅÜåáë== TKOKO= = sÉêïÉåÇìåÖ=ÉáåÉë=péÉáÅÜÉêéä~íòÉë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNPV= TKP==

sÉêÉáåÄ~êìåÖÉå=îçå=Ö~åòò~ÜäáÖÉå=péÉáÅÜÉêéä®íòÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKNQN=

TKPKN= = _áí=ìåÇ=_óíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQN= TKPKO= = IntegerJa~íÉåíóéÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQP= TKQ==

^åïÉåÇìåÖÉå=îçå=Ö~åòò~ÜäáÖÉå=péÉáÅÜÉêéä®íòÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQP=

TKQKN= = dêìåÇë®íòÉI=k~ãÉåëÖÉÄìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQP= TKQKO= = bêÜ∏ÜìåÖ=ÇÉê=§ÄÉêëáÅÜíäáÅÜâÉáí KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQQ= TKQKP= = d~åòÉ=wìÑ~ääëò~ÜäÉåI=päçíJj~ëÅÜáåÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQR= TKQKQ= = päçíJj~ëÅÜáåÉ=ãáí=_áäÇÉêåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNQU= TKQKR= = qÉáäÄ~êâÉáí KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRN=

U

=

dê~ÑáâéêçÖê~ããáÉêìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NRR=

UKN==

dêìåÇÄÉÖêáÑÑÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRR=

UKO==

dÉçãÉíêáëÅÜÉ=dÉÄáäÇÉ=ÉêòÉìÖÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRS=

UKOKN= = a~ë=hççêÇáå~íÉåëóëíÉã KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRS= UKOKO= = báåòÉäåÉê=máñÉä KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRU= UKOKP= = dÉê~ÇÉ=iáåáÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRV= UKOKQ= = lÑÑÉåÉë=oÉÅÜíÉÅâ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNRV= UKOKR= = oÉÅÜíÉÅâÑä®ÅÜÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSM= UKOKS= = nì~Çê~íÑä®ÅÜÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSN= UKOKT= = bääáéëÉåJrãêáëë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSN= UKOKU= = bääáéëÉåJcä®ÅÜÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSO= UKOKV= = hêÉáëÑä®ÅÜÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSO= UKOKNM= = qÉñíKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSP= UKOKNN= = i∏ëÅÜÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSP= UKOKNO= = ^ÅÜëÉåâêÉìòKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSQ= UKP==

qÉñí=îÉê®åÇÉêå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSS=

UKQ==

_áäÇëÅÜáêãëÅÜçåÉêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNSU= uf =

fåÜ~äíëîÉêòÉáÅÜåáë== UKR==

^åáã~íáçåÉå=ìåÇ=péáÉäÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNTN=

UKRKN= = råÖÉëíÉìÉêíÉ=^åáã~íáçåÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNTN= UKRKO= = dÉëíÉìÉêíÉ=^åáã~íáçå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNTP= UKRKP= = péáÉäÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNTR= UKS==

j~äÉå=~ìÑ=ÇÉã=_áäÇëÅÜáêãKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNTV=

V

=

w®ÜäëÅÜäÉáÑÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NUR=

VKN==

^Äò®ÜäÉå=áå=iáëíÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNUR=

VKO==

jáåáã~ñJ^ìÑÖ~ÄÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNVM=

VKOKN= = dê∏≈íÉå=ìåÇ=âäÉáåëíÉå=tÉêí=ÄÉëíáããÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNVM= VKOKO= = mçëáíáçå=ÇÉë=Öê∏≈íÉå=ìåÇ=âäÉáåëíÉå=tÉêíÉë=ÄÉëíáããÉå KKKKKKKKKKKKKKKKKKNVN= VKP==

pìããÉå=ΩÄÉê=iáëíÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNVP=

NM

=káÅÜíåìãÉêáëÅÜÉ=péÉáÅÜÉêéä®íòÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK NVR=

NMKN== péÉáÅÜÉêéä®íòÉ=ÑΩê=t~ÜêÜÉáíëïÉêíÉ=Eqóé=BooleanFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNVR= NMKNKN= = pìÅÜÉå=ìåÇ=cáåÇÉå=áå=iáëíÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNVR= NMKNKO= = sÉêÜ~äíÉå=ÉáåÉê=pÅÜ~äíìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNVT= NMKO== péÉáÅÜÉêéä®íòÉ=ÑΩê=ÉáåòÉäåÉ=wÉáÅÜÉå=Eqóé=CharF KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOMN= NMKP== péÉáÅÜÉêéä®íòÉ=ÑΩê=wÉáÅÜÉåÑçäÖÉå=Eqóé=StringFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOMR=

NN

=^êÄÉáí=ãáí=wÉáÅÜÉåÑçäÖÉå=EpíêáåÖëFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OMT=

NNKN== StringJcìåâíáçåÉå=ìåÇ=JmêçòÉÇìêÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOMT= NNKNKN= = táÅÜíáÖÉ=StringJcìåâíáçåÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOMT= NNKNKO= = táÅÜíáÖÉ=StringJmêçòÉÇìêÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOMV= NNKO== cáåÇÉåI=w®ÜäÉå=ìåÇ=i∏ëÅÜÉå=îçå=wÉáÅÜÉå=ìåÇ=jìëíÉêåKKKKKKKKKKKKKKKKKKKKOMV= NNKOKN= = cáåÇÉå=îçå=wÉáÅÜÉå=ìåÇ=jìëíÉêåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOMV=

uff= =

fåÜ~äíëîÉêòÉáÅÜåáë== NNKOKO= = w®ÜäÉå=îçå=wÉáÅÜÉå=ìåÇ=jìëíÉêåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKONN= NNKOKP= = i∏ëÅÜÉå=îçå=wÉáÅÜÉå=ìåÇ=jìëíÉêå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKONQ= NNKP== bêëÉíòÉå=îçå=wÉáÅÜÉå=ìåÇ=jìëíÉêå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKONT= NNKPKN= = cáåÇÉåI=i∏ëÅÜÉå=ìåÇ=báåÑΩÖÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKONU= NNKPKO= = kÉì~ìÑÄ~ì=ÉáåÉë=òïÉáíÉå=píêáåÖë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOOM= NNKQ== m~äáåÇêçãJqÉëí KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOOP= NNKR== sÉêÖäÉáÅÜÉ=îçå=wÉáÅÜÉåÑçäÖÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOOP= NNKRKN= = iÉñáâçÖê~ÑáëÅÜÉê=sÉêÖäÉáÅÜ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOOP= NNKRKO= = jáåáã~ñ=áå=iáëíÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOOR= NNKRKP= = içííçòáÉÜìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOOU= NNKS== d~åòÉ=w~ÜäÉå=ãáí=sçêòÉáÅÜÉå=òìä~ëëÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPO= NNKT== nìÉêëìããÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPP= NNKTKN= = báåÑ~ÅÜÉ=nìÉêëìããÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPP= NNKTKO= = dÉïáÅÜíÉíÉ=nìÉêëìããÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPQ=

NO

=péÉáÅÜÉêéä®íòÉ=ÑΩê=aÉòáã~äÄêΩÅÜÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OPT=

NOKN== a~íÉåíóéÉå=SingleI=DoubleI=Extended KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPT= NOKNKN= = mêáåòáéáÉå=ÇÉê=áåíÉêåÉå=péÉáÅÜÉêìåÖ=ìåÇ=sÉê~êÄÉáíìåÖ KKKKKKKKKKKKKKKKKKOPT= NOKNKO= = a~íÉåíóé=Single KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPU= NOKNKP= = a~íÉåíóé=Double KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPU= NOKNKQ= = a~íÉåíóé=Extended KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPV= NOKO== hçãã~=çÇÉê=mìåâí\KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPV= NOKP== ^ìëÖ~ÄÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOPV= NOKPKN= = mêçòÉÇìê=StrKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOQM= NOKPKO= = cçêã~íëíÉìÉêìåÖ=áå=aÉäéÜá=ìåÇ=aÉäéÜá=ULOMMR KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOQO= NOKPKP= = mìåâí=ìåÇ=hçãã~=áå=ÇÉê=^ìëÖ~ÄÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOQQ= NOKQ== bêÑ~ëëìåÖ=îçå=aÉòáã~äÄêΩÅÜÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOQT= NOKQKN= = mêçòÉÇìê=ValKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOQT= ufff =

fåÜ~äíëîÉêòÉáÅÜåáë== NOKQKO= = ^âíáîáÉêìåÖ=ìåÇ=aÉ~âíáîáÉêìåÖ=îçå=píÉìÉêÉäÉãÉåíÉåKKKKKKKKKKKKKKKKKKKKKOQV= NOKQKP= = kìíòÉêìåíÉêëíΩíòìåÖ=fW=_ÉÜ~åÇäìåÖ=Ñ~äëÅÜÉê=q~ëíÉå KKKKKKKKKKKKKKKKKKKKKKKKORM= NOKQKQ= = kìíòÉêìåíÉêëíΩíòìåÖ=ffW=fåÑçêã~íáçå=ÄÉá=cçâìëîÉêäìëí KKKKKKKKKKKKKKKKKKKKKORN= NOKR== oÉÅÜåÉå=ãáí=aÉäéÜá KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKORS= NOKRKN= = sáÉê=dêìåÇêÉÅÜÉå~êíÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKORS= NOKRKO= = aÉê=táåÇçïëJoÉÅÜåÉê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKORU=

NP

=mêçòÉÇìêÉå=ìåÇ=cìåâíáçåÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OSP=

NPKN== dêìåÇë®íòäáÅÜÉë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOSP= NPKO== mêçòÉÇìêÉå=ìåÇ=cìåâíáçåÉå=îçå=aÉäéÜáJm~ëÅ~ä KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOSQ= NPKOKN= = _áëÜÉê=ÄÉêÉáíë=îÉêïÉåÇÉíÉ=mêçòÉÇìêÉå=ìåÇ=cìåâíáçåÉå KKKKKKKKKKKKKKKKKOSQ= NPKOKO= = a~íìãëJ=ìåÇ=wÉáíÑìåâíáçåÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOSR= NPKOKP= = ^êáíÜãÉíáëÅÜÉ=cìåâíáçåÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOSU= NPKP== mêçòÉÇìêÉå=ìåÇ=cìåâíáçåÉå=îáëìÉääÉê=lÄàÉâíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTN= NPKPKN= = táÉÇÉêÜçäìåÖW=sáëìÉääÉ=lÄàÉâíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTN= NPKPKO= = báÖÉåëÅÜ~ÑíÉå=~ìë=ÇÉê=mìåâíäáëíÉW=éêçéÉêíáÉëKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTO= NPKPKP= = cìåâíáçåÉå=~ìë=ÇÉê=mìåâíäáëíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTP= NPKPKQ= = mêçòÉÇìêÉå=~ìë=ÇÉê=mìåâíäáëíÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTR= NPKPKR= = pÅÜåáííëíÉääÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTT= NPKPKS= = ^ìëå~ÜãÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOTU= NPKQ== páãìä~íáçå=ÉáåÉê=pìéÉêã~êâíJh~ëëÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOUM= NPKQKN= = ^ìÑÖ~ÄÉåëíÉääìåÖ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOUM= NPKQKO= = båíïìêÑ=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOUP= NPKQKP= = k~ãÉåëîÉêÖ~ÄÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOUQ= NPKQKQ= = bêÉáÖåáëéêçòÉÇìêÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOUR= NPKQKR= = bêïÉáíÉêìåÖÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOUV= NPKR== báÖÉåÉ=mêçòÉÇìêÉåKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOVM=

ufs= =

fåÜ~äíëîÉêòÉáÅÜåáë==

NQ

=jáí=aÉäéÜáW=m~ëÅ~ä=äÉêåÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK OVR=

NQKN== báåÑ~ÅÜÉ=aÉäéÜáJmêçÖê~ããáÉêìãÖÉÄìåÖ=ÑΩê=m~ëÅ~ä KKKKKKKKKKKKKKKKKKKKKKKKKKKOVS= NQKO== báåJ=ìåÇ=^ìëÖ~ÄÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOVU= NQKOKN= = báåJ=ìåÇ=^ìëÖ~ÄÉ=îçå=wÉáÅÜÉåÑçäÖÉå=EStringFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOVV= NQKOKO= = ^ìëÖ~ÄÉ=îçå=Ö~åòÉå=w~ÜäÉå=EIntegerFKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMM= NQKOKP= = ^ìëÖ~ÄÉ=îçå=aÉòáã~äÄêΩÅÜÉå=ESingleI=DoubleI=ExtendedF KKKKKKKKKKKKKKKPMM= NQKOKQ= = bêÑ~ëëìåÖ=îçå=Ö~åòÉå=w~ÜäÉå=ìåÇ=aÉòáã~äÄêΩÅÜÉå KKKKKKKKKKKKKKKKKKKKKKKPMN= NQKP== píêìâíìêáÉêíÉë=mêçÖê~ããáÉêÉå=ãáí=m~ëÅ~ä KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMP= NQKPKN= = píêìâíìêÉäÉãÉåíÉ=ìåÇ=áÜêÉ=rãëÉíòìåÖ=áå=m~ëÅ~ä KKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMP= NQKPKO= = ^ìëå~ÜãÉêÉÖÉäìåÖÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMS= NQKPKP= = qÉëíëKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMS= NQKPKQ= = báåJ=ìåÇ=^ìëÖ~ÄÉå KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMT= NQKQ== _ÉáëéáÉäÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMT= NQKQKN= = píêìâíìêÉäÉãÉåí=cçäÖÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPMT= NQKQKO= = píêìâíìêÉäÉãÉåí=^ÄïÉáëëÅÜäÉáÑÉ=EâçéÑÖÉëíÉìÉêíÉ=pÅÜäÉáÑÉFKKKKKKKKKKKKKKPMU= NQKQKP= = píêìâíìêÉäÉãÉåí=káÅÜí~ÄïÉáëëÅÜäÉáÑÉ=EÑì≈ÖÉëíÉìÉêíÉ=pÅÜäÉáÑÉFKKKKKKKKPMV= NQKQKQ= = píêìâíìêÉäÉãÉåí=qÉëíKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPNM= NQKQKR= = píêìâíìêÉäÉãÉåí=^äíÉêå~íáîÉ KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPNR= NQKQKS= = píêìâíìêÉäÉãÉåí=w®ÜäëÅÜäÉáÑÉKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPNT= NQKR== cÉäÇÉêI=fåëí~åòÉåI=fåëí~åòÉåÑÉäÇÉê KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPNV= NQKRKN= = cÉäÇÉêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPNV= NQKRKO= = fåëí~åòÉåÑÉäÇÉêKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPNV= = ====p~ÅÜïçêíîÉêòÉáÅÜåáë KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PON=

us =

==

1

Benutzeroberflächen

tÉê=ÜÉìíòìí~ÖÉ=Éáå=mêçÖê~ãã=ëÅÜêÉáÄíI=ÇÉê=çêáÉåíáÉêí=ëáÅÜ=~å=táåÇçïëK=lÄ=ÖÉJ ïçääí= çÇÉê= åáÅÜíI= çÄ= ÄÉïìëëí= çÇÉê= åáÅÜíW= aáÉ= Ö®åÖáÖÉ= cçêã= ÇÉê= jÉåëÅÜJoÉÅÜJ åÉêJhçããìåáâ~íáçå= ÄÉëíÉÜí= áå= ÇÉê= ^êÄÉáí= ãáí= j~ìë= ìåÇ= q~ëí~íìêI= áã= îáÉäÑ®äíáJ ÖÉå=rãÖ~åÖ=ãáí=ÇáîÉêëÉå=píÉìÉêJ=çÇÉê=_ÉÇáÉåÉäÉãÉåíÉåI=ÇáÉ=áå=ÉáåÉã=cÉåëíÉê= ~ìÑ=ÉáåÉê=^êÄÉáíëÑä®ÅÜÉ=~åÖÉçêÇåÉí=ëáåÇ=ìåÇ=ÇáÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=EÉåÖäKW=ìëÉê= áåíÉêÑ~ÅÉF=ÄáäÇÉåK== få= ÇáÉëÉã= h~éáíÉä= ïÉêÇÉå= ïáê= òìÉêëí= äÉêåÉåI= ïáÉ= ãáí= aÉäéÜá= U= ÉáåÉ= _ÉåìíòÉêJ çÄÉêÑä®ÅÜÉ= îçêÄÉêÉáíÉíI= ÖÉëí~äíÉíI= ÖÉëéÉáÅÜÉêí= ìåÇ= ÖÉíÉëíÉí= ïáêÇK= ^åëÅÜäáÉ≈ÉåÇ= ÖÉÜÉå= ïáê= ~ìÑ= ÇáÉ= _ÉëçåÇÉêÜÉáíÉå= ìåÇ= ^ÄïÉáÅÜìåÖÉå= ÄÉá= ÇÉê= åÉìÉëíÉå= sÉêJ ëáçå=aÉäéÜá=OMMR=ÉáåK=a~=ëáÉ=áããÉê=åçÅÜ=ïÉáí=îÉêÄêÉáíÉí=áëíI=ïáêÇ=~ìÅÜ=ÇáÉ=®äíÉJ êÉ=sÉêëáçå=aÉäéÜá=T=ÄÉêΩÅâëáÅÜíáÖíK==

1.1

Startbilder

1.1.1

Delphi 8

tÉåå=åáÅÜí=~åÇÉêë=ÉáåÖÉëíÉääí=ÄÉÖêΩ≈í=ìåë=aÉäéÜá=U=ãáí=ÉáåÉã=pí~êíÄáäÇI=áå=ÇÉëJ ëÉå=wÉåíêìã=ëáÅÜ=ÉáåÉ=táääâçããÉåëJpÉáíÉ=ÄÉÑáåÇÉíI=ÇáÉ=ìåë=ΩÄÉê=ÇáÉ=òìäÉíòí=ÄÉJ ~êÄÉáíÉíÉå=mêçàÉâíÉ=áåÑçêãáÉêí=ìåÇ=ïÉáíÉêÉ=iÉáëíìåÖÉå=~åÄáÉíÉíK=== aáÉ=táääâçããÉåëJpÉáíÉ=â~åå=ÖÉåìíòí=ïÉêÇÉåI=ìã=ìåãáííÉäÄ~ê=ãáí=ÇÉê=^êÄÉáí=~å= ÇÉå= òìäÉíòí= ÄÉÜ~åÇÉäíÉå= mêçàÉâíÉå= ÑçêíòìÑ~ÜêÉåI= ÇÉåå= ÇáÉëÉ= ïÉêÇÉå= ΩÄÉêëáÅÜíJ äáÅÜ=~ìÑÖÉäáëíÉíK=^ì≈ÉêÇÉã=ïÉêÇÉå=áå=ÇÉå=cÉåëíÉêå=qo^fkfkdI=_bfpmfbibI=obpplroJ `bk= ìåÇ= jf`olplcqKkbq= plirqflkp= slk= _loi^ka= ìãÑ~åÖêÉáÅÜÉ= ^åÖÉÄçíÉ= òìã= ïÉáíÉêÉå=iÉêåÉå=çÇÉê=òì=ëéÉòáÉääÉê=fåÑçêã~íáçå=ìåíÉêÄêÉáíÉíK= k~ÅÜ=ÇÉã=pÅÜäáÉ≈Éå=ÇÉê=táääâçããÉåëJpÉáíÉ=îçå=aÉäéÜá=UI=ïáÉ=ΩÄäáÅÜ=ãáí=ÇÉê= j~ìë=~å=ÇÉã=âäÉáåÉå=pÅÜäáÉ≈JhêÉìò==x==I=ãΩëëÉå=ïáê=ìåë=å~ÅÜ=a^qbfkbr=ÉåíJ ëÅÜÉáÇÉåI= ïÉäÅÜÉ= ÇÉê= îáÉäÉå= ^åïÉåÇìåÖÉåI= ÇáÉ= ãáí= aÉäéÜá= U= ÜÉêëíÉääÄ~ê= ëáåÇI= ~åÖÉëíêÉÄí=ïáêÇK== cΩê=ÇáÉëÉë=_ìÅÜ=ëçääíÉå=ïáê=ÖêìåÇë®íòäáÅÜ=s`iJcçêãìä~ê~åïÉåÇìåÖÉå=~ìëï®ÜJ äÉå=E_áäÇ=NKOFK== k~ÅÜ= ^ìëï~Üä= ÇÉê= s`iJcçêãìä~ê~åïÉåÇìåÖ= ÉêëÅÜÉáåí= Ç~ë= ÉåíëéêÉÅÜÉåÇÉ= s`iJ ^åïÉåÇìåÖëJpí~êíÄáäÇK== pÉÜÉå=ïáê=ìåë=ÇÉëëÉå=_Éëí~åÇíÉáäÉ=áå=_áäÇ=NKP=ÖÉå~ìÉê=~åK== = N =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå=

= _áäÇ=NKNW=pí~êíÄáäÇ=îçå=aÉäéÜá=U=

== _áäÇ=NKOW=^ìëï~Üä=ÇÉê=îçêÖÉëÉÜÉåÉå=^åïÉåÇìåÖW=s`iJcçêãìä~ê= • iáåâë= áëí= áå= _áäÇ= NKP= Éáå= Öêç≈ÉëI= ä~åÖÉë= cÉåëíÉê= òì= ëÉÜÉåI= Ç~ë= ÇáÉ= §ÄÉêëÅÜêáÑí= lÄàÉâíáåëéÉâíçê=íê®Öí=ìåÇ=ÇáÉ=ÄÉáÇÉå=oÉÖáëíÉêÄä®ííÉê=bfdbkp`e^cqbk=ìåÇ=bobfdJ kfppb=ÉåíÜ®äíK=jáí=eáäÑÉ=ÇÉë=lÄàÉâíáåëéÉâíçêëI=ÉáåÉë=ïáÅÜíáÖÉå=aÉäéÜáJ_Éëí~åÇJ íÉáäëI=â∏ååÉå=ïáê=áã=båíïìêÑ=ÉáåëíÉääÉåI=ïáÉ=ÇáÉ=_ÉÇáÉåÉäÉãÉåíÉ=~ìëëÉÜÉå=ëçäJ äÉåI=ïÉåå=ëáÉ=ÇÉã=kìíòÉê=~ìÑ=ÇÉã=_áäÇëÅÜáêã=éê®ëÉåíáÉêí=ïÉêÇÉåK== O= =

NKN== pí~êíÄáäÇÉê= tÉåå= Ç~ë= cÉåëíÉê= lÄàÉâíáåëéÉâíçê= ÑÉÜäíI= â~åå= Éë= ΩÄÉê= ^kpf`eql_gbhqfkpmbhJ qlo=ïáÉÇÉê=ÄÉëçêÖí=ïÉêÇÉåK= • få=ÇÉê=jáííÉ=ÇÉë=pí~êíÄáäÇÉë=ÄÉÑáåÇÉí=ëáÅÜ=ÉáåÉ=Öê~ìÉI=ÖÉê~ëíÉêíÉ=cä®ÅÜÉ=ãáí=ÇÉê= _ÉëÅÜêáÑíìåÖ= cçêãNK= a~ë= áëí= ÇÉê= båíïìêÑ= ÇÉë= cçêãìä~êëI= Ç~ë= áëí= ÄÉêÉáíë= ÇÉê= dêìåÇÄ~ìëíÉáå=ÑΩê=àÉÇÉ=^åïÉåÇìåÖI=Ç~ë=ïáêÇ=ÇáÉ=^êÄÉáíëÑä®ÅÜÉI=ÇÉê= eáåíÉêJ ÖêìåÇ=àÉÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉK== • oÉÅÜíë=çÄÉå=áëí=Ç~ë=cÉåëíÉê=ÇÉê=mêçàÉâíîÉêï~äíìåÖ=òì=ëÉÜÉåX=ÑΩê=ìåëÉêÉ=báåJ ëíáÉÖëJ^åïÉåÇìåÖÉå= Ü~í= Éë= åçÅÜ= âÉáåÉ= Öêç≈É= _ÉÇÉìíìåÖK= tÉåå= ÇáÉëÉë= cÉåëíÉê=ÑÉÜäíI=â~åå=Éë=ΩÄÉê=^kpf`eqmolgbhqsbot^iqrkd=ÖÉ∏ÑÑåÉí=ïÉêÇÉåK=== =

=

= _áäÇ=NKPW=pí~êíëáíì~íáçå=ÑΩê=ÇáÉ=aÉäéÜáJUJs`iJmêçÖê~ããáÉêìåÖ==

• cΩê=ìåë=~ÄÉê=ÄÉêÉáíë=~åÑ~åÖë=~ì≈ÉêçêÇÉåíäáÅÜ=ïáÅÜíáÖ=ïáêÇ=Ç~ë=cÉåëíÉê=ëÉáåI= Ç~ë= êÉÅÜíë= ìåíÉå= òì= ëÉÜÉå= áëí= ìåÇ= ÇáÉ= _ÉëÅÜêáÑíìåÖ= qççäJm~äÉííÉ= íê®ÖíK= pçääíÉ= ÇáÉëÉë=cÉåëíÉê=åáÅÜí=òì=ëÉÜÉå=ëÉáå=â~åå=Éë=ΩÄÉê=^kpf`eqqlliJm^ibqqb=ÖÉJ ∏ÑÑåÉí=ïÉêÇÉåK==

1.1.2

Delphi 2005

pÉáí= _ÉÖáåå= ÇÉë= g~ÜêÉë= OMMR= ÄÉÑáåÇÉí= ëáÅÜ= Ç~ë= åÉìÉëíÉ= _çêä~åÇJmêçÇìâíI= Ç~ë= ÜçÅÜÖê~ÇáÖ=äÉáëíìåÖëÑ®ÜáÖÉ=båíïáÅâäìåÖëëóëíÉã=aÉäéÜá=OMMRI=~ìÑ=ÇÉã=j~êâíK== _áäÇ=NKQ=òÉáÖí=Ç~ë=pí~êíÄáäÇ=îçå=aÉäéÜá=OMMRI=Ç~ë=ëáÅÜ=îçã=aÉäéÜáJUJpí~êíÄáäÇ=åìê= ÖÉêáåÖÑΩÖáÖ=ìåíÉêëÅÜÉáÇÉíK== P =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= få= ÇÉê= jáííÉ= ÇÉê= aÉäéÜáJOMMRJtáääâçããÉåëJpÉáíÉ= ÄÉÑáåÇÉí= ëáÅÜ= åÉÄÉå= pÅÜä~ÖòÉáJ äÉå=Éáå=^ìëï~ÜäJcÉåëíÉêI=áå=ÇÉã=ã~å=ìåíÉê=ÉáåÉê=cΩääÉ=îçå=píáÅÜïçêíÉå=~ìëï®ÜJ äÉå=â~ååK==

= _áäÇ=NKQW=pí~êíÄáäÇ=îçå=aÉäéÜá=OMMR== _ÉëíÉÜí= ÉáåÉ= sÉêÄáåÇìåÖ= òìã= fåíÉêåÉíI= ïáêÇ= çåäáåÉ= òìã= àÉïÉáäë= ~ìëÖÉï®ÜäíÉå= _ÉÖêáÑÑ=Ç~ë=kÉìÉëíÉ=~ìë=ÇÉê=_çêä~åÇJtÉäí=ãáíÖÉíÉáäíK=_áäÇ=NKQ=òÉáÖíI=ïáÉ=òìã=_ÉáJ ëéáÉä= òì= aÉäéÜá= OMMR= ÇáÉ= åÉìÉëíÉå= fåÑçêã~íáçåÉå= ~åÖÉÑçêÇÉêí= ïÉêÇÉå= â∏ååÉåK= ^ìÅÜ=ÉáåÉ=çåäáåÉJiÉêåÜáäÑÉ=áëí=îÉêÑΩÖÄ~êK== táÉ=áããÉê=ÄÉá=ëçäÅÜ=âçãéäÉñÉå=póëíÉãÉå=Ü~í=ÇÉê=^åÑ®åÖÉê=~ÄÉê=ÉáåÉå=ä®åÖÉJ êÉå=tÉÖ=òìêΩÅâòìäÉÖÉåI=ÄÉîçê=Éê=ΩÄÉêÜ~ìéí=ãáí=ÇÉê=^êÄÉáí=ÄÉÖáååÉå=â~ååW=_Éá= aÉäéÜá=OMMR=ÜÉá≈í=Ç~ëI=Ç~ëë=òìÉêëí=áã=cÉåëíÉê=ÇÉê=qççäJm~äÉííÉI=Ç~ë=ëáÅÜ=áã=pí~êíJ ÄáäÇ= îçå= aÉäéÜá= OMMR= êÉÅÜíë= ìåíÉå= ÄÉÑáåÇÉíI= ÇáÉ= pÅÜ~äíÑä®ÅÜÉ= Kategorien = ÖÉJ ÑìåÇÉå=ïÉêÇÉå=ãì≈=E_áäÇ=NKRFW=

= _áäÇ=NKRW=pÅÜ~äíÑä®ÅÜÉ=Kategorien=ÇÉê=qççäJm~äÉííÉ==

Q= =

NKN== pí~êíÄáäÇÉê= cΩê=ÇáÉëÉë=_ìÅÜ=ëçääíÉ=Ç~å~ÅÜ=áããÉê=ÇáÉ=h~íÉÖçêáÉ=aÉäéÜáJmêçàÉâíÉ=~ìëÖÉï®Üäí= ïÉêÇÉå=E_áäÇ=NKRFK==

= _áäÇ=NKSW=h~íÉÖçêáÉ=Delphi-Projekte=~ìëï®ÜäÉå= fååÉêÜ~äÄ=ÇÉê=cΩääÉ=ÇÉê=~åÖÉÄçíÉåÉå=^êíÉå=îçå=aÉäéÜáJmêçàÉâíÉå=ÑáåÇÉí=ëáÅÜ=Ç~ë= ÖÉëìÅÜíÉ=^åÖÉÄçí=s`iJcçêãìä~ê~åïÉåÇìåÖ=E_áäÇ=NKTF=

= _áäÇ=NKTW=aÉäéÜáJmêçàÉâí=VCL-Formular-Anwendung= k~ÅÜ= ÇÉã= ÄÉëí®íáÖÉåÇÉå= açééÉäâäáÅâ= ~ìÑ= ÇÉå= báåíê~Ö= s`iJcçêãìä~ê~åïÉåJ ÇìåÖ= ∏ÑÑåÉí= ëáÅÜ= Ç~ë= aÉäéÜáJOMMRJs`iJ^åïÉåÇìåÖëJpí~êíÄáäÇ= E_áäÇ= NKUFI= Ç~ë= ÇÉã=ÉåíëéêÉÅÜÉåÇÉå=_áäÇ=îçå=aÉäéÜá=U=ëÉÜê=®ÜåäáÅÜ=ëáÉÜíW== • iáåâë=áå=_áäÇ=NKU=áëí=ïáÉÇÉê=Ç~ë=cÉåëíÉê=òì=ëÉÜÉåI=Ç~ë=ÇáÉ=§ÄÉêëÅÜêáÑí=lÄàÉâíáåJ ëéÉâíçê=íê®Öí=ìåÇ=ÇáÉ=ÄÉáÇÉå=oÉÖáëíÉêÄä®ííÉê=bfdbkp`e^cqbk=ìåÇ=bobfdkfppb=ÉåíJ Ü®äíK=jáí=eáäÑÉ=ÇÉë=lÄàÉâíáåëéÉâíçêëI=ÉáåÉë=ïáÅÜíáÖÉå=aÉäéÜáJ_Éëí~åÇíÉáäëI=â∏åJ åÉå=ïáê=áã=båíïìêÑ=ÉáåëíÉääÉåI=ïáÉ=ÇáÉ=_ÉÇáÉåÉäÉãÉåíÉ=~ìëëÉÜÉå=ëçääÉåI=ïÉåå= ëáÉ=ÇÉã=kìíòÉê=~åÑ~åÖë=~ìÑ=ÇÉã=_áäÇëÅÜáêã=éê®ëÉåíáÉêí=ïÉêÇÉåK==

R =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= tÉåå= Ç~ë= cÉåëíÉê= lÄàÉâíáåëéÉâíçê= ÑÉÜäíI= â~åå= Éë= ΩÄÉê= ^kpf`eql_gbhqfkpmbhJ qlo=çÇÉê=ÇìêÅÜ=aêìÅâ=~ìÑ=ÇáÉ=q~ëíÉ= F11 =ïáÉÇÉê=ÄÉëçêÖí=ïÉêÇÉåK= • få=ÇÉê=jáííÉ=ÇÉë=pí~êíÄáäÇÉë=ÄÉÑáåÇÉí=ëáÅÜ=ÉáåÉ=Öê~ìÉI=ÖÉê~ëíÉêíÉ=cä®ÅÜÉ=ãáí=ÇÉê= _ÉëÅÜêáÑíìåÖ= Form1K= a~ë= áëí= ÇÉê= båíïìêÑ= ÇÉë= cçêãìä~êëI= Ç~ë= áëí= ÄÉêÉáíë= ÇÉê= dêìåÇÄ~ìëíÉáå=ÑΩê=àÉÇÉ=^åïÉåÇìåÖI=Ç~ë=ïáêÇ=ÇáÉ=^êÄÉáíëÑä®ÅÜÉI=ÇÉê= eáåíÉêJ ÖêìåÇ=àÉÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉK== • oÉÅÜíë=çÄÉå=áëí=Ç~ë=cÉåëíÉê=ÇÉê=mêçàÉâíîÉêï~äíìåÖ=òì=ëÉÜÉåX=ÑΩê=ìåëÉêÉ=báåJ ëíáÉÖëJ^åïÉåÇìåÖÉå= Ü~í= Éë= åçÅÜ= âÉáåÉ= Öêç≈É= _ÉÇÉìíìåÖK= tÉåå= ÇáÉëÉë= cÉåëíÉê=ÑÉÜäíI=â~åå=Éë=ΩÄÉê=^kpf`eqmolgbhqsbot^iqrkd=ÖÉ∏ÑÑåÉí=ïÉêÇÉåK===

= _áäÇ=NKUW=pí~êíëáíì~íáçå=ÑΩê=aÉäéÜáJOMMRJs`iJmêçÖê~ããáÉêìåÖ=== • táÉÇÉêìã=ëÉÜê=ïáÅÜíáÖ=ïáêÇ=Ç~ë=cÉåëíÉê=ëÉáåI=Ç~ë=êÉÅÜíë=ìåíÉå=òì=ëÉÜÉå=áëí= ìåÇ=ÇáÉ=_ÉëÅÜêáÑíìåÖ=qççäJm~äÉííÉ=íê®ÖíK=açêí=â∏ååÉå=ïáê=å®ãäáÅÜ=ÇáÉ=_ÉÇáÉåJ ÉäÉãÉåíÉ=~ìëï®ÜäÉåI=ÇáÉ=~ìÑ=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=éä~íòáÉêí=ïÉêÇÉå=ëçääÉå= EëáÉÜÉ=^ÄëÅÜåáíí=NKPKN=~ìÑ=pÉáíÉ=NPFK== pçääíÉ= Ç~ë= cÉåëíÉê= Tool-Palette= åáÅÜí= òì= ëÉÜÉå= ëÉáå= â~åå= Éë= ΩÄÉê= ^kpf`eq= qlliJm^ibqqb=ÖÉ∏ÑÑåÉí=ïÉêÇÉåK==

1.1.3

Delphi 7 und ältere Versionen

a~ë=pí~êíÄáäÇ=îçå=aÉäéÜá=T=ìåÇ=®äíÉêÉå=sÉêëáçåÉå=îçå=aÉäéÜá=E_áäÇ=NKVF=áëí=áã= tÉëÉåíäáÅÜÉå= ïáÉ= Ç~ë= pí~êíÄáäÇ= ÇÉê= aÉäéÜáJUJs`iJcçêãìä~ê~åïÉåÇìåÖ= E_áäÇ= NKPF=ëíêìâíìêáÉêíX=ÉáåáÖÉ=_ÉòÉáÅÜåìåÖÉå=ëáåÇ=~åÇÉêëK==

S= =

NKN== pí~êíÄáäÇÉê= • ^ìÑÑ®ääáÖ=áëí=áã=wÉåíêìã=ÇÉë=cÉåëíÉêë=ÇáÉ=ëçÑçêí=îçêÜ~åÇÉåÉI=Öê~ì=ÖÉê~ëíÉêíÉ= cä®ÅÜÉ= ãáí= ÇÉê= _ÉëÅÜêáÑíìåÖ= cçêãNK= a~ë= áëí= ïáÉÇÉê= ÇÉê= båíïìêÑ= ÇÉë= cçêãìJ ä~êëI=Ç~ë=áëí=ÄÉêÉáíë=ÇÉê=dêìåÇÄ~ìëíÉáå=ÑΩê=àÉÇÉ=^åïÉåÇìåÖK= • a~ë= âäÉáåÉ= cÉåëíÉê= äáåâë= çÄÉå= íê®Öí= ÇáÉ= _ÉëÅÜêáÑíìåÖ= lÄàÉâíJeáÉê~êÅÜáÉX= Éë= ÉåíëéêáÅÜí=ÇÉê=mêçàÉâíîÉêï~äíìåÖ=îçå=aÉäéÜá=UX=Éë=áëí=ÑΩê=ìåëÉêÉ=^åïÉåÇìåJ ÖÉå=ÉáåëíïÉáäÉå=åáÅÜí=ïáÅÜíáÖK==

= _áäÇ=NKVW=pí~êíÄáäÇ=îçå=aÉäéÜá=T= • iáåâë= Ç~êìåíÉê= áëí= àÉÇçÅÜ= ïáÉÇÉê= Ç~ë= ïáÅÜíáÖÉ= cÉåëíÉê= òì= ëÉÜÉåI= Ç~ë= ÇáÉ= §ÄÉêëÅÜêáÑí= lÄàÉâíáåëéÉâíçê= íê®ÖíK= jáí= eáäÑÉ= ÇáÉëÉë= lÄàÉâíáåëéÉâíçêë= â∏ååÉå= ïáê=ÉáåëíÉääÉåI=ïáÉ=ÇáÉ=_ÉÇáÉåÉäÉãÉåíÉ=~ìëëÉÜÉå=ëçääÉåI=ïÉåå=ëáÉ=ÇÉã=kìíJ òÉê=~åÑ~åÖë=~ìÑ=ÇÉã=_áäÇëÅÜáêã=éê®ëÉåíáÉêí=ïÉêÇÉåK== • ^åëíÉääÉ= ÇÉë= qççäJm~äÉííÉåJcÉåëíÉêë= ÄÉëáíòÉå= ÇáÉ= ®äíÉêÉå= sÉêëáçåÉå= îçå= aÉäJ éÜá= êÉÅÜíë= çÄÉå= ÇáÉ= hçãéçåÉåíÉåäÉáëíÉ= E_áäÇ= NKNMF= ãáí= áÜêÉå= îÉêëÅÜáÉÇÉåÉå= oÉÖáëíÉêÄä®ííÉêå=pq^ka^oaI=wrpûqwif`eI=pvpqbj=ìëïK== == _áäÇ=NKNMW=hçãéçåÉåíÉåäÉáëíÉ=®äíÉêÉê=aÉäéÜáJsÉêëáçåÉå= T =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå=

1.2

Formular

1.2.1

Einstellung der Start-Eigenschaften

^ìÑ=ÇáÉ=cê~ÖÉI=ï~ë=ïáê=áã=båíïìêÑ=~ääÉë=ÑΩê=ÇáÉ=~åÑ®åÖäáÅÜÉ=bêëÅÜÉáåìåÖëÑçêã= ÇÉë=cçêãìä~êëI=ÇÉë=eáåíÉêÖêìåÇÉë=ÇÉê=ÖÉéä~åíÉå=_ÉåìíòÉêçÄÉêÑä®ÅÜÉI=îçêÉáåëíÉäJ äÉå= â∏ååÉåI= ~åíïçêíÉå= ÇáÉ= lÄàÉâíáåëéÉâíçêÉå= îçå= aÉäéÜá= U= ìåÇ= aÉäéÜá= OMMR= ãáí=ãÉÜêÉêÉå=aìíòÉåÇ=wÉáäÉåK=aÉê=lÄàÉâíáåëéÉâíçê=®äíÉêÉê=sÉêëáçåÉå=ÄáÉíÉí=Ç~J ÖÉÖÉå=åìê=ìåÖÉÑ®Üê=ÇáÉ=e®äÑíÉ=~å=báëíÉääìåÖëã∏ÖäáÅÜâÉáíÉå=~åK== _áäÇ=NKNN=îÉêëìÅÜíI=~ääÉ=wÉáäÉå=ÇÉë= aÉäéÜáJUJlÄàÉâíáåëéÉâíçêë=ÇÉë=cçêãìä~êë=mä~íò= ëé~êÉåÇ=~åòìÇÉìíÉåK==

= _áäÇ=NKNNW=lÄàÉâíáåëéÉâíçê=îçå=aÉäéÜá=U=ÑΩê=Ç~ë=cçêãìä~ê= aÉê=rãÖ~åÖ=ãáí=ÇÉã=lÄàÉâíáåëéÉâíçê=ìåíÉêëÅÜÉáÇÉí=ëáÅÜ=áå=aÉäéÜá=ULOMMR=åáÅÜí= îçã= rãÖ~åÖ= ãáí= ÇÉã= lÄàÉâíáåëéÉâíçê= áå= ®äíÉêÉå= sÉêëáçåÉåK= aÉëïÉÖÉå= Äê~ìJ ÅÜÉå=ïáê=ëé®íÉê=åáÅÜí=òì=ÇáÑÑÉêÉåòáÉêÉåK= gÉÇÉ=wÉáäÉ=ÇÉë=lÄàÉâíáåëéÉâíçêë=ÄÉëÅÜêÉáÄí=ÉáåÉ=ÖÉïáëëÉ=báÖÉåëÅÜ~Ñí=ÇÉë=cçêãìJ ä~êëI=ÇáÉ=ïáê=áã=båíïìêÑ=ÉáåëíÉääÉå=â∏ååíÉåK=aÉëÜ~äÄ=â∏ååíÉå=ïáê=ÇÉå=lÄàÉâíáåJ ëéÉâíçê=~ìÅÜ=~äë=báÖÉåëÅÜ~ÑíëÑÉåëíÉê=ÄÉòÉáÅÜåÉåK=== tçääíÉå= ïáê= ÇÉå= sÉêëìÅÜ= ìåíÉêåÉÜãÉåI= ìåë= àÉÇÉ= ÉáåòÉäåÉ= ÇáÉëÉê= mçëáíáçåÉå= îçêòìåÉÜãÉå=ìåÇ=òì=ÉêÑçêëÅÜÉåI=ïÉäÅÜÉ=_ÉÇÉìíìåÖ=ëáÉ=Ü~íI=ï®êÉ=ÄÉêÉáíë=ÜáÉê= Éáå=ÄÉëçåÇÉêÉë=_ìÅÜ=òì=ëÅÜêÉáÄÉåK== hçåòÉåíêáÉêÉå= ïáê= ìåë= ÇÉëÜ~äÄ= ~ìÑ= ïÉåáÖÉ= wÉáäÉå= áã= lÄàÉâíáåëéÉâíçêI= ÇáÉ= ÄÉJ êÉáíë=ÑΩê=ÇÉå=^åÑ®åÖÉê=ïáÅÜíáÖ=ëáåÇK==

U= =

NKO== cçêãìä~ê= _Éîçê=ïáê=ÇáÉëÉ=wÉáäÉå=ÜÉê~ìëëìÅÜÉåI=ëçääíÉå=ïáê=ÇÉå=lÄàÉâíáåëéÉâíçêI=ÇÉëëÉå= báåíê®ÖÉ= ëíÉíë= ~åÑ~åÖë= íÜÉã~íáëÅÜ= ÖÉçêÇåÉí= ~åÖÉÄçíÉå= ïÉêÇÉåI= ~ìÑ= ÇáÉ= ~äéÜ~J ÄÉíáëÅÜÉ=^åçêÇåìåÖ=ìãëíÉääÉåK==

== _áäÇ=NKNOW=lÄàÉâíáåëéÉâíçê=~ìÑ=~äéÜ~ÄÉíáëÅÜÉ=^åçêÇåìåÖ=ìãëíÉääÉå= a~òì=ïáêÇ=ãáí=ÇÉê=êÉÅÜíÉå=j~ìëí~ëíÉ=~ìÑ=ÇáÉ=§ÄÉêëÅÜêáÑí=bfdbkp`e^cqbk=ÖÉâäáÅâí= ìåÇ=~åëÅÜäáÉ≈ÉåÇ=ΩÄÉê=^kloakbk=ÇáÉ=a~êëíÉääìåÖ=k^`e= k^jb=~ìëÖÉï®Üäí=EëáÉJ ÜÉ=_áäÇ=NKNOFK= §ÄÉê= ÇêÉá= ÖêìåÇäÉÖÉåÇÉ= Epí~êíJFbáÖÉåëÅÜ~ÑíÉå= ÇÉë= cçêãìä~êë= ëçääíÉå= ïáê= ìåë= ëíÉíë=dÉÇ~åâÉå=ã~ÅÜÉåW== NK= táÉ= Öêç≈= ëçää= ÇáÉ= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ïÉêÇÉå\= pçää= ëáÉ= ëíÉíë= _áäÇëÅÜáêã= ÑΩäJ äÉåÇ=ëÉáå=çÇÉê=ëçää=ëáÉ=ëé®íÉê=åìê=ÖÉå~ì=ÇáÉ=dê∏≈É=Ü~ÄÉåI=ãáí=ÇÉê=ëáÉ=áã=båíJ ïìêÑ=~äë=Öê~ì=ÖÉê~ëíÉêíÉ=cä®ÅÜÉ=ÉêëÅÜÉáåí\=råëÉêÉ=båíëÅÜÉáÇìåÖ=Ç~òì=ëíÉääÉå=ïáê= áå= ÇÉê= wÉáäÉ= WindowState= ÉáåK= _áäÇ= NKNP= òÉáÖí= ÇáÉ= ÇêÉá= ÉáåëíÉääÄ~êÉå= j∏ÖäáÅÜâÉáJ íÉåK=

= _áäÇ=NKNPW=sçêÉáåëíÉääìåÖ=ÇÉê=dê∏≈É=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ= OK= tÉäÅÜÉ= §ÄÉêëÅÜêáÑíI= ÇK= ÜK= ïÉäÅÜÉ= _ÉëÅÜêáÑíìåÖ= EÉåÖäKW= Å~éíáçåF= ëçää= Ç~ë= cçêJ ãìä~ê= ÄÉâçããÉå\= råëÉêÉ= båíëÅÜÉáÇìåÖ= íê~ÖÉå= ïáê= áå= ÇÉê= wÉáäÉ= Caption= ÇÉë= lÄàÉâíáåëéÉâíçêë=E_áäÇ=NKNQF=ÉáåK== = _áäÇ=NKNQW=t~Üä=ÇÉê=cÉåëíÉêΩÄÉêëÅÜêáÑí= PK= tÉäÅÜÉ= c~êÄÉ= ëçää= ÇáÉ= ^êÄÉáíëÑä®ÅÜÉ= ÄÉâçããÉåI= ÇK= ÜK= ïáÉ= ëçää= ÇÉê= eáåíÉêJ ÖêìåÇ=ìåëÉêÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=~ìëëÉÜÉå\=aáÉ=c~êÄÉ=ëíÉääÉå=ïáê=ãáí=eáäÑÉ=ÇÉê= wÉáäÉ=Color=áã=lÄàÉâíáåëéÉâíçê=ÉáåK=_áäÇ=NKNR=òÉáÖí=ÇáÉ=ÇáÉ=ÄÉáÇÉå=j∏ÖäáÅÜâÉáíÉå= ÇÉê=c~êÄ~ìëï~ÜäW== táêÇ= Ç~ë= å~ÅÜ= ìåíÉå= ÖÉêáÅÜíÉíÉ= aêÉáÉÅâ= áå= ÇÉê= wÉáäÉ= Color= ~åÖÉâäáÅâíI= ∏ÑÑåÉí= ëáÅÜ=ÉáåÉ=iáëíÉ=ãáí=c~êÄJk~ãÉåK=wìÉêëí=âçããÉå=ÇáÉ=dêìåÇÑ~êÄÉåI=å~ÅÜ=eÉääáÖJ âÉáí=ÖÉçêÇåÉíK==

V =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= ^åëÅÜäáÉ≈ÉåÇ= ëáåÇ= ëéÉòáÉääÉ= c~êÄÉå= EòK_K= clMenuText= çÇÉê= clInfoTextF= ~ìÑÖÉäáëJ íÉíI= ÇáÉ= áåòïáëÅÜÉå= ÑΩê= ÄÉëíáããíÉ= _ÉÇáÉåÉäÉãÉåíÉ= çÇÉê= _ÉÇáÉåëáíì~íáçåÉå= íóJ éáëÅÜ=ìåÇ=ΩÄäáÅÜ=ÖÉïçêÇÉå=ëáåÇK== báå=ëÅÜåÉääÉê=açééÉäâäáÅâ=áå=Ç~ë=fååÉêÉ=ÇÉë=cÉåëíÉêë=êÉÅÜíë=åÉÄÉå= Color=Ç~ÖÉJ ÖÉå= ∏ÑÑåÉí= ÉáåÉ= m~äÉííÉ= òìê= c~êÄ~ìëï~ÜäK= aáÉ= ÖÉòÉáÖíÉå= dêìåÇÑ~êÄÉå= â∏ååÉå= ëçÑçêí=~ìëÖÉï®Üäí=ïÉêÇÉåI=ÄÉäáÉÄáÖÉ=ïÉáíÉêÉ=c~êÄÉå=â∏ååÉå=Ç~òì=ãáí=eáäÑÉ=ÇÉê= pÅÜ~äíÑä®ÅÜÉ= Farben definieren >> =ÑÉëíÖÉäÉÖí=ïÉêÇÉåK==

= _áäÇ=NKNRW=c~êÄJsçêÉáåëíÉääìåÖ=

1.2.2

Test des Formulars

aáÉ=ãÉáëíÉå=báÖÉåëÅÜ~ÑíÉåI=ÇáÉ=ïáê=ãáí=eáäÑÉ=ÇÉë=lÄàÉâíáåëéÉâíçêë=îçêÉáåëíÉääÉåI= ïÉêÇÉå=ìåëI=ïáÉ=áå=ÉáåÉê= sçêëÅÜ~ìI=~ìÅÜ=ëÅÜçå=ëáÅÜíÄ~ê=~åÖÉòÉáÖíK=^ääÉêÇáåÖë= åáÅÜí=~ääÉ=Ó=ïΩêÇÉ=ìåë=ÄÉáëéáÉäëïÉáëÉ=Ç~ë=ã~ñáã~äÉ=cÉåëíÉê=ï®ÜêÉåÇ=ÇÉê=båíJ ïìêÑëí®íáÖâÉáí=ëÅÜçå=ÉáåÖÉëíÉääíI=â∏ååíÉå=ïáê=åáÅÜíë=^åÇÉêÉë=ãÉÜê=ëÉÜÉåK= aáÉ=ÉåÇÖΩäíáÖÉ=hçåíêçääÉI=ïáÉ=ëáÅÜ=Ç~ë=cçêãìä~ê=ëÅÜäáÉ≈äáÅÜ=ÇÉã=kìíòÉê=Ç~êëíÉäJ äÉå=ïáêÇI=äáÉÑÉêí=ÇáÉ=eÉêëíÉääìåÖ=ÇÉë=cçêãìä~êëI=áåÇÉã=ÇáÉ=ëç=ÖÉå~ååíÉ=i~ìÑòÉáí= ÖÉëí~êíÉí=ïáêÇ=Ó=ã~å=ë~Öí=~ìÅÜI=Éë=łïáêÇ=~ìëÖÉÑΩÜêí=çÇÉê=łÇáÉ=^ìëÑΩÜêìåÖ=ïáêÇ= ÖÉëí~êíÉíK== a~òì=ïáêÇ=ÉåíïÉÇÉê=ÇáÉ=q~ëíÉ= F9 =ÄÉí®íáÖí=çÇÉê=ãáí=ÇÉê=äáåâÉå=j~ìëí~ëíÉ=~ìÑ= Ç~ë=å~ÅÜ=êÉÅÜíë=ÖÉêáÅÜíÉíÉ=ÖêΩåÉ=aêÉáÉÅâ=E_áäÇ=NKNSF=ÖÉâäáÅâíK==

== _áäÇ=NKNSW=pí~êí=ÇÉê=i~ìÑòÉáíI=eÉêëíÉääìåÖ=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ= NM= =

NKO== cçêãìä~ê= cΩê= ÇáÉ= oΩÅââÉÜê= òìã= båíïìêÑëãçÇìë= E~ìÅÜ= ~äë= båíïìêÑëéÜ~ëÉ= çÇÉê= âìêò= ~äë= båíïìêÑ= ÄÉòÉáÅÜåÉíF= ãìëë= ÇáÉ= i~ìÑòÉáí= ÄÉÉåÇÉí= ïÉêÇÉå= Ó= áå= ÇÉê= péê~ÅÜÉ= îçå= aÉäéÜá=ULOMMR=ÜÉá≈í=Ç~ëI=Ç~ëë=ïáê=ìåë=ÇÉå=aÉëáÖåÉê=ïáÉÇÉê=~åòÉáÖÉå=ä~ëëÉåK=== aáÉ= i~ìÑòÉáí= ä®ëëí= ëáÅÜ= ÄÉÉåÇÉåI= áåÇÉã= ~ã= cçêãìä~ê= Ç~ë= pÅÜäáÉ≈âêÉìò= êÉÅÜíë= çÄÉå=~åÖÉâäáÅâí=ïáêÇ=çÇÉê=ÇáÉ=q~ëíÉåâçãÄáå~íáçå= Alt =H= F4 =ÖÉï®Üäí=ïáêÇK=== pçääíÉ= Ç~åå= ~åëíÉääÉ= ÇÉê= ÖÉê~ëíÉêíÉå= båíïìêÑëÑçêã= ÇÉë= cçêãìä~êë= Éáå= ~åÇÉêÉë= cÉåëíÉê= EòK= _K= ãáí= mêçÖê~ããíÉñíF= òì= ëÉÜÉå= ëÉáåI= â~åå= ãáí= = F12= = çÇÉê= ãáí= ÉáåÉê= pÅÜ~äíÑä®ÅÜÉ=EëK=_áäÇ=NKNTF=òìã=båíïìêÑ=ÇÉë=cçêãìä~êë=ÖÉïÉÅÜëÉäí=ïÉêÇÉåK=

=== _áäÇ=NKNTW=oΩÅââÉÜê=òìã=cçêãìä~ê=áå=aÉäéÜá=ULOMMR=ÄòïK=aÉäéÜá=T= fã= båíïìêÑ= â~åå= Ç~åå= ïÉáíÉê= ~å= ÇÉê= sçêÄÉêÉáíìåÖ= ÇÉë= cçêãìä~êë= ÖÉ~êÄÉáíÉí= ïÉêÇÉåK= bêëÅÜÉáåìåÖëãÉêâã~äÉI= ÇáÉ= åáÅÜí= ÖÉÑ~ääÉå= Ü~ÄÉåI= â∏ååÉå= âçêêáÖáÉêí= ïÉêÇÉåI=ìåÇ=Éë=ëçääíÉ=îçê=~ääÉã=ÇìêÅÜ=péÉáÅÜÉêìåÖ=ÇÉê=ÄáëÜÉêáÖÉ=_É~êÄÉáíìåÖëJ ëí~åÇ=ÖÉëáÅÜÉêí=ïÉêÇÉåK=

= _áäÇ=NKNUW=aÉäéÜáJULOMMRJjÉåΩ=a^qbf=ãáí=péÉáÅÜÉêã∏ÖäáÅÜâÉáíÉå==

1.2.3

Speicherung

aáÉ=®äíÉêÉå=sÉêëáçåÉå=îçå=aÉäéÜá=ìåÇ=îçê=~ääÉã=Ç~åå=aÉäéÜá=ULOMMR=ëáåÇ=äÉáëJ íìåÖëÑ®ÜáÖÉ= båíïáÅâäìåÖëëóëíÉãÉI= ÑçäÖäáÅÜ= ïáêÇ= ÉáåÉ= ÉáåòáÖÉ= a~íÉá= òìã= péÉáJ ÅÜÉêå=âÉáåÉëÑ~ääë=~ìëêÉáÅÜÉåK=dêìåÇë®íòäáÅÜ=ëçääíÉ=ëíÉíë=îÉê~åä~ëëí=ïÉêÇÉåI=Ç~ëë= Ç~ë=aÉäéÜáJpóëíÉã=ëíÉíë=~ääÉë=ëéÉáÅÜÉêíK== NN =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= a~òì=ÖáÄí=Éë=áã=jÉåΩ=a^qbf=~ääÉê=aÉäéÜáJsÉêëáçåÉå=ëéÉòáÉää=Ç~ë=^åÖÉÄçí=^iibp= pmbf`ebokK= _áäÇ= NKNU= òÉáÖí= Ç~ë= jÉåΩ= a^qbf= îçå= aÉäéÜá= ULOMMRK= få= ®äíÉêÉå= aÉäJ éÜáJsÉêëáçåÉå=ÖáÄí=Éë=Ç~òì=âÉáåÉå=ïÉëÉåíäáÅÜÉå=råíÉêëÅÜáÉÇK== _Éáã=ÉêëíÉå=j~ä=îçå=^iibp= pmbf`ebok=ãΩëëÉå=ïáê=ëíÉíë=òïÉá=îÉêëÅÜáÉÇÉåÉ=a~íÉáJ å~ãÉå=ëÉäÄÉê=îçêÖÉÄÉåW== ^äë= bêëíÉë= îÉêä~åÖí= aÉäéÜá= å®ãäáÅÜ= åçÅÜ= åáÅÜí= ÇÉå= k~ãÉå= ÑΩê= Ç~ë= Ö~åòÉ= mêçJ àÉâíI=ëçåÇÉêå=Éêëí=Éáåã~ä=åìê=ÇÉå=k~ãÉå=ÑΩê=ÇáÉ=a~íÉáI=ÇáÉ=Ç~ë=cçêãìä~ê=ëéÉáJ ÅÜÉêíK= a~= ÇáÉ= éêçÖê~ããíÉÅÜåáëÅÜÉ= _ÉòÉáÅÜåìåÖ= ÑΩê= ÇÉå= qÉñíI= ÇÉê= áååÉêÜ~äÄ= ÇÉë= mêçàÉâíë= ÇáÉ= ^åÖ~ÄÉå= òìã= cçêãìä~ê= ëéÉáÅÜÉêíI= ãáí= ÇÉê= sçâ~ÄÉä= Unit= ÄÉJ ÖáååíI=ëçääíÉ=ëáÅÜ=òïÉÅâã®≈áÖ=ÇÉê=k~ãÉ=ÇÉê=cçêãìä~êJa~íÉá=îçã=mêçàÉâíå~ãÉå= ÇìêÅÜ=Éáå=~åÖÉÜ®åÖíÉë=łì=ìåíÉêëÅÜÉáÇÉåK== pçää=òìã=_ÉáëéáÉä=Ç~ë=ÖÉë~ãíÉ=ÉêëíÉ=mêçàÉâí=ìåíÉê= ÇÉã=k~ãÉå= kap01=ÖÉëáÅÜÉêí= ïÉêÇÉåI=ÉãéÑáÉÜäí=ëáÅÜ=ÑΩê=ÇáÉ=cçêãìä~êJa~íÉá=ÇÉê=k~ãÉ=kap01uK= bêëí=~åëÅÜäáÉ≈ÉåÇ=îÉêä~åÖí=aÉäéÜá=ÇÉå=k~ãÉå=ÑΩê=Ç~ë=Ö~åòÉ=mêçàÉâíK=eáÉê=ï®êÉ= áå=ìåëÉêÉã=c~ää= kap01=ëáååîçääK=aáÉ=àÉïÉáäáÖÉå=båÇìåÖÉå=ÉêÖ®åòí=aÉäéÜá=ëÉäÄëíJ í®íáÖK==== _áäÇ=NKNV=ä®ëëí=ÉêâÉååÉåI=Ç~ëë=aÉäéÜá=U=ìåÇ=Éêëí=êÉÅÜí=aÉäéÜá=OMMR=ãáí=ÇÉå=òïÉá= îÉêÖÉÄÉåÉå=k~ãÉå=ëçÑçêí=ÉáåÉ=cΩääÉ=~å=a~íÉáÉå=~åÖÉäÉÖí=Ü~í=Ó=~ìÅÜ=ïÉåå=Ç~ë= mêçàÉâí=ÄáëÜÉê=äÉÇáÖäáÅÜ=Éáå=ÉáåòáÖÉë=cçêãìä~ê=ÉåíÜ®äíK==

=== _áäÇ=NKNVW=a~íÉáÉå=ÇÉë=mêçàÉâíëI=îçå=aÉäéÜá=U=ÄòïK=aÉäéÜá=OMMR=~åÖÉäÉÖí= aáÉ=®äíÉêÉå=sÉêëáçåÉå=îçå=aÉäéÜá=äÉÖÉå=éêç=mêçàÉâí=~ìÅÜ=ãÉÜêÉêÉ=a~íÉáÉå=~åI= ÑΩê=ëáÉ=Öáäí=Ç~ë=dÉë~ÖíÉ=ÉÄÉåëçK== ^ääÉêÇáåÖë=J=ÇáÉ= bdsprojJa~íÉáÉå=ÖáÄí=Éë=áå=ÇÉå=®äíÉêÉå=aÉäéÜáJsÉêëáçåÉå=åáÅÜíK= aÉëÜ~äÄ=ãΩëëÉå=ïáê=ìåíÉêëÅÜÉáÇÉåW== • aáÉ=ÉåíëÅÜÉáÇÉåÇÉ=a~íÉá=ÑΩê=Éáå=aÉäéÜáJTJmêçàÉâí=EçÇÉê=Éáå=mêçàÉâí=ÉáåÉê=åçÅÜ= ®äíÉêÉå=aÉäéÜáJsÉêëáçåF=áëí=áããÉê=ÇáÉ=mêçàÉâíJa~íÉá=ãáí=ÇÉê=båÇìåÖ=.dprK== • aáÉ=ÉåíëÅÜÉáÇÉåÇÉ=a~íÉá=ÑΩê=Éáå=aÉäéÜáJULOMMRJmêçàÉâí=áëí=áããÉê=ÇáÉ=mêçàÉâíJ a~íÉá=ãáí=ÇÉê=båÇìåÖ=.bdsprojK==

NO= =

NKP== píÉìÉêÉäÉãÉåíÉ=ÑΩê=Ç~ë=cçêãìä~ê= tÉåå= ëé®íÉê= ãáííÉäë= a^qbfmolgbhq= £cckbk= Éáå= îçêÜ~åÇÉåÉë= mêçàÉâí= ÖÉ∏ÑÑåÉí= ïÉêÇÉå= ëçääI= ïÉêÇÉå= áå= ÇÉã= ÉåíëéêÉÅÜÉåÇÉå= ^ìëï~ÜäJcÉåëíÉê= E_áäÇ= NKOMF= îçå= ÇÉå=îáÉäÉå=a~íÉáÉå=ÇÉë=mêçàÉâíÉë=çÜåÉÜáå=åìê=ÇáÉ=mêçàÉâíÇ~íÉáÉå=ëçïáÉ=ÇáÉ=cçêJ ãìä~êJa~íÉáEÉåF=òìê=^ìëï~Üä=~åÖÉÄçíÉåK== a~åå= ëçääíÉ= Ç~åå= áããÉê= ÇáÉ= dprJa~íÉá= EÑΩê= sÉêëáçåÉå= Äáë= aÉäéÜá= TF= ÄòïK= ÇáÉ= bdsprojJa~íÉá=ÇÉë=mêçàÉâíë=~ìëÖÉï®Üäí=ïÉêÇÉåK==

== _áäÇ=NKOMW=^åÖÉÄçí=ÄÉá=a^qbfJ[molgbhq=£cckbk=áå=aÉäéÜá=T=ÄòïK=ULOMMR=

1.3

Steuerelemente für das Formular

1.3.1

Auswahl mit Delphi 8/2005

táÉ= ÄÉâçããí= ã~å= òìã= _ÉáëéáÉä= ÉáåÉå= _ìííçå= EpÅÜ~äíÑä®ÅÜÉFI= ÉáåÉ= pÅêçääÄ~ê= EpÅÜáÉÄÉêÉÖäÉêFI=Éáå=qÉñíÑÉåëíÉê=çÇÉê=~ää=ÇáÉ=~åÇÉêÉå=_ÉÇáÉåÉäÉãÉåíÉI=~å=ÇáÉ=ïáê= áåòïáëÅÜÉå= ÖÉï∏Üåí= ëáåÇ= ìåÇ= ãáí= ÇÉåÉå= ïáê= ÉáåÉ= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ÖÉëí~äíÉå= ïçääÉåI=áã=båíïìêÑ=~ìÑ=Ç~ë=cçêãìä~ê\== tÉåå= ïáê= ãáí= aÉäéÜá= ULOMMR= ~êÄÉáíÉåI= ÄÉå∏íáÖÉå= ïáê= ÜáÉêòì= ÇáÉ= qççäJm~äÉííÉI= ÇáÉ= áå= ãÉÜêÉêÉå= h~íÉÖçêáÉå= EëK= _áäÇ= NKONF= ~ääÉ= ^êíÉå= îçå= píÉìÉêÉäÉãÉåíÉ= òìê= sÉêÑΩÖìåÖ=ëíÉääíI=ÇáÉ=ã~å=ëáÅÜ=ÑΩê=ÜÉìíáÖÉ=^åïÉåÇìåÖÉå=ïΩåëÅÜÉå=â~ååK===

=== _áäÇ=NKONW=qççäJm~äÉííÉ=îçå=aÉäéÜá=U= báåÉ= h~íÉÖçêáÉ= ïáêÇ= ÉåíïÉÇÉê= ΩÄÉê= ÇÉå= táåâÉä= åÉÄÉå= = Kategorien= = çÇÉê= ÇìêÅÜ= häáÅâ=~ìÑ=ÇÉå=açééÉäïáåâÉä=åÉÄÉå=ÇÉã=àÉïÉáäáÖÉå=h~íÉÖçêáÉå~ãÉå=~ìëÖÉï®ÜäíK==

NP =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå=

1.3.2

Auswahl mit älteren Delphi-Versionen

få= aÉäéÜá= T= ìåÇ= ÑêΩÜÉêÉå= sÉêëáçåÉå= îçå= aÉäéÜá= ëáåÇ= Ç~ÖÉÖÉå= ÇáÉ= póãÄçäÉ= ÑΩê= ÇáÉ=píÉìÉêÉäÉãÉåíÉ=áå=oÉÖáëíÉêÄä®ííÉêå=~ìÑ=ÇÉê=hçãéçåÉåíÉåäÉáëíÉ=E_áäÇ=NKOOF=~åJ ÖÉçêÇåÉíK==

1.3.3

Wichtige Kategorien bzw. Registerblätter

få=aÉäéÜá=ULOMMR= ïáêÇ=îçå= h~íÉÖçêáÉå=áå=ÇÉê=qççäJm~äÉííÉ=ÖÉëéêçÅÜÉåI=áå= ®äíÉJ êÉå=aÉäéÜáJsÉêëáçåÉå=Ç~ÖÉÖÉå=îçå=oÉÖáëíÉêÄä®ííÉêå=ÇÉê=hçãéçåÉåíÉåäÉáëíÉK=fåJ Ü~äíäáÅÜ=ÖáÄí=Éë=~ÄÉê=âÉáåÉ=råíÉêëÅÜáÉÇÉK== = _áäÇ=NKOOW=hçãéçåÉåíÉåäÉáëíÉ=îçå=aÉäéÜá=T== cΩê=ìåë=ïáêÇ=Ü~ìéíë®ÅÜäáÅÜ=ÇáÉ=h~íÉÖçêáÉ=ÄòïK=Ç~ë=oÉÖáëíÉêÄä~íí=pq^ka^oa=ÄÉJ ÇÉìíë~ã= ëÉáå= E_áäÇÉê= NKOP= ìåÇ= NKOQFX= Ççêí= ÄÉÑáåÇÉå= ëáÅÜI= ïáÉ= ïáê= ÖäÉáÅÜ= ëÉÜÉå= ïÉêÇÉåI=ÇáÉ=ÖêìåÇë®íòäáÅÜÉå=_ÉÇáÉåìåÖëÉäÉãÉåíÉK== t®ÜêÉåÇ= ÄÉá= aÉäéÜá= ULOMMR= åÉÄÉå= ÇÉã= àÉïÉáäáÖÉå= páååÄáäÇ= ÉáåÉ= _ÉëÅÜêáÑíìåÖ= îçêÖÉåçããÉå=ïìêÇÉI= ãìëë= ã~å=ÄÉá= ÑêΩÜÉêÉå=aÉäéÜáJsÉêëáçåÉå=ÇáÉ=ÄÉêΩÜãíÉ= pÉâìåÇÉ=ï~êíÉåI=Äáë=Ç~ë=âäÉáåÉ=ÖÉäÄÉ=cÉåëíÉê=~ìÑÄäÉåÇÉí=ìåÇ=ìåë=ΩÄÉê=ÇáÉ=_ÉJ ÇÉìíìåÖ=ÇÉë=póãÄçäë=áåÑçêãáÉêíK==

=== _áäÇ=NKOPW=h~íÉÖçêáÉ=pq^ka^oa=áå=aÉäéÜá=ULOMMR=

= _áäÇ=NKOQW=oÉÖáëíÉêÄä~íí=pq^ka^oa=áå=aÉäéÜá=T=ìåÇ=ÑêΩÜÉêÉå=sÉêëáçåÉå== ^ìë=ÇÉê=h~íÉÖçêáÉLÇÉã=oÉÖáëíÉêÄä~íí=pvpqbj=ïÉêÇÉå=ïáê=~Ä=h~éáíÉä=S=ÇÉå=ïáÅÜJ íáÖÉå=Timer=ÄÉå∏íáÖÉå=ìåÇ=~ìë=ÇÉê=h~íÉÖçêáÉ=wrpûqwif`e=ÉåíåÉÜãÉå=ïáê=áã=^ÄJ ëÅÜåáíí=TKQKQ=Ç~ë=bäÉãÉåí=Image=ìåÇ=áã=^ÄëÅÜåáíí=NMKNKO=Ç~ë=bäÉãÉåí=ShapeK===

NQ= =

NKQ== _~ëáëÉäÉãÉåíÉ=

1.4

Basiselemente

1.4.1

Von Button bis Scrollbar

fã= _áäÇ= NKOR= ëáåÇ= ÇáÉ= páååÄáäÇÉê= ~ìë= ÇÉê= h~íÉÖçêáÉ= ÄòïK= ÇÉã= oÉÖáëíÉêÄä~íí= pq^ka^oa=îçå=aÉäéÜá=ÜÉêîçêÖÉÜçÄÉåI=ãáí=ÇÉåÉå=ïáê=ÇáÉ=ëÉÅÜë=ÖêìåÇäÉÖÉåÇÉå= _ÉÇáÉåìåÖëÉäÉãÉåíÉ= pÅÜ~äíÑä®ÅÜÉ= E_ìííçåFI= qÉñíÑÉåëíÉê= EbÇáíFI= g~JkÉáåJléíáçå= E`ÜÉÅâÄçñFI= ÉñâäìëáîÉ= g~JkÉáåJléíáçå= Eo~Çáç_ìííçåFI= qÉñí~åòÉáÖÉ= Ei~ÄÉäF= ìåÇ= pÅÜáÉÄÉêÉÖäÉê=EpÅêçääÄ~êF=~ìëï®ÜäÉå=â∏ååÉåK=_áäÇ=NKOS=òÉáÖí=ÇáÉëÉ=bäÉãÉåíÉ=~ìÑ= ÇÉã=cçêãìä~êI=ÄáëÜÉê=åçÅÜ=çÜåÉ=ïÉáíÉêÉ=sçêÉáåëíÉääìåÖÉåK=====

== _áäÇ=NKORW=páååÄáäÇÉê=ÑΩê=ÇáÉ=ëÉÅÜë=_~ëáëÉäÉãÉåíÉ==

= _áäÇ=NKOSW=_ÉÇáÉåìåÖëÉäÉãÉåíÉ=~ìÑ=ÇÉã=cçêãìä~ê= cΩê=ÇÉå=ïÉáíÉêÉå=péê~ÅÜÖÉÄê~ìÅÜ=ÑçäÖÉå=ïáê=ÇÉã=qêÉåÇW=kìê=ÑΩê=Ç~ë=qÉñíÑÉåëJ íÉê= ïÉêÇÉå= ïáê= ïÉáíÉêÜáå= ÇáÉ= ÇÉìíëÅÜÉ= _ÉòÉáÅÜåìåÖ= îÉêïÉåÇÉå= Eã~åÅÜã~ä= ïáêÇ=ëáÅÜ=~ìÅÜ=qÉñíÄçñ=ÉáåëÅÜäÉáÅÜÉåFK== ^åëçåëíÉå=ëéêÉÅÜÉå=ïáê=îçå=ÉáåÉã=i~ÄÉäI=ÉáåÉê=`ÜÉÅâÄçñI=ÉáåÉã=_ìííçåI=ÉáåÉê= pÅêçääÄ~ê=ìåÇ=ÉáåÉã=o~ÇáçÄìííçåK=a~åå=ÄäÉáÄÉå=ïáê=ãáí=ìåëÉêÉê=péê~ÅÜÉ=~ìÅÜ= ÖäÉáÅÜ= å~ÜÉ= ÄÉá= ÇÉå= pí~åÇ~êÇJk~ãÉåI= ÇáÉ= aÉäéÜá= ëçïáÉëç= ÑΩê= ÇáÉëÉ= _ÉÇáÉJ åìåÖëÉäÉãÉåíÉ=îÉêÖáÄíK==

NR =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= aáÉ=mä~íòáÉêìåÖ=~ìÑ=ÇÉã= cçêãìä~ê=áëí= ÇÉåâÄ~ê=ÉáåÑ~ÅÜW=jáí=ÇÉê= j~ìë=ïáêÇ=Ç~ë= póãÄçä=~ìë=ÇÉê=h~íÉÖçêáÉ=ÄòïK=îçã=oÉÖáëíÉêÄä~íí=~å=ÇáÉ=ÖÉïΩåëÅÜíÉ=píÉääÉ=ÖÉJ òçÖÉåI=ÇáÉ=dê∏≈É=ïáêÇ=ÉáåÖÉêáÅÜíÉíI=ÑÉêíáÖK== fã= ëÉäÄÉå= jçãÉåí= ëíÉääí= ëáÅÜ= ~ìÅÜ= ÄÉêÉáíë= ÇÉê= lÄàÉâíáåëéÉâíçê= ~ìÑ= Ç~ë= ëçÉÄÉå= éä~íòáÉêíÉ=_ÉÇáÉåìåÖëÉäÉãÉåí=ÉáåI=íÉáäí=ÇÉëëÉå=îçã=aÉäéÜáJpóëíÉã=îçêÖÉëÅÜä~ÖÉJ åÉå=k~ãÉå=ãáí=ìåÇ=ÄáÉíÉí=ÇÉå=h~í~äçÖ=~ääÉê=báÖÉåëÅÜ~ÑíÉå=~åI=ÇáÉ=ÑΩê=ÇáÉ=i~ìÑJ òÉáí=~åÑ~åÖë=îçêÉáåÖÉëíÉääí=ïÉêÇÉå=â∏ååÉåK===

1.4.2

Name, Beschriftung, Inhalt

få=ÇÉã=^ìÖÉåÄäáÅâI=áå=ÇÉã=ïáê=áã=båíïìêÑ=Éáå=píÉìÉêJ=çÇÉê=_ÉÇáÉåÉäÉãÉåí=~ìÑ= ÇÉã= cçêãìä~ê= éä~íòáÉêÉåI= ãìëë= Éë= ÉáåÉå= k~ãÉå= ÄÉâçããÉåK= aáÉëÉê= k~ãÉ= áëí= _Éëí~åÇíÉáä=ÇÉê=áåíÉêåÉå=lêÖ~åáë~íáçå=ÇÉë=ÖÉë~ãíÉå=aÉäéÜáJmêçàÉâíëK== • aÉäéÜá=ëÅÜä®Öí=ìåë=ÑΩê=àÉÇÉë=píÉìÉêÉäÉãÉåí=ëçÑçêí=~ìíçã~íáëÅÜ=ÉáåÉå=k~ãÉå= îçêK== cΩê= ÇáÉ= _ìííçåë= ïáêÇ= Button1I= Button2= ìëïK= îçêÖÉëÅÜä~ÖÉåI= ÑΩê= ÇáÉ= qÉñíÑÉåëíÉê= äÉëÉå=ïáê=Edit1I=Edit2=ìëïKI=ÑΩê=`ÜÉÅâÄçñÉå=ïáêÇ=ìåë=Checkbox1I=Checkbox2=ìëïK= îçêÖÉëÅÜä~ÖÉåI= ÑΩê= o~ÇáçÄìííçåë= ä~ìíÉí= ÇÉê= aÉäéÜáJsçêëÅÜä~Ö= Radiobutton1I= Radiobutton2= ìëïKI= ìåÇ= àÉÇÉ= pÅêçääÄ~ê= ïáêÇ= Éêëí= Éáåã~ä= ãáí= ÇÉã= ÉåíëéêÉÅÜÉåÇÉå= k~ãÉå=Scrollbar1=ìëïK=îÉêëÉÜÉåK=== aÉå=aÉäéÜáJk~ãÉåëîçêëÅÜä~Ö=â∏ååÉå=ïáê=ëçïçÜä=ÑÉííÖÉÇêìÅâí=áå=ÇÉê=hçéÑòÉáäÉ= ÇÉë=òìÖÉÜ∏êáÖÉå=lÄàÉâíáåëéÉâíçêë=~äë=~ìÅÜ=áå=ÇÉê=wÉáäÉ=Name=äÉëÉå=E_áäÇ=NKOTFK==

=== _áäÇ=NKOTW=aÉäéÜá=ëÅÜä®Öí=ÉáåÉå=k~ãÉå=ÑΩê=Éáå=_ÉÇáÉåÉäÉãÉåí=îçê= k~íΩêäáÅÜ=ãìëë=ÇÉê=aÉäéÜáJk~ãÉåëîçêëÅÜä~Ö=åáÅÜí=~âòÉéíáÉêí=ïÉêÇÉåX=ïáê=â∏ååJ íÉå= ìåîÉêòΩÖäáÅÜ= áã= lÄàÉâíáåëéÉâíçê= ÇáÉ= báÖÉåëÅÜ~Ñí= Name= ~åÇÉêëI= áåÇáîáÇìÉää= ÄÉäÉÖÉåK=aÉäéÜá=ïΩêÇÉ=~ìÅÜ=ÇÉå=îçå=ìåë=îÉêÖÉÄÉåÉå=k~ãÉå=~âòÉéíáÉêÉå=Ó=ëçJ ÑÉêå=ëÉáå=^ìÑÄ~ì=ÖÉïáëëÉå=oÉÖÉäå=ÖÉåΩÖíK== açÅÜ= ÑΩê= ÇÉå= ^åÑ®åÖÉê= ÉêÖáÄí= ëáÅÜ= Ç~ãáí= ÉáåÉ= ïÉáíÉêÉ= pÅÜïáÉêáÖâÉáí= ìåÇ= cÉÜJ äÉêèìÉääÉI=~ì≈ÉêÇÉã=â~åå=äÉáÅÜí=ÇáÉ=§ÄÉêëáÅÜí=îÉêäçêÉå=ïÉêÇÉåK== NS= =

NKQ== _~ëáëÉäÉãÉåíÉ= • aÉëïÉÖÉå=ïáêÇ=áå=ÇáÉëÉã=_ìÅÜ=Eãáí=^ìëå~ÜãÉ=ÉáåÉê=ÉáåòáÖÉå=píÉääÉ=áã=^ÄJ ëÅÜåáíí=NPKQKPF=ÖÉåÉêÉää=ÉãéÑçÜäÉåI=ÇáÉ=k~ãÉåëîçêëÅÜä®ÖÉ=îçå=aÉäéÜá=òì=~âJ òÉéíáÉêÉå=ìåÇ=ãáí=ÇÉå=aÉäéÜáJk~ãÉå=òì=~êÄÉáíÉåK== ^ìÑ=ÉáåÉ=_ÉëçåÇÉêÜÉáí=ãìëë=àÉÇçÅÜ=ìåÄÉÇáåÖí=ÜáåÖÉïáÉëÉå=ïÉêÇÉåW=tÉåå=aÉäJ éÜá=ÉáåÉå=k~ãÉå=ÑΩê=Éáå=_ÉÇáÉåìåÖëÉäÉãÉåí=îçêëÅÜä®Öí=ìåÇ=áå=ÇáÉ=wÉáäÉ= Name= Éáåíê®ÖíI=íê®Öí=aÉäéÜá=ÇáÉëÉå=k~ãÉå=~ìíçã~íáëÅÜ=~ìÅÜ=~äë=_ÉëÅÜêáÑíìåÖ=îçå=cçêJ ãìä~êI=_ìííçåI=`ÜÉÅâÄçñI=i~ÄÉä=çÇÉê=o~ÇáçÄìííçå=áå=ÇáÉ=wÉáäÉ= Caption=çÇÉê=~äë= fåÜ~äí=ÉáåÉë=qÉñíÑÉåëíÉêë=áå=ÇáÉ=wÉáäÉ=Text=ÉáåK== a~ë=ÑΩÜêí=ÄÉá=^åÑ®åÖÉêå=ÖÉêå=Ç~òìI=Ç~ëë=ëáÉ=ÇáÉ=^ìÑÖ~ÄÉ=łûåÇÉêÉ=ÇáÉ=pí~êíJ_ÉJ ëÅÜêáÑíìåÖ=çÇÉê=ÇÉå=pí~êíJfåÜ~äí=Ñ~äëÅÜ=Ç~ÇìêÅÜ=ä∏ëÉåI=Ç~ëë=ëáÉ=ÇÉå=k~ãÉå=®åJ ÇÉêåK====

1.4.3

Voreinstellungen

aÉê=lÄàÉâíáåëéÉâíçê=ÉáåÉë=_ìííçåë=E_áäÇ=NKOUF=ÄáÉíÉí=~ää=Ç~ë=~åI=ï~ë=áå=ÇÉê=båíJ ïìêÑëéÜ~ëÉ= ~äë= báÖÉåëÅÜ~Ñí= ÉåíëéêÉÅÜÉåÇ= ÇÉã= ÖÉïΩåëÅÜíÉå= bêëÅÜÉáåìåÖëÄáäÇ= ÄÉáã=pí~êí=ÉáåÖÉëíÉääí=ïÉêÇÉå=â~ååK=aáÉ=ÄÉáÇÉå=ãÉáëíÖÉÄê~ìÅÜíÉå=báÖÉåëÅÜ~ÑíÉå= ëáåÇ=áã=_áäÇ=ÜÉêîçêÖÉÜçÄÉåW=aáÉ=_ÉëÅÜêáÑíìåÖ=ÇÉë=_ìííçåë=ΩÄÉê=Caption=ìåÇ=ÇáÉ= báåëíÉääìåÖ=îçå=pÅÜêáÑíÖê∏≈É=ìåÇ=Óëíáä=ΩÄÉê=FontK=

= _áäÇ=NKOUW=lÄàÉâíáåëéÉâíçê=ÉáåÉë=_ìííçåë=áå=aÉäéÜá=ULOMMR= aáÉ=ÇêÉá=ïáÅÜíáÖëíÉå=wÉáäÉå=ÇÉë=lÄàÉâíáåëéÉâíçêë=ÉáåÉë=qÉñíÑÉåëíÉêë=ëáåÇW== • Text=òìê=sçêÉáåëíÉääìåÖ=ÇÉë=fåÜ~äíë=ÄÉáã=pí~êí=ÇÉê=i~ìÑòÉáíI== • Color=òìê=sçêÉáåëíÉääìåÖ=ÇÉê=cÉåëíÉêÑ~êÄÉ=ìåÇ== • Font=òìê=sçêÉáåëíÉääìåÖ=ÇÉê=pÅÜêáÑíK==== NT =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= fã=lÄàÉâíáåëéÉâíçê=ÉáåÉê=`ÜÉÅâÄçñ=ëáåÇ=ÄÉëçåÇÉêë=ÜÉêîçêòìÜÉÄÉåW== • ÇáÉ=j∏ÖäáÅÜâÉáí=ÇÉê=c~êÄJsçêï~Üä=ΩÄÉê=ColorI== • ÇáÉ= t~Üä= ÇÉê= pí~êíJ_ÉëÅÜêáÑíìåÖ= ΩÄÉê= Caption= ÉáåëÅÜäáÉ≈äáÅÜ= ÇÉê= pÅÜêáÑí~ìëJ ï~Üä=ãáííÉäë=FontI== • ÇáÉ=j∏ÖäáÅÜâÉáíI=ÇáÉ=`ÜÉÅâÄçñ=ãáí=çÇÉê=çÜåÉ=ÖÉëÉíòíÉå= e~âÉå=EbáÖÉåëÅÜ~Ñí= CheckedF= ~ìÑ= ÇÉê= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ÄÉáã= pí~êí= ÇÉê= i~ìÑòÉáí= ÉêëÅÜÉáåÉå= òì= ä~ëëÉåK== báå= i~ÄÉä= áëí= Éáå= êÉáåÉë= ^ìëÖ~ÄÉãÉÇáìãX= Éë= ïáêÇ= òìÉêëí= Éáåã~ä= Ç~ÑΩê= ÄÉåìíòíI= ìã=fåÑçêã~íáçåëJqÉñíÉ=~ìÑ=Ç~ë=cçêãìä~ê=òì=ëÅÜêÉáÄÉåK=aÉëÜ~äÄ=â~åå== • ΩÄÉê= ÇáÉ= báÖÉåëÅÜ~Ñí= Transparent= ÉáåÖÉëíÉääí= ïÉêÇÉåI= çÄ= Ç~ë= i~ÄÉä= ÇìêÅÜJ ëÅÜÉáåÉåÇ=áëí=çÇÉê=ÉáåÉå=ÉáÖÉåÉå=eáåíÉêÖêìåÇ=Ü~ÄÉå=ëçääI== • ãáí=Caption=ÇáÉ=pí~êíÄÉëÅÜêáÑíìåÖ=ÖÉï®Üäí=ïÉêÇÉåI== • ãáí=Font=ÇáÉ=pÅÜêáÑí~êíI=ãáí=Color=ÇáÉ=c~êÄÉ=îçêÉáåÖÉëíÉääí=ïÉêÇÉåK=== tÉáíÉêÜáå= ïáêÇ= Ó= áã= dÉÖÉåë~íò= òìã= qÉñíÑÉåëíÉê= Ó= Éáå= i~ÄÉä= áããÉê= Ç~åå= ÄÉJ åìíòíI=ïÉåå=Éáå=kìíòÉê=Éáå=bêÖÉÄåáë=çÜåÉ=ûåÇÉêìåÖëã∏ÖäáÅÜâÉáí=òìê=hÉååíåáë= åÉÜãÉå=ëçääK=få=ÇáÉëÉã=c~ää=â~åå=ΩÄÉê=ÇáÉ=báÖÉåëÅÜ~Ñí= AutoSize=ÉáåÖÉëíÉääí=ïÉêJ ÇÉåI=çÄ=ëáÅÜ=Ç~ë=i~ÄÉä=ÇÉã=~ìëòìÖÉÄÉåÇÉå=fåÜ~äí=áå=ÇÉê=dê∏≈É=~åé~ëëÉå=ëçää= çÇÉê=áããÉê=ÇáÉëÉäÄÉI=áã=båíïìêÑ=îçêÉáåÖÉëíÉääíÉ=dê∏≈É=ÄÉëáíòíK== báå= pÅÜáÉÄÉêÉÖäÉêI= ~ääÖÉãÉáå= ~äë= pÅêçääÄ~ê= ÄÉòÉáÅÜåÉíI= ã~åÅÜã~ä= îçå= hÉååÉêå= ~ìÅÜ=mçíÉåíáçãÉíÉê=ÖÉå~ååíI=áëí=Éáå=ëÉÜê=ïáêâë~ãÉë=_ÉÇáÉåìåÖëÉäÉãÉåíK=aÉåå= ãáí=ëÉáåÉê=eáäÑÉ=â~åå=ã~å=Éáå=jáííÉä=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêÉåI=ÄÉá=ÇÉã=ÉáåÉ= cÉÜäÄÉÇáÉåìåÖ=ÇìêÅÜ=ÇÉå=kìíòÉê=~Äëçäìí=~ìëÖÉëÅÜäçëëÉå=áëíK== táê=Äê~ìÅÜÉå=ìåë=òìã=_ÉáëéáÉä=åìê=ÉáåÉ=^åïÉåÇìåÖ=îçêòìëíÉääÉåI=ÄÉá=ÇÉê=Éáå= kìíòÉê= åìê= Ö~åòò~ÜäáÖÉ= tÉêíÉ= òïáëÅÜÉå= M= ìåÇ= ORR= EëK= ^ÄëÅÜåáíí= TKNKPF= ÉáåÖÉJ ÄÉå=Ç~êÑK== i~ëëÉå=ïáê=ÇÉå=kìíòÉê=E~ìÅÜ=ãáí=ÉåíëéêÉÅÜÉåÇÉã=eáåïÉáëF=ëÉáåÉå=tÉêí=áå=Éáå= qÉñíÑÉåëíÉê= Éáåíê~ÖÉåI= â∏ååÉå= ïáê= ãáí= ~å= páÅÜÉêÜÉáí= ÖêÉåòÉåÇÉê= t~ÜêëÅÜÉáåJ äáÅÜâÉáí= Ç~îçå= ~ìëÖÉÜÉåI= Ç~ëë= Éê= ~ìë= råâçåòÉåíêáÉêíÜÉáí= çÇÉê= jΩÇáÖâÉáí= çÇÉê= _∏ë~êíáÖâÉáí= ÇçÅÜ= ÄáëïÉáäÉå= Éíï~ë= páååäçëÉë= Éáåíê®ÖíK= báåÉ= cÉÜäÉêãÉäÇìåÖI= ïÉåå=åáÅÜí=ëçÖ~ê=Éáå=mêçÖê~ãã~Äëíìêò=ëáåÇ=ÇáÉ=cçäÖÉåK=cçêÇÉêå=ïáê=ÇÉå=kìíJ òÉê=Ç~ÖÉÖÉå=~ìÑI=áå=ÉáåÉê=pÅêçääÄ~êI=ÇÉêÉå=jáåáãìã=~ìÑ=M=ìåÇ=ÇÉêÉå=j~ñáãìã= ~ìÑ= ORR= îçêÉáåÖÉëíÉääí= ïìêÇÉI= ÇÉå= oÉÖäÉê= ÉáåòìëíÉääÉå= Ó= Ç~= â~åå= Éê= ~Äëçäìí= åáÅÜíë=Ñ~äëÅÜ=ã~ÅÜÉåK== aÉê= lÄàÉâíáåëéÉâíçê= ÇÉê= pÅêçääÄ~ê= äáÉÑÉêí= ïáÉÇÉê= ÇáÉ= ïáÅÜíáÖëíÉå= j∏ÖäáÅÜâÉáíÉå= ÇÉê=sçêÉáåëíÉääìåÖK== • aáÉ=^ìëêáÅÜíìåÖ=ÇÉê=pÅêçääÄ~ê=ïáêÇ=ãáí=ÇÉê=báÖÉåëÅÜ~Ñí=Kind=ÖÉï®ÜäíK== • jáåáãìãI= j~ñáãìã= ìåÇ= pí~êíéçëáíáçå= ÇÉë= oÉÖäÉêë= ÑçäÖÉå= ~ìë= ÇÉå= báÖÉåJ ëÅÜ~ÑíÉå=MinI=Max=ÄòïK=PositionK== NU= =

NKQ== _~ëáëÉäÉãÉåíÉ= • SmallChange= äÉÖí= ÑÉëíI= çÄ= ÇÉê= oÉÖäÉê= áå= âäÉáåÉå= çÇÉê= Öêç≈Éå= pÅÜêáííÉå= łëéêáåÖíI= ïÉåå= ÇÉê= kìíòÉê= ÇáÉ= dêáÑÑÉ= ~å= ÇÉå= pÉáíÉå= ÇÉê= pÅêçääÄ~ê= ãáí= ÇÉê= j~ìë=ÄÉí®íáÖíK== báå= o~ÇáçÄìííçå= ~ääÉáå= áëí= ÉáÖÉåíäáÅÜ= ëáååäçëK= aÉåå= ÇÉê= kìíòÉê= â~åå= áÜå= òï~ê= łÉáåëÅÜ~äíÉå=EÑ~ääë=Éê=åáÅÜí=ëçÖ~ê=ëÅÜçå=ÇáÉëÉ=pí~êíÉáÖÉåëÅÜ~Ñí=ΩÄÉê= Checked=ÄÉJ âçããÉå=Ü~ííÉFI=~ÄÉê=Éê=â~åå=áÜå=åáÉ=ïáÉÇÉê=ł~ìëëÅÜ~äíÉåK=^ìë=táåÇçïë=áëí=Éë= ìåë= ~ääÖÉãÉáå= ÄÉâ~ååíW= o~ÇáçÄìííçåë= íêÉíÉå= ÉáÖÉåíäáÅÜ= áããÉê= áå= dêìééÉå= ~ìÑK= fååÉêÜ~äÄ=ÇÉê=dêìééÉå=â~åå=ÇÉê=kìíòÉê=Ç~åå=ìãëÅÜ~äíÉåK==

= _áäÇ=NKOV=póãÄçä=òìê=dêìééáÉêìåÖ=îçå=o~ÇáçÄìííçåë=áå=aÉäéÜá=ULOMMR=

= _áäÇ=NKPM=póãÄçä=òìê=dêìééáÉêìåÖ=îçå=o~ÇáçÄìííçåë=áå=aÉäéÜá=T= rã=ëçäÅÜÉ=dêìééÉå=îçå=o~ÇáçÄìííçåë=~ìÑ=ÇÉã=cçêãìä~ê=òì=éä~íòáÉêÉåI=ÄÉå∏íáÖí= ã~å=òìÉêëí=~ìë=ÇÉê=h~íÉÖçêáÉ=ÄòïK=ÇÉã=oÉÖáëíÉêÄä~íí=pq^ka^oa=ÉáåÉå=o~ÜãÉå= E_áäÇÉê=NKOV=ìåÇ=NKPMFK== ^å= ÉáåÉã= ëçäÅÜÉå= o~ÜãÉåI= ÇÉê= îçå= aÉäéÜá= ãáí= ÇÉã= k~ãÉå= GroupBox1= ìëïK= îÉêëÉÜÉå=ïáêÇI=â~åå=å~íΩêäáÅÜ=~ìÅÜ=ΩÄÉê=ÇÉå=lÄàÉâíáåëéÉâíçê=ÇáÉ=_ÉëÅÜêáÑíìåÖ= ãáí= Caption=ìåÇ= Font=ëçïáÉ=ÇáÉ=eáåíÉêÖêìåÇÑ~êÄÉ=ãáí= Color=îçêÉáåÖÉëíÉääí=ïÉêJ ÇÉåK= ^åëÅÜäáÉ≈ÉåÇ= ïÉêÇÉå= Ç~åå= ÇáÉ= o~ÇáçÄìííçåë= áå= ÇÉåLÇáÉ= o~ÜãÉå= ÜáåÉáåJ ÖÉòçÖÉåK=rãÖÉâÉÜêí=ÖÉÜí=Éë=åáÅÜíK== _áäÇ=NKPN=òÉáÖí=ìåë=ÉáåÉ=dêìééÉ=îçå=o~ÇáçÄìííçåëI=ÇáÉ=ãáí=áÜêÉå=_ÉëÅÜêáÑíìåÖÉå= áå=ÇÉã=o~ÜãÉå=~åÖÉçêÇåÉí=ïìêÇÉåK=aÉê=çÄÉêëíÉ=o~ÇáçÄìííçå=íê®Öí=ÄÉáã=pí~êí= ÇáÉ=j~êâáÉêìåÖK==

= _áäÇ=NKPN=dêìééáÉêíÉ=o~ÇáçÄìííçåë=ãáí=pí~êíã~êâáÉêìåÖ= NV =

N= _ÉåìíòÉêçÄÉêÑä®ÅÜÉå= _áäÇ=NKPO=òÉáÖíI=ïáÉ=ÇáÉ=ÖÉëÉíòíÉ=pí~êíJj~êâáÉêìåÖ=ÇÉë=ÉêëíÉå=o~ÇáçÄìííçåëI=ÇÉê= ÇÉå= k~ãÉå= RadioButton1= ÉêÜáÉäíI= áã= lÄàÉâíáåëéÉâíçê= ÇáÉëÉë= _ÉÇáÉåÉäÉãÉåíë= ÉáåÖÉëíÉääí=ïáêÇK=

= _áäÇ=NKPOW=aáÉ=j~êâáÉêìåÖ=áå=Radiobutton1=ïáêÇ=ÖÉëÉíòí=== = =

OM= =

==

2

Objekt, Ereignis, Ereignisprozedur fã=îçêáÖÉå=h~éáíÉä=ïìêÇÉ=ÖÉëÅÜáäÇÉêíI=ïáÉ=aÉäéÜá=ÖÉëí~êíÉí=ïáêÇI=ïáÉ=ÇáÉ=pí~êíJ ÉáÖÉåëÅÜ~ÑíÉå= ÇÉê= ÖêìåÇäÉÖÉåÇÉå= ^êÄÉáíëÑä®ÅÜÉI= ÇÉë= cçêãìä~êëI= îçêÉáåÖÉëíÉääí= ïÉêÇÉåI=ïáÉ=ã~å=òïÉÅâã®≈áÖ=ëéÉáÅÜÉêíK=tÉáíÉê=ïìêÇÉ=Éêä®ìíÉêíI=ïáÉ=ÇáÉ=ëç=ÖÉJ å~ååíÉ= i~ìÑòÉáí= ÖÉëí~êíÉí= ïáêÇI= áå= ÇÉê= ÇáÉ= îçêÄÉêÉáíÉíÉ= ^êÄÉáíëÑä®ÅÜÉ= Ç~åå= í~íJ ë®ÅÜäáÅÜ= ÉêëÅÜÉáåí= ìåÇ= áå= ÇÉê= ã~å= âçåíêçääáÉêÉå= â~ååI= çÄ= ÇáÉ= îçêÄÉêÉáíÉíÉ= bêJ ëÅÜÉáåìåÖëÑçêã=ÇÉë=cçêãìä~êë=ïáÉ=ÖÉïΩåëÅÜí=òì=ëÉÜÉå=áëíK== a~ê~å= ~åëÅÜäáÉ≈ÉåÇ= ÑçäÖíÉå= ÉêëíÉ= ^åäÉáíìåÖÉåI= ïáÉ= ïáÅÜíáÖÉ= píÉìÉêÉäÉãÉåíÉ= ~ìÑ= ÇÉã= cçêãìä~ê= éä~íòáÉêí= ìåÇ= áÜêÉêëÉáíë= ÑΩê= áÜêÉ= ïÉëÉåíäáÅÜÉå= pí~êíÉáÖÉåëÅÜ~ÑíÉå= îçêÉáåÖÉëíÉääí= ïÉêÇÉå= â∏ååÉåW= = _ìííçå= EpÅÜ~äíÑä®ÅÜÉFI= i~ÄÉä= E_ÉëÅÜêáÑíìåÖëÑÉäÇFI= bÇáí=EqÉñíÉáåÖ~ÄÉÑÉäÇI=qÉñíÑÉåëíÉêFI=`ÜÉÅâÄçñ=Eg~JkÉáåJléíáçåFI=pÅêçääÄ~ê=EpÅÜáÉJ ÄÉêÉÖäÉêF=ëçïáÉ=o~ÇáçÄìííçåë=áå=dêçìé_çñÉå=EÖêìééáÉêíÉ=^ìëï~ÜäFK=== _áë= ÜáÉêÜÉê= äáÉ≈= ëáÅÜ= ~ääÉë= ëÅÜ∏å= ÉáåÑ~ÅÜI= łêÉáå= Ü~åÇïÉêâäáÅÜI= ëÅÜáäÇÉêåK= j~å= åÉÜãÉI= ã~å= íìÉK= _áë= ~ìÑ= ÇÉå= rãÖ~åÖ= ãáí= ÉáåáÖÉå= ÉåÖäáëÅÜÉ= sçâ~ÄÉäåI= ÇÉêÉå= hÉååíåáë= ÑΩê= ÇáÉ= pìÅÜÉ= å~ÅÜ= ÇÉå= báÖÉåëÅÜ~ÑíÉå= ìåÇ= ÇÉêÉå= _ÉÇÉìíìåÖ= áã= lÄJ àÉâíáåëéÉâíçê=ÜáäÑêÉáÅÜ=áëíI=ïìêÇÉ=ìåëÉê=aÉåâîÉêã∏ÖÉå=åçÅÜ=åáÅÜí=~ìÑ=Ü~êíÉ=mêçJ ÄÉå=ÖÉëíÉääíK== açÅÜ=ïÉåå=ïáê=áåÜ~äíäáÅÜ=îÉêëíÉÜÉå=ïçääÉåI=ï~ë=í~íë®ÅÜäáÅÜ=ÄÉá=ÇÉê=aÉäéÜáJmêçJ Öê~ããáÉêìåÖ= îçê= ëáÅÜ= ÖÉÜíI= ïÉåå= ïáê= ÉáÖÉåÉå= ^åíÉáä= ìåÇ= ÇáÉ= iÉáëíìåÖÉå= ÇÉë= aÉäéÜáJpóëíÉãë= áå= áÜêÉã= wìë~ããÉåÜ~åÖ= ìåÇ= tÉÅÜëÉäëéáÉä= ÉáåçêÇåÉå= ã∏ÅÜJ íÉåI=ãΩëëÉå=ïáê=ìåë=å®ÜÉê=ãáí=ÇÉã=_ÉÖêáÑÑ=ÇÉë=lÄàÉâíÉë=ÄÉÑ~ëëÉåK== aÉåå=ëÅÜäáÉ≈äáÅÜ=ïÉêÇÉå=ïáê=áå=táêâäáÅÜâÉáí=åáÅÜíë=^åÇÉêÉë=~äë=llm=ÄÉíêÉáÄÉå= Ó= lÄàÉâíçêáÉåíáÉêíÉ= PêçÖê~ããáÉêìåÖK= kìê= ÑΩåÑ= h~éáíÉä= ïÉêÇÉå= ïáê= ÄÉå∏íáÖÉåI== ìåÇ=Ç~åå=ïÉêÇÉå=ïáê=ïáëëÉåI=ï~ë=ïáê=íìåK== táê=ÖÉÜÉå=áå=âäÉáåÉå=pÅÜêáííÉå=îçêK=_ÉÑ~ëëÉå=ïáê=ìåë=òìÉêëí=ãáí=ÇÉå=_ÉÖêáÑÑÉå= lÄàÉâíI=bêÉáÖåáë=ìåÇ=bêÉáÖåáëéêçòÉÇìêK==

2.1

Der Objektbegriff

2.1.1

Datenobjekte

báå=a~íÉåçÄàÉâí=ÄÉëíÉÜí=òì~ääÉêÉêëí=~ìë=ÉáåÉã=ÖÉëÅÜΩíòíÉå=a~íÉåâÉêåK=j~å=ë~Öí= ~ìÅÜI=ÇáÉ=Ççêí=ÉåíÜ~äíÉåÉå=a~íÉå=ëáåÇ=ÖÉâ~éëÉäíK== táÉ= ÇÉê= a~íÉåâÉêå= áã= báåòÉäåÉå= ~ìÑÖÉÄ~ìí= áëíI= Ç~ë= ïÉá≈= åìê= ÇÉêàÉåáÖÉ= mêçJ Öê~ããáÉêÉêI=ÇÉê=ÇáÉëÉë=a~íÉåçÄàÉâí=áêÖÉåÇï~åå=Éáåã~ä=îçêÄÉêÉáíÉí=Ü~íK= ON =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= fëí= Éáå= lÄàÉâí= îçêÄÉêÉáíÉí= EìåÇ= ÄÉáëéáÉäëïÉáëÉ= áå= ÉáåÉ= lÄàÉâíë~ããäìåÖ= ~ìÑÖÉJ åçããÉå=ïçêÇÉåFI=ëç=â∏ååÉå=îáÉäÉ=~åÇÉêÉ=mêçÖê~ããáÉêÉê=Ç~ãáí=~êÄÉáíÉåK=táê= ïçääÉå= ÇáÉëÉ= òìã= råíÉêëÅÜáÉÇ= òì= ÇÉã= sçêÄÉêÉáíÉê= ÇÉë= lÄàÉâíë= ~äë= kìíòJmêçJ Öê~ããáÉêÉê= ÄÉòÉáÅÜåÉåK= hÉáå= kìíòJmêçÖê~ããáÉêÉê= â~åå= ~ÄÉê= ìåãáííÉäÄ~ê= ~ìÑ= ÇáÉ=_Éëí~åÇíÉáäÉ=ÇÉë=a~íÉåâÉêåë=òìÖêÉáÑÉåK== e®ííÉ= Éáå= lÄàÉâí= åìê= ÇÉå= ÖÉëÅÜΩíòíÉå= a~íÉåâÉêåI= ëç= ï®êÉ= Éë= çÑÑÉåëáÅÜíäáÅÜ= ëáååäçëK=káÉã~åÇI=âÉáå=kìíòJmêçÖê~ããáÉêÉêI=â∏ååíÉ=ãáí=ÇÉå=a~íÉå=~êÄÉáíÉåK== aÉëÜ~äÄ=ÉåíÜ®äí=àÉÇÉë=lÄàÉâí=òìë®íòäáÅÜ=ÖÉïáëëÉ=jÉÅÜ~åáëãÉåI=ãáí=ÇÉêÉå=eáäÑÉ= àÉÇÉê=kìíòJmêçÖê~ããáÉêÉê=ãáí=ÇÉã=a~íÉåâÉêå=ìãÖÉÜÉå=â~ååK==

= _áäÇ=OKNW=lÄàÉâíÉ=áå=aÉäéÜá= få= _áäÇ= OKN= ëáåÇ= ÇáÉëÉ= ÇêÉá= jÉÅÜ~åáëãÉå= ÉáåÖÉòÉáÅÜåÉíI= ÇáÉ= òì= àÉÇÉã= aÉäéÜáJ lÄàÉâí=ÖÉÜ∏êÉå=â∏ååÉåW== • báåÉ=éêçéÉêíó=EbáÖÉåëÅÜ~ÑíF=ÇáÉåí=ÇÉã=ëÅÜåÉääÉå=~âíáîÉå=ìåÇ=é~ëëáîÉå=wìÖêáÑÑ= ~ìÑ=ÉáåòÉäåÉ=_Éëí~åÇíÉáäÉ=ÇÉë=a~íÉåâÉêåëK=sÉêïÉåÇÉí=Éáå=kìíòJmêçÖê~ããáÉêÉê= ÉáåÉ=éêçéÉêíó=~âíáîI=îÉê®åÇÉêí=Éê=ãáí=áÜêÉê=eáäÑÉ=ÉáåÉå=ÉáåòÉäåÉå=tÉêí=áã=a~J íÉåâÉêåK= m~ëëáîÉ= sÉêïÉåÇìåÖ= Ç~ÖÉÖÉå= áåÑçêãáÉêí= ΩÄÉê= ÇáÉ= ~âíìÉääÉ= páíì~íáçå= áã=a~íÉåâÉêåI=çÜåÉ=Ç~êáå=òì=®åÇÉêåK== tÉåå=òK=_K=áã=a~íÉåâÉêå=ÇáÉ=rÜêòÉáí=ãáí=píìåÇÉ=ìåÇ=jáåìíÉ=îÉêï~äíÉí=ïáêÇI= â∏ååíÉå=ΩÄÉê=òïÉá=éêçéÉêíáÉë=ëçïçÜä=ÇáÉ=báåòÉäïÉêíÉ=~ÄÖÉÑê~Öí=~äë=~ìÅÜ=îÉêJ ®åÇÉêí=ïÉêÇÉåK=mêçéÉêíáÉë=ïÉêÇÉå=îÉêïÉåÇÉíK= • báåÉ=ÑìåÅíáçå=EcìåâíáçåF=äáÉÑÉêí=ëíÉíë=ÉáåÉå=ÉáåòÉäåÉå=tÉêíI=ÇÉå=bêÖÉÄåáëïÉêíI= ÇÉê=áå=wìë~ããÉåÜ~åÖ=ãáí=ÇÉã=fåÜ~äí=ÇÉë=a~íÉåâÉêåë=ëíÉÜíK== táêÇ=òK=_K=áã=a~íÉåâÉêå=Éáå=qÉñí=îÉêï~äíÉíI=ëç=â∏ååíÉ=ÉáåÉ=cìåâíáçå=ÇáÉ=~âJ íìÉääÉ=^åò~Üä=ÇÉê=wÉáÅÜÉå=äáÉÑÉêåK=cìåâíáçåÉå=ïÉêÇÉå=áK=~ääÖK=é~ëëáî=îÉêïÉåJ ÇÉíK= cìåâíáçåÉå= â∏ååÉå= ~ìÅÜ= áã= a~íÉåâÉêå= îÉê®åÇÉêåK= fÜê= bêÖÉÄåáëïÉêí= ãìëë= Ç~åå= åáÅÜí= áããÉê= îÉê~êÄÉáíÉí= ïÉêÇÉå= EëáÉÜÉ= ÇáÉ= cìåâíáçå= AddI= ^ÄJ ëÅÜåáíí=NPKPKSFK=a~åå=ïáêÇ=ÇáÉ=cìåâíáçå=~ìëå~ÜãëïÉáëÉ=~ìÑÖÉêìÑÉåK== • báåÉ= éêçÅÉÇìêÉ= EmêçòÉÇìêF= â~åå= ÉáåÉ= sáÉäÑ~äí= ~å= táêâìåÖÉå= Ü~ÄÉåW= páÉ= â~åå= áã= a~íÉåâÉêå= îÉê®åÇÉêåI= ëáÉ= â~åå= îáÉäÉ= tÉêíÉ= äáÉÑÉêåI= âìêòI= ëáÉ= Ü~í= ÉáåÉ= ÄÉJ ëíáããíÉ=táêâìåÖK=mêçòÉÇìêÉå=ïÉêÇÉå=~ìÑÖÉêìÑÉåK==

OO= =

OKN== aÉê=lÄàÉâíÄÉÖêáÑÑ=

2.1.2

Visuelle Objekte

aÉäéÜá=ÉåíÜ®äí=ÉáåÉ=ÄÉ~ÅÜíäáÅÜÉ= p~ããäìåÖ=îçå=îçêÄÉêÉáíÉíÉå=lÄàÉâíÉåK=fã=ÉêëJ íÉå=h~éáíÉä=Ü~ÄÉå=ïáê=Ç~îçå=ëÅÜçå=Ó=ìåÄÉïìëëí=Ó=dÉÄê~ìÅÜ=ÖÉã~ÅÜíK=táê=Ü~J ÄÉå=å®ãäáÅÜ=ÄÉëçåÇÉêÉ=lÄàÉâíÉI=ÇáÉ=~äë=îáëìÉääÉ=lÄàÉâíÉ=ÄÉòÉáÅÜåÉí=ïÉêÇÉåI=áã= båíïìêÑ=îçêÄÉêÉáíÉí=ìåÇ=òìê=i~ìÑòÉáí=ÉêòÉìÖÉå=ä~ëëÉåK==

= _áäÇ=OKOW=sáëìÉääÉë=lÄàÉâí=áå=aÉäéÜá= sáëìÉääÉ=lÄàÉâíÉ=ÄÉëáíòÉå=òìë®íòäáÅÜ=ÉáåÉå=ëáÅÜíÄ~êÉå=qÉáäI=ÇÉå=ïáê=~äë=píÉìÉêÉäÉJ ãÉåí=~ìÑ=ÇÉã=cçêãìä~ê=ÉêäÉÄÉåK=^ìÅÜ=Ç~ë=cçêãìä~ê=ëÉäÄëí=áëí=åáÅÜíë=~åÇÉêÉë=~äë= ÇÉê= ëáÅÜíÄ~êÉ= qÉáä= ÉáåÉë= ÉåíëéêÉÅÜÉåÇÉå= îáëìÉääÉå= lÄàÉâíÉëK= ^ääÉ= tÉêíÉI= ÇáÉ= òìã=ëáÅÜíÄ~êÉå=qÉáä=ÖÉÜ∏êÉåI=ëáåÇ=áã=a~íÉåâÉêå=~ÄÖÉëéÉáÅÜÉêíK== a~òì= ÖÉÜ∏êÉå= òìã= _ÉáëéáÉä= mçëáíáçåI= dê∏≈É= ìåÇ= c~êÄÉ= àÉÇÉë= píÉìÉêÉäÉãÉåíëI= c~êÄÉ= ìåÇ= pí~êíJpí~íìë= ÇÉë= cçêãìä~êëI= _ÉëÅÜêáÑíìåÖ= ÇÉë= i~ÄÉäë= çÇÉê= fåÜ~äí= ÇÉë= qÉñíÑÉåëíÉêëI= Ç~òì= ÖÉÜ∏êÉå= ÇáÉ= _ÉäÉÖìåÖ= ÄÉá= ÇÉê= `ÜÉÅâÄçñ= çÇÉê= ÇÉã= o~ÇáçJ ÄìííçåI=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=ÄÉá=ÉáåÉê=pÅêçääÄ~ê=ìëïK= táêÇ= ÑçäÖäáÅÜ= áã= a~íÉåâÉêå= ÉáåÉë= îáëìÉääÉå= lÄàÉâíë= áêÖÉåÇÉáå= tÉêí= îÉê®åÇÉêíI= ÇÉê=ãáí=ÇÉã=ëáÅÜíÄ~êÉå=qÉáä=áå=_ÉòáÉÜìåÖ=ëíÉÜíI=ëÉÜÉå=ïáê=ëçÑçêí=ÉáåÉ=ûåÇÉêìåÖ= ~å=ÇÉã=píÉìÉêÉäÉãÉåíK== råÇ=ëÅÜçå=ä®ëëí=ëáÅÜ=~ìÅÜ=Éêâä®êÉåI=ï~ë=ïáê=ÉáÖÉåíäáÅÜ=í~íÉåI=~äë=ïáê=ìåíÉê=kìíJ òìåÖ=ÇÉê=oìÄêáâ=bfdbkp`e^cqbk=ÇÉë=lÄàÉâíáåëéÉâíçêë=áå=ÇÉå=^ÄëÅÜåáííÉå=NKOKN= ìåÇ=NKQKP=àÉïÉáäë=ÇáÉ=pí~êíëáíì~íáçå=ÑΩê=cçêãìä~ê=ìåÇ=píÉìÉêÉäÉãÉåíÉ=ÑÉëíäÉÖíÉåK= _áäÇ= OKP= òÉáÖí= ÉëW= báåáÖÉ= ÇÉê= éêçéÉêíáÉëI= ÇáÉ= áå= ÇÉå= a~íÉåâÉêå= ÑΩÜêÉåI= â∏ååÉå= îçå= ìåë= ÄÉêÉáíë= áå= ÇÉê= båíïìêÑëéÜ~ëÉ= ãáí= eáäÑÉ= ÇÉë= lÄàÉâíáåëéÉâíçêë= îçêÉáåÖÉJ ëíÉääí=ïÉêÇÉåK=wì=_ÉÖáåå=ÇÉê=i~ìÑòÉáíI=ïÉåå=Ç~åå=Ç~ë=îáëìÉääÉ=lÄàÉâí=í~íë®ÅÜJ äáÅÜ=ÉêòÉìÖí=ïáêÇI=íê~åëéçêíáÉêí=aÉäéÜá=ÇáÉ=îçêÉáåÖÉëíÉääíÉå=tÉêíÉ=ΩÄÉê=ÇáÉ=éêçJ éÉêíáÉë=áå=ÇÉå=a~íÉåâÉêåK== açêí= ëçêÖÉå= ëáÉ= ëçÑçêí= ÑΩê= ÉåíëéêÉÅÜÉåÇÉ= a~êëíÉääìåÖ= ÇÉë= píÉìÉêÉäÉãÉåíëI= ~äëç= ÇÉë=ëáÅÜíÄ~êÉå=qÉáäë=ÇÉë=îáëìÉääÉå=lÄàÉâíëW=a~ë=i~ÄÉä=ÉêÜ®äí=ÇáÉ=îçêÉáåÖÉëíÉääíÉ= _ÉëÅÜêáÑíìåÖI=ÇáÉ=`ÜÉÅâÄçñ=ÇáÉ=îçêÉáåÖÉëíÉääíÉ=_ÉäÉÖìåÖI=ÇáÉ=pÅêçääÄ~ê=ÇáÉ=îçêJ ÉáåÖÉëíÉääíÉ=mçëáíáçåI=Ç~ë=cçêãìä~ê=ÇáÉ=îçêÉáåÖÉëíÉääíÉ=c~êÄÉ=ìåÇ=ëç=ïÉáíÉêK== káÅÜí=~ääÉI=ëçåÇÉêå=åìê=ÇáÉ=ïáÅÜíáÖëíÉå=_Éëí~åÇíÉáäÉ=ÇÉë=a~íÉåâÉêåë=ëáåÇ=îçê~Ä= ÇìêÅÜ=ÇÉå=lÄàÉâíáåëéÉâíçê=ãáí=eáäÑÉ=îçå=éêçéÉêíáÉë=ÉáåëíÉääÄ~êK==

OP =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= fã= ^ÄëÅÜåáíí= QKTKO= ïÉêÇÉå= ïáê= ÉêÑ~ÜêÉåI= ïáÉ= ïÉáíÉêÉ= éêçéÉêíáÉë= ÖÉÑìåÇÉå= ìåÇ= ÖÉåìíòí=ïÉêÇÉå=â∏ååÉåK=

= _áäÇ=OKPW=sçêÉáåëíÉääìåÖ=ÇÉê=pí~êíÉáÖÉåëÅÜ~ÑíÉå=áã=lÄàÉâíáåëéÉâíçê= pç= ïÉáíI= ëç= ÖìíK= açÅÜ= ï~ë= é~ëëáÉêí= òìê= i~ìÑòÉáíI= ïÉåå= Ç~ë= cçêãìä~ê= ãáí= ÇÉå= Ç~ê~ìÑ= éä~íòáÉêíÉå= píÉìÉêÉäÉãÉåíÉå= ÜÉêÖÉëíÉääí= áëí\= a~åå= ÖáÄí= Éë= ÇáÉ= kìíòÉêáå= çÇÉê=ÇÉå=kìíòÉê=EÇÉê=báåÑ~ÅÜÜÉáí=Ü~äÄÉê=ëçää=ÖÉåÉêÉää=åìê=âìêò=îçå=ÇÉã=kìíòÉê= ÖÉëéêçÅÜÉå=ïÉêÇÉåFK== k~íΩêäáÅÜ=â~åå=ÇÉê=kìíòÉêI=Éê=ïáêÇ=Éë=ëçÖ~êI=~ìÑ=ÇáÉ=píÉìÉêÉäÉãÉåíÉ=ÉáåïáêâÉåW=bê= ïáêÇ=~ìÑ=ÇÉå=_ìííçå=âäáÅâÉåI=áå=Ç~ë=qÉñíÑÉåëíÉê=Éáåíê~ÖÉåI=áå=ÇÉê=`ÜÉÅâÄçñ=ÇÉå= e~âÉå=ëÉíòÉå=çÇÉê=ïÉÖåÉÜãÉåI=áå=ÇÉê=pÅêçääÄ~ê=ÇÉå=oÉÖäÉê=îÉêëÅÜáÉÄÉå=ìëïK==

== _áäÇ=OKQW=kìíòÉêÉáåïáêâìåÖ=áëí=Éáå=bêÉáÖåáë= a~ë=áëí=ëÉáå=ÖìíÉë=oÉÅÜíI=Ç~ë=ëçää=Éê=~ìÅÜK=pÅÜäáÉ≈äáÅÜ=ïáêÇ=ÇáÉ=_ÉåìíòÉêçÄÉêÑä®J ÅÜÉ=åáÅÜí=òìã=ÄÉÖÉáëíÉêåÇÉå=^åëÉÜÉå=îçêÄÉêÉáíÉí=ìåÇ=ÜÉêÖÉëíÉääíI=ëçåÇÉêå=òìã= båíÖÉÖÉååÉÜãÉå=îçå=kìíòÉêÉáåïáêâìåÖÉåK== fã=_áäÇ=OKQ=Ü~ÄÉå=ïáê=ÑçäÖäáÅÜ=Ç~ë=pÅÜÉã~=ÇÉë=îáëìÉääÉå=aÉäéÜáJlÄàÉâíë=ÉêïÉáJ íÉêí= ÇìêÅÜ= ÇÉå= kìíòÉê= ìåÇ= ëÉáåÉ= j∏ÖäáÅÜâÉáíI= ~ìÑ= Éáå= píÉìÉêÉäÉãÉåí= ÉáåòìïáêJ âÉåK=gÉÇÉ=kìíòÉêÉáåïáêâìåÖ=ïáêÇ=Ç~ÄÉá=~äë=bêÉáÖåáë=ÄÉòÉáÅÜåÉíK== OQ= =

OKN== aÉê=lÄàÉâíÄÉÖêáÑÑ= a~ãáí=â∏ååÉå=ïáê=ìåë=Ç~ë=tÉÅÜëÉäëéáÉä=îçêëíÉääÉåW== • táêÇ= áã= a~íÉåâÉêå= Éáå= _Éëí~åÇíÉáäI= ÇÉê= òìê= ëáÅÜíÄ~êÉå= hçãéçåÉåíÉ= ÖÉÜ∏êíI= ÖÉ®åÇÉêíI=®åÇÉêí=ëáÅÜ=~ìíçã~íáëÅÜ=ÇÉê=ëáÅÜíÄ~êÉ=qÉáäI=Ç~ë=píÉìÉêÉäÉãÉåíK= • bêÑçäÖí=~åÇÉêÉêëÉáíë=ÉáåÉ=®åÇÉêåÇÉ=kìíòÉêÉáåïáêâìåÖ=~ìÑ=Éáå=píÉìÉêÉäÉãÉåíI= ®åÇÉêí= ëáÅÜ= åáÅÜí= åìê= ÇáÉëÉëI= ëçåÇÉêå= ëçÑçêí= ïáêÇ= ~ìÅÜ= áã= a~íÉåâÉêå= ÇáÉëÉ= ûåÇÉêìåÖ=êÉÖáëíêáÉêíK== açÅÜ=åáÅÜí=àÉÇÉ=kìíòÉêÉáåïáêâìåÖ=®åÇÉêí=Éíï~ë=Ó=ëç=â~åå=ÇÉê=kìíòÉê=~ìÑ=ÉáåÉå= _ìííçå= âäáÅâÉåI= ÇáÉ= j~ìë= ΩÄÉê= ÇÉã= cçêãìä~ê= ÄÉïÉÖÉåI= ~ìÑ= Éáå= i~ÄÉä= âäáÅâÉå= ìëïK=a~ÄÉá=ïáêÇ=åáÅÜíë=páÅÜíÄ~êÉë=é~ëëáÉêÉåI=çÄïçÜä=òïÉáÑÉäëçÜåÉ=ÉáåÉ=^âíáîáJ í®í=ÇÉë=kìíòÉêë=ëí~ííÖÉÑìåÇÉå=Ü~íK== táê=Äê~ìÅÜÉå=ÉáåÉå=ΩÄÉêÖÉçêÇåÉíÉå=_ÉÖêáÑÑI=ìåÇ=Ç~ë=áëí=ÉÄÉå=Ç~ë=bêÉáÖåáëK== • gÉÇÉ=kìíòÉêÜ~åÇäìåÖ=~ã=cçêãìä~ê=çÇÉê=~å=ÉáåÉã=Ç~ê~ìÑ=ÄÉÑáåÇäáÅÜÉå=píÉìJ ÉêÉäÉãÉåí=áëí=Éáå=bêÉáÖåáëK= • báåáÖÉ=ÇáÉëÉê=bêÉáÖåáëëÉ=â∏ååÉå=òìë®íòäáÅÜ=åçÅÜ=ûåÇÉêìåÖÉå=~å=ÇÉå=píÉìÉêJ ÉäÉãÉåíÉå= ÄÉïáêâÉåK= cáåÇÉå= ëçäÅÜÉ= ûåÇÉêìåÖÉå= ëí~íí= ïÉêÇÉå= ëáÉ= ëçÑçêí= áã= a~íÉåâÉêå=ÇÉë=àÉïÉáäáÖÉå=îáëìÉääÉå=lÄàÉâíë=ÄÉêΩÅâëáÅÜíáÖíK==

2.1.3

Ereignisbehandlung

häáÅâí=Éáå=kìíòÉê=~ìÑ=ÉáåÉå=_ìííçå=ïáää=ÉêI=Ç~ëë=Éíï~ë=é~ëëáÉêíI=Ç~ëë=ÉáåÉ=oÉ~âJ íáçå=ÉáåíêáííK=a~ë=áëí=ëÉáå=ÖìíÉë=oÉÅÜí=Ó=ìåÇ=ï~êìã=Ö®ÄÉ=Éë=ëçåëí=ΩÄÉêÜ~ìéí=ÇáÉJ ëÉë=píÉìÉêÉäÉãÉåí=_ìííçå\= a~ë=_áäÇ=OKR=îÉêëìÅÜí=Ç~êòìëíÉääÉåI=ïáÉ=Éë=ΩÄÉêÜ~ìéí=Ç~òì=âçããÉå=â~ååI=Ç~ëë= ~ìÑ=Éáå=îçã=kìíòÉê=~ìëÖÉä∏ëíÉë=bêÉáÖåáë=ëÅÜäáÉ≈äáÅÜ=ÉáåÉ=oÉ~âíáçå=ÉêÑçäÖíK== • tÉåå=ïáê=Éáå=píÉìÉêÉäÉãÉåí=áå=ÇÉê=båíïìêÑëéÜ~ëÉ=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉJ êÉåI=ÄÉêÉáíÉå=ïáê=Ç~ãáí=Éáå=îáëìÉääÉë=lÄàÉâí=îçêK=a~ë=cçêãìä~ê=ëÉäÄëí=ïáêÇ=Ç~J ÄÉá=~ìÅÜ=Éáå=îáëìÉääÉë=lÄàÉâíK== • däÉáÅÜòÉáíáÖ=ïáêÇ=àÉÇÉë=îçêÄÉêÉáíÉíÉ=îáëìÉääÉ=lÄàÉâí=ÇìêÅÜ=aÉäéÜá=ÄÉáã=bêÉáÖJ åáëÜ®åÇäÉê=~åÖÉãÉäÇÉí=Ó=ïáê=ãΩëëÉå=Ç~ë=åáÅÜí=íìå=ìåÇ=ãÉêâÉå=~ìÅÜ=åáÅÜíë= Ç~îçåK=aáÉ=^åãÉäÇìåÖ=ÉêÑçäÖí=~ìíçã~íáëÅÜK=== • wìê=i~ìÑòÉáíI=ïÉåå=ÇáÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=Ecçêãìä~ê=ãáí=Ç~ê~ìÑ=ÄÉÑáåÇäáÅÜÉå= píÉìÉêÉäÉãÉåíÉåF= í~íë®ÅÜäáÅÜ= ÜÉêÖÉëíÉääí= áëíI= ï~êíÉí= ÇÉê= bêÉáÖåáëÜ®åÇäÉê= ~ìÑ= k~ÅÜêáÅÜíÉå=îçå=ÇÉå=îáëìÉääÉå=lÄàÉâíÉåK== • i∏ëí=Éáå=kìíòÉê=ÇìêÅÜ=ÉáåÉ=_ÉÇáÉåÜ~åÇäìåÖ=Éáå=bêÉáÖåáë=~å=ÉáåÉã=îáëìÉääÉå= lÄàÉâí=~ìëI=ÉêÜ®äí=ÇÉê=bêÉáÖåáëÜ®åÇäÉê=ÉáåÉ=ÉåíëéêÉÅÜÉåÇÉ=k~ÅÜêáÅÜíK= • aÉê=bêÉáÖåáëÜ®åÇäÉê=éêΩÑíI=çÄ=Éë=òì=ÇáÉëÉã=bêÉáÖåáë=~å=ÇáÉëÉã=îáëìÉääÉå=lÄJ àÉâí=ÉáåÉ=îçêÄÉêÉáíÉíÉ=bêÉáÖåáëéêçòÉÇìê=ÖáÄíK== • tÉåå=Éë=ÉáåÉ=îçêÄÉêÉáíÉíÉ=bêÉáÖåáëéêçòÉÇìê=ÑΩê=ÇáÉëÉë=ÄÉëíáããíÉ=bêÉáÖåáë=~å= ÇáÉëÉã=lÄàÉâí=ÖáÄíI=ïáêÇ=ëáÉ=ÖÉëí~êíÉíK== OR =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= a~ê~ìë= ÑçäÖíW= tçääÉå= ïáêI= Ç~ëë= ÉáåÉ= oÉ~âíáçå= ~ìÑ= ÉáåÉ= ÄÉëíáããíÉ= kìíòÉêÜ~åÇJ äìåÖ=~å=ÇÉã=ëáÅÜíÄ~êÉå=qÉáä=ÉáåÉë=ÄÉëíáããíÉå=îáëìÉääÉå=lÄàÉâíë=ÉáåíêáííI=ãΩëëÉå= ïáê=Ç~ÑΩê=ëçêÖÉåI=Ç~ëë=Ç~ÑΩê=ÉáåÉ=bêÉáÖåáëéêçòÉÇìê=ÉñáëíáÉêíK==

== _áäÇ=OKRW=bêÉáÖåáëI=bêÉáÖåáëÜ®åÇäÉê=ìåÇ=bêÉáÖåáëéêçòÉÇìêÉå= a~ë=ÄÉÇÉìíÉíI=Ç~ëë=ïáê=ìåë=åìå=ãáí=ÇÉê=cê~ÖÉ=ÄÉëÅÜ®ÑíáÖÉå=ãΩëëÉåI=ïáÉ=ïáê=bêJ ÉáÖåáëéêçòÉÇìêÉå=ÜÉêëíÉääÉå=â∏ååÉåK==

2.2

Einfache Ereignisprozeduren zum Standard-Ereignis gÉÇÉ=bêÉáÖåáëéêçòÉÇìê=ÄÉëíÉÜí=~ìë=ÇÉã=o~ÜãÉå=ìåÇ=ÇÉã=fåÜ~äíK=rã=ÇÉå=o~ÜJ ãÉå=Äê~ìÅÜÉå=ïáê=ìåë=ÄÉá=aÉäéÜá=åáÅÜí=òì=âΩããÉêåI=ÇÉê=ïáêÇ=ìåë=ëíÉíë=èì~ëá= łÖÉëÅÜÉåâíK== wì=àÉÇÉã=îáëìÉääÉå=lÄàÉâí=ÖáÄí=Éë=òïÉá=^êíÉå=îçå=bêÉáÖåáëëÉåW=a~ë=pí~åÇ~êÇJbêJ ÉáÖåáë=ìåÇ=îáÉäÉ=~åÇÉêÉ=bêÉáÖåáëëÉK=a~ë=ëáåÇ=Ç~åå=ÇáÉ=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉK== a~ë= pí~åÇ~êÇJbêÉáÖåáë= áëí= Ç~ëàÉåáÖÉI= Ç~ë= áå= ÇÉê= oÉÖÉä= çÇÉê= ~ã= Ü®ìÑáÖëíÉå= ÇÉê= ^ìëÖ~åÖëéìåâí= ÑΩê= ÉáåÉ= oÉ~âíáçå= ëÉáå= ïáêÇK= _Éáã= píÉìÉêÉäÉãÉåí= _ìííçå= ï®êÉ= Éë=òáÉãäáÅÜ=îÉêÄäΩÑÑÉåÇI=ïÉåå=åáÅÜí=ÇÉê=häáÅâ=ãáí=ÇÉê=äáåâÉå=Ee~ìéíJF=j~ìëí~ëíÉ= ~äë=pí~åÇ~êÇJbêÉáÖåáë=ÄÉíê~ÅÜíÉí=ïΩêÇÉK== _ÉÖáååÉå= ïáêK= wìÉêëí= ïÉêÇÉå= ïáê= ÉáåÉ= oÉ~âíáçå= ~ìÑ= Ç~ë= pí~åÇ~êÇJbêÉáÖåáë= ~å= ÉáåÉã=îáëìÉääÉå=lÄàÉâí=áå=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=éêçÖê~ããáÉêÉåK=

OS= =

OKO== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òìã=pí~åÇ~êÇJbêÉáÖåáë= aÉå= o~ÜãÉå= ÑΩê= bêÉáÖåáëéêçòÉÇìêÉå= òìã= pí~åÇ~êÇJbêÉáÖåáë= ÉêÜ~äíÉå= ïáê= áå= ÇáÉëÉã=c~ää=Ö~åò=ÉáåÑ~ÅÜW=aìêÅÜ=açééÉäâäáÅâ=áã=båíïìêÑ=~ìÑ=ÇÉå=ëáÅÜíÄ~êÉå=qÉáä= ÇÉë=îáëìÉääÉå=lÄàÉâíëK== pÉÜÉå= ïáê= ìåë= Ç~ë= áã= báåòÉäåÉå= ÑΩê= ìåëÉêÉ= ÄáëÜÉê= îÉêïÉåÇÉíÉå= îáëìÉääÉå= lÄJ àÉâíÉ=~åI=ÇK=ÜK=ÑΩê=ÇáÉ=ëÉÅÜë=píÉìÉêÉäÉãÉåíÉ=ìåÇ=Ç~ë=cçêãìä~êK==

2.2.1 ==

Button

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 2= ÇáÉ= zipJa~íÉá= DKap02.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap02= ÇáÉ= mêçàÉâíJa~íÉá= proj_221.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= molgbhq=£cckbk=áã=lêÇåÉê=D8Kap02=ÇáÉ=a~íÉá=proj_221.bdsproj=~ìëòìï®ÜäÉåK== == ^ìÑ= ÉáåÉã= âäÉáåÉå= cçêãìä~ê= EÉë= ãìëë= ÄÉáã= pí~êí= ÇáÉëã~ä= åáÅÜí= ÇÉå= Ö~åòÉå= _áäÇëÅÜáêã= ~ìëÑΩääÉåF= éä~íòáÉêÉå= ïáê= Éáå= píÉìÉêÉäÉãÉåí= _ìííçå= ìåÇ= ®åÇÉêå= ãáí= ÇÉê= báÖÉåëÅÜ~Ñí= Caption= ÇáÉ= _ÉëÅÜêáÑíìåÖ= ~ìÑ= Start= EëáÉÜÉ= _áäÇ= OKSFK= aÉäéÜá= ëÅÜä®Öí=ÑΩê=ÇáÉëÉë=_ÉÇáÉåÉäÉãÉåí=ÇÉå=k~ãÉå=Button1=îçêK=

= _áäÇ=OKSW=píÉìÉêÉäÉãÉåí=pÅÜ~äíÑä®ÅÜÉ=E_ìííçåF=== kìå=ïáêÇ=Ç~òì=ÇáÉ=^ìÑÖ~ÄÉ=ÑçêãìäáÉêíW=_Éá=ÉáåÑ~ÅÜÉã= häáÅâ=~ìÑ=ÇáÉëÉå=_ìííçå= ëçää=ÇÉê=kìíòÉê=ÉáåÉ=jáííÉáäìåÖ=łaÉê=_ìííçå=ïìêÇÉ=ÖÉâäáÅâí=ÉêÜ~äíÉåK=jÉÜê=ÉêëíJ ã~ä=åáÅÜíK== aÉê=ÉáåÑ~ÅÜÉ=häáÅâ=áëí=Ç~ë=pí~åÇ~êÇJbêÉáÖåáë=ÑΩê=Ç~ë=píÉìÉêÉäÉãÉåí=_ìííçåK=cçäÖJ äáÅÜ=ÄÉëÅÜ~ÑÑÉå=ïáê=ìåë=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìêI=áåÇÉã=ïáê=ãáí=ÇÉê= äáåâÉå=j~ìëí~ëíÉ=ÇçééÉäí=~ìÑ=ÇÉå=_ìííçå=âäáÅâÉåW==

= _áäÇ=OKTW=o~ÜãÉå=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=łhäáÅâ=~ìÑ=Button1== OT =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= bë=∏ÑÑåÉí=ëáÅÜ=ëçÑçêí=Éáå=ëç=ÖÉå~ååíÉë= nìÉääíÉñíÑÉåëíÉê=E_áäÇ=OKTFI==áå=ÇÉã=ëáÅÜ= ÄÉêÉáíë=ÇêÉáI=ã~åÅÜã~ä=îáÉê=mêçÖê~ããòÉáäÉå=ÄÉÑáåÇÉåK== aáÉ= procedureJwÉáäÉ= ìåÇ= ÇáÉ= wÉáäÉ= ãáí= begin= ÄáäÇÉå= ÇáÉ= ÄÉáÇÉå= hçéÑòÉáäÉå= ÇÉë= o~ÜãÉåëK= aáÉ= wÉáäÉ= ãáí= end;= ãáí= ÇÉã= pÉãáâçäçå= ÄáäÇÉí= ÇáÉ= cì≈òÉáäÉ= ÇÉë= o~ÜJ ãÉåëK=a~ë=äÉíòíÉ=end.=ãáí=ÇÉã=mìåâí=Ü~í=ãáí=ÇÉã=o~ÜãÉå=ÇÉê=bêÉáÖåáëéêçòÉÇìê= åáÅÜíë=òì=íìå=Ó=Éë=Ç~êÑ=~ÄÉê=åáÉã~äë=ÖÉä∏ëÅÜí=ïÉêÇÉåK=== få= ÇÉê= ÉêëíÉå= hçéÑòÉáäÉ= äÉëÉå= ïáê= êÉÅÜíë= åÉÄÉå= ÇÉã= mìåâí= ÇáÉ= sçâ~ÄÉä= Button1Click=Ó=Ç~ãáí=ÉêâÉååÉå=ïáê=òìê=hçåíêçääÉI=Ç~ëë=ïáê=í~íë®ÅÜäáÅÜ=ÇÉå=o~ÜãÉå= ÇÉê=bêÉáÖåáëéêçòÉÇìê=ÑΩê=Ç~ë=bêÉáÖåáë=häáÅâ=~ìÑ=Button1=îçê=ìåë=Ü~ÄÉåK== aÉê=wïáëÅÜÉåê~ìã=òïáëÅÜÉå= begin=ìåÇ=end;=áëí=îçå=ìåë=ãáí=ÇÉã=fåÜ~äí=ÇÉê=bêJ ÉáÖåáëéêçòÉÇìê= òì= ÑΩääÉåK= eáÉê= ãΩëëÉå= ïáê= éêçÖê~ããáÉêÉåI= ÇK= ÜK= ïáê= ãΩëëÉå= ÇáÉ=é~ëëÉåÇÉå=_ÉÑÉÜäÉ=áå=ÇÉê=êáÅÜíáÖÉå=oÉáÜÉåÑçäÖÉ=Éáåíê~ÖÉåI=ïçÄÉá=ïáê=ìåë=~å= ÇáÉ=oÉÖÉäå=ÇÉê=péê~ÅÜÉ=m~ëÅ~ä=Ü~äíÉå=ãΩëëÉåW== procedure TForm1.Button1Click(Sender: TObject);

//1. Kopfzeile

begin

//2. Kopfzeile Showmessage('Der Buttopn wurde geklickt')

end;

//Inhalt //Fußzeile

_Éîçê= ïáê= ãÉÜê= òì= ÇÉå= ÉêëíÉå= m~ëÅ~äJoÉÖÉäå= ÉêÑ~ÜêÉåI= ïçääÉå=ïáê= ìåë= Ç~ë= bêJ ÖÉÄåáë=áå=_áäÇ=OKU=~åëÉÜÉåW=_Éá=häáÅâ=~ìÑ=ÇÉå=_ìííçå=òìê=i~ìÑòÉáí=ÉêëÅÜÉáåí=í~íJ ë®ÅÜäáÅÜ= áå= ÇÉê= jáííÉ= ÇÉë= _áäÇëÅÜáêãë= Ç~ë= îçå= ìåë= îÉêä~åÖíÉ= jáííÉáäìåÖëÑÉåëíÉê= EShowMessageF=ãáí=ÇÉã=éêçÖê~ããáÉêíÉå=fåÜ~äíK=

= _áäÇ=OKUW=bêÑçäÖêÉáÅÜÉ=^ìëÑΩÜêìåÖ=ÇÉê=bêÉáÖåáëéêçòÉÇìê= aÉê=îçå=ìåë=éêçÖê~ããáÉêíÉ=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ÄÉëíÉÜí=Éêëí=Éáåã~ä=åìê= ~ìë=ÉáåÉã=ÉáåòáÖÉå=_ÉÑÉÜä=Ó=âÉáåÉ=pçêÖÉI=Ç~ë=ïáêÇ=ëáÅÜ=Ä~äÇ=®åÇÉêåK== aáÉ=òïÉá=pÅÜê®ÖëíêáÅÜÉ=ã~ÅÜÉå=ÇÉå=oÉëí=ÇÉê=wÉáäÉ=éêçÖê~ããíÉÅÜåáëÅÜ=ìåïáêâJ ë~ã=Ó=Ç~ÜáåíÉê=â~åå=ã~å=ÑçäÖäáÅÜ=_ÉãÉêâìåÖÉå=EhçããÉåí~êÉF=Éáåíê~ÖÉåK== dêç≈J= ìåÇ= häÉáåëÅÜêÉáÄìåÖ= ÇÉê= _ÉÑÉÜäÉ= ëáåÇ= áå= m~ëÅ~ä= åáÅÜí= ïáÅÜíáÖI= ÇáÉëÉäÄÉ= bêÉáÖåáëéêçòÉÇìê=â∏ååíÉå=ïáê=~ìÅÜ=ëç=ëÅÜêÉáÄÉåW== procedure TForm1.Button1Click(Sender: TObject)

// 1. Kopfzeile

begin showmessage('Der Button wurde geklickt') end;

OU= =

//Inhalt

OKO== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òìã=pí~åÇ~êÇJbêÉáÖåáë= táê=îÉêäáÉêÉå=~ÄÉê=Ç~ÄÉá=ëÉÜê=îáÉä=~å=§ÄÉêëáÅÜíäáÅÜâÉáíX=ÇÉê=~ìëòìÖÉÄÉåÇÉ=qÉñí= ãìëë=å~íΩêäáÅÜ=íêçíòÇÉã=ÇÉå=oÉÖÉäå=ÇÉê=ÇÉìíëÅÜÉå=péê~ÅÜÉ=ÖÉåΩÖÉåK=aáÉ=§ÄÉêJ ëáÅÜí=ÖÉÜí=ÉÄÉåëç=îÉêäçêÉåI=ïÉåå=ïáê=Ç~ê~ìÑ=îÉêòáÅÜíÉå=ïΩêÇÉåI=ÉáåÖÉêΩÅâí=òì= ëÅÜêÉáÄÉåK== procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(‘Der Button wurde geklickt‘)

//Inhalt

end;

lÇÉê= ïÉåå= ã~å= Ö~ê= Ç~ê~ìÑ= îÉêòáÅÜíÉíI= ÇáÉ= ïáÅÜíáÖÉå= o~ÜãÉåJpÅÜäΩëëÉäï∏êíÉê= begin=ìåÇ=end;=~ääÉáå=~ìÑ=àÉ=ÉáåÉ=wÉáäÉ=òì=ëÅÜêÉáÄÉåW= procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(‘Der Button wurde geklickt‘) end;

få=m~ëÅ~ä=áëí=Ç~ë=pÉãáâçäçå=ëíÉíë=Éáå=qêÉååòÉáÅÜÉåK=a~=ÇÉê=fåÜ~äí=ìåëÉêÉê=bêÉáÖJ åáëéêçòÉÇìê= ÇáÉëã~ä= åìê= ~ìë= ÉáåÉã= _ÉÑÉÜä= ÄÉëí~åÇI= ï~ê= Éë= ΩÄÉêÜ~ìéí= åáÅÜí= åçíïÉåÇáÖI=Éáå=pÉãáâçäçå=òì=ëÉíòÉåK=táê=ïÉêÇÉå=áå=ïÉáíÉêÉå=h~éáíÉäå=ëçïáÉëç= åçÅÜ=ÖÉåìÖ=ûêÖÉê=ãáí=ÇáÉëÉã=pÉãáâçäçå=ÄÉâçããÉåK= aÉê=_ÉÑÉÜä= ShowMessage(‘Der Button wurde geklickt‘)=ëíÉääí=áå=táêâäáÅÜâÉáí=ÇÉå= ^ìÑêìÑ= ÇÉê= mêçòÉÇìê= ShowMessage= Ç~êK= a~ÄÉá= ïáêÇ= ÇÉê= qÉñíI= ÇÉê= áå= ÇÉã= jáííÉáJ äìåÖëÑÉåëíÉê=ÉêëÅÜÉáåÉå=ëçääI=áå=ÉáåÑ~ÅÜÉ=eçÅÜâçãã~ë= ‘ ‘=ÖÉëÉíòí=E~ìÑ=ÇÉê=q~ëJ í~íìê=ãÉáëí=ÖÉãÉáåë~ã=ãáí=ÇÉã=wÉáÅÜÉå==# =òì=ÑáåÇÉåFK=

2.2.2 ==

Textfenster

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 2= ÇáÉ= zipJa~íÉá= DKap02.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap02= ÇáÉ= mêçàÉâíJa~íÉá= proj_222.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap02=ÇáÉ=a~íÉá=proj_222.bdsproj=~ìëòìï®ÜäÉåK== = o~ëÅÜ=ïáêÇ=Éáå=qÉñíÑÉåëíÉê=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêí=EÉë=ÄÉâçããí=îçå=aÉäéÜá= ~ìíçã~íáëÅÜ= ÇÉå= k~ãÉå= Edit1FI= ìåÇ= ãáí= ëÉáåÉã= lÄàÉâíáåëéÉâíçê= ïáêÇ= áå= ÇÉê= wÉáäÉ= Text= ÑΩê= ÇÉå= pí~êíJfåÜ~äí= ÉáåÉ= wÉáÅÜÉåÑçäÖÉI= òìã= _ÉáëéáÉä= rÉåÖäáåÖÉåI= îçêÄÉêÉáíÉí=E_áäÇ=OKVFK== a~åå=ïáêÇ=ãáí=ÇÉê=äáåâÉå=j~ìëí~ëíÉ=ÇçééÉäí=~ìÑ=Ç~ë=qÉñíÑÉåëíÉê=ÖÉâäáÅâíK=pÅÜçå= ÉêÜ~äíÉå=ïáê=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=pí~åÇ~êÇJbêÉáÖåáë=ÄÉáã= qÉñíÑÉåëíÉêK=tÉäÅÜÉë=bêÉáÖåáë=ïáêÇ=Éë=ïçÜä=ëÉáå\=== aÉê=çÄÉêëíÉå=wÉáäÉ=ÇÉë=łÖÉëÅÜÉåâíÉå=o~ÜãÉåë=â∏ååÉå=ïáê=êÉÅÜíë=îçã=mìåâí= ÇáÉ=sçâ~ÄÉä=Edit1Change=~ÄäÉëÉåK= OV =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= a~ë= ÜÉá≈íI= Ç~ëë= ÇáÉ= mêçÖê~ããáÉêÉê= îçå= aÉäéÜá= ÇÉê= jÉáåìåÖ= ï~êÉåI= Ç~ëë= ÉáåÉ= ®åÇÉêåÇÉ= kìíòÉêÉáåïáêâìåÖI= ÇK= ÜK= Ç~ë= bêÉáÖåáë= Change= EûåÇÉêìåÖF= ÄÉá= ÉáåÉã= qÉñíÑÉåëíÉêI=ïçÜä=~ã=Ü®ìÑáÖëíÉå=ÇÉê=^ìëÖ~åÖëéìåâí=ÑΩê=ÉáåÉ=oÉ~âíáçå=ëÉáå=ïáêÇK==

= _áäÇ=OKVW=píÉìÉêÉäÉãÉåí=qÉñíÑÉåëíÉê=(Edit)== kìå= Äê~ìÅÜÉå= ïáê= åìê= åçÅÜ= ÇÉå= ÉáåÉå= fåÑçêã~íáçåëJ_ÉÑÉÜä= ÑΩê= ÇÉå= fåÜ~äí= òì= ëÅÜêÉáÄÉåW= procedure TForm1.Edit1Change(Sender: TObject); begin ShowMessage('Es wurde geändert')

// Inhalt

end;

i~ëëÉå= ïáê= ~ìëÑΩÜêÉå= ëíÉääÉå= ïáê= í~íë®ÅÜäáÅÜ= ÑÉëíI= Ç~ëë= Ç~ë= ÉáåÑ~ÅÜÉ= eáåÉáåâäáJ ÅâÉå= áå= ÇáÉ= qÉñíÄçñ= åçÅÜ= åáÅÜí= òìê= ^ìëÑΩÜêìåÖ= ÇáÉëÉê= bêÉáÖåáëéêçòÉÇìê= ÑΩÜêíK= a~ë=bêÉáÖåáë=häáÅâ=áëí=ÉÄÉå=Éáå=~åÇÉêÉë=bêÉáÖåáë=~äë=ûåÇÉêìåÖK=

2.2.3

Checkbox

mêÉáëÑê~ÖÉW=tÉäÅÜÉ=kìíòÉêÉáåïáêâìåÖ=ïáêÇ=ïçÜä=ÄÉá=ÇÉã=píÉìÉêÉäÉãÉåí=`ÜÉÅâJ Äçñ=~ã=Ü®ìÑáÖëíÉå=~ìÑíêÉíÉå=ìåÇ=çÑí=òì=ÉáåÉê=oÉ~âíáçå=^åä~ëë=ÖÉÄÉå\== procedure TForm1.CheckBox1Click(Sender: TObject); begin ShowMessage('Es wurde geklickt')

// Inhalt

end;

k~íΩêäáÅÜ= Ó= áå= ÇÉê= ÉêëíÉå= hçéÑòÉáäÉ= áëí= Éë= ~ÄäÉëÄ~êW= a~ë= pí~åÇ~êÇÉêÉáÖåáë= ÄÉáã= píÉìÉêÉäÉãÉåí=`ÜÉÅâÄçñ=áëí=ÇÉê=ÉáåÑ~ÅÜÉ=häáÅâK=tçÄÉá=ÇáÉëÉë=bêÉáÖåáë=å~íΩêäáÅÜ= ëçïçÜä= ÉáåíêáííI= ïÉåå= ÇÉê= kìíòÉê= ÇÉå= e~âÉå= áå= ÇÉê= `ÜÉÅâÄçñ= ëÉíòíI= ~äë= ~ìÅÜI= ïÉåå=Éê=ÇÉå=e~âÉå=ïÉÖåáããíK=häáÅâ=áëí=häáÅâK=

2.2.4

Scrollbar

cΩê=Ç~ë=píÉìÉêÉäÉãÉåí=pÅêçääÄ~ê=ÄÉëíÉÜí=Ç~ë=pí~åÇ~êÇJbêÉáÖåáë=áå=ÇÉê=ûåÇÉêìåÖ= ÇÉê= mçëáíáçå= ÇÉë= oÉÖäÉêëK= aÉê= açééÉäâäáÅâ= ~ìÑ= ÇáÉëÉë= píÉìÉêÉäÉãÉåí= áã= båíJ ïìêÑëãçÇìë=äáÉÑÉêí=ëçÑçêí=ÇÉå=o~ÜãÉå=ÑΩê=ÉáåÉ=bêÉáÖåáëéêçòÉÇìêI=ãáí=ÇÉê=ã~å= ~ìÑ=ÇáÉëÉ=kìíòÉêÉáåïáêâìåÖ=êÉ~ÖáÉêÉå=â∏ååíÉW=

PM= =

OKO== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òìã=pí~åÇ~êÇJbêÉáÖåáë= procedure TForm1.ScrollBar1Change(Sender: TObject); begin ShowMessage('Es wurde am Regler geschoben') end;

2.2.5

// Inhalt

Radiobutton

cΩê= Éáå= píÉìÉêÉäÉãÉåí= o~ÇáçÄìííçåI= Ç~ë= ïçÜä= åáÉã~äë= ~ääÉáå= ~ìÑíêÉíÉå= ïáêÇI= ëçåÇÉêå=áããÉê=ãáí=~åÇÉêÉå=òìë~ããÉå=áå=ÉáåÉê=dêìééÉ=EGroupBoxFI=áëí=ÉÄÉåÑ~ääë= ÇÉê=ÉáåÑ~ÅÜÉ=häáÅâ=Ç~ë=pí~åÇ~êÇJbêÉáÖåáëK== a~ë=ÉêÑ®Üêí=ã~å=~ìë=ÇÉã=òìÖÉÜ∏êáÖÉå=o~ÜãÉå=ÇÉê=bêÉáÖåáëéêçòÉÇìêW== procedure TForm1.RadioButton1Click(Sender: TObject); begin ShowMessage('Es wurde geklickt') end;

2.2.6

// Inhalt

Label

tÉäÅÜÉ=^åíïçêí=ëçääíÉå=ïáê=ÖÉÄÉåI=ïÉåå=ïáê=å~ÅÜ=ÇÉã=pí~åÇ~êÇJbêÉáÖåáë=òìã= píÉìÉêÉäÉãÉåí=i~ÄÉä=ÖÉÑê~Öí=ïÉêÇÉå\=lÇÉê=Ó=~åÇÉêë=ÑçêãìäáÉêí=Ó=ïÉäÅÜÉ=kìíòÉêJ Ü~åÇäìåÖ=áëí=~å=ÉáåÉã=i~ÄÉä=~ã=ï~ÜêëÅÜÉáåäáÅÜëíÉå=ìåÇ=ëçääíÉ=òì=ÉáåÉê= oÉ~âJ íáçå=ÑΩÜêÉå\== báå= i~ÄÉä= ïáêÇ= ÉáÖÉåíäáÅÜ= åìê= é~ëëáî= ÄÉåìíòíI= ìã= Éíï~ë= ãáíòìíÉáäÉåK= cçäÖäáÅÜ= ä~ìíÉí=ÇáÉ=ëéçåí~åÉ=^åíïçêíW=hÉáåÉK=tÉäÅÜÉê=kìíòÉê=âäáÅâí=ëÅÜçå=Éáå=i~ÄÉä=~å\= t~êìã=ëçääíÉ=Éê=Ç~ë=íìå\== qêçíòÇÉã=Ü~ÄÉå=ÇáÉ=båíïáÅâäÉê=îçå=aÉäéÜá=~ìÅÜ=ÑΩê=Éáå=i~ÄÉä=Éáå=pí~åÇ~êÇJbêJ ÉáÖåáë=ÑÉëíÖÉäÉÖíK=i~ëëÉå=ïáê=ìåë=ΩÄÉêê~ëÅÜÉåW=Label1Click=ëíÉÜí=áå=ÇÉê=hçéÑòÉáäÉ= ÇÉë= o~ÜãÉåë= ÑΩê= ÇáÉ= bêÉáÖåáëéêçòÉÇìêK= a~ë= ÄÉëÅÜêÉáÄí= Ç~ë= i~ÄÉäJpí~åÇ~êÇJbêJ ÉáÖåáëK=kÉÜãÉå=ïáê=Éë=òìê=hÉååíåáëK= pçääíÉå=ïáê=Éáåã~ä=~ìë=áêÖÉåÇÉáåÉã=dêìåÇÉ=ÑΩê=ÇÉå=häáÅâ=ÉáåÉë=kìíòÉêë=~ìÑ=Éáå= i~ÄÉä= ÉáåÉ= bêÉáÖåáëéêçòÉÇìê= òì= ëÅÜêÉáÄÉå= Ü~ÄÉå= ïáëëÉå= ïáê= ÑçäÖäáÅÜI= Ç~ëë= ïáê= Ç~ãáí=Ç~ë=pí~åÇ~êÇJbêÉáÖåáë=~ã=i~ÄÉä=ÄÉÜ~åÇÉäåK===

2.2.7

Formular

tÉåå=ïáê=áã=båíïìêÑ=~ìÑ=Ç~ë=äÉÉêÉ=cçêãìä~ê=ÇçééÉäí=âäáÅâÉå=ÉêÜ~äíÉå=ïáê=ëçJ Ñçêí=ÑçäÖÉåÇÉå=bêÉáÖåáëéêçòÉÇìêJo~ÜãÉåW== procedure TForm1.FormCreate(Sender: TObject); begin // Inhalt end;

PN =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= a~ë= ÄÉÇÉìíÉíI= Ç~ëë= ÄÉá= ÇÉã= ÖêìåÇäÉÖÉåÇÉå= îáëìÉääÉå= lÄàÉâíI= ÇÉã= cçêãìä~êI= Ç~ë=bêòÉìÖÉå=ECreateF=Ç~ë=pí~åÇ~êÇÉêÉáÖåáë=áëíK=eáÉê=Ü~ÄÉå=ÇáÉ=mêçÖê~ããáÉêÉê= îçå=aÉäéÜá=âÉáåÉ=ÇáêÉâíÉ=kìíòÉêÉáåïáêâìåÖ=~ìÑ=Ç~ë=cçêãìä~ê=òìã=pí~åÇ~êÇJbêJ ÉáÖåáë=Éêâä®êíK== pí~ííÇÉëëÉå= â~åå= ã~å= ~äë= fåÜ~äí= ÇÉê= bêÉáÖåáëéêçòÉÇìê= ëçäÅÜÉ= _ÉÑÉÜäÉ= ÜáåÉáåJ ëÅÜêÉáÄÉåI= ÇáÉ= ~ìíçã~íáëÅÜ= ~ìëÖÉÑΩÜêí= ïÉêÇÉåI= ïÉåå= Ç~ë= cçêãìä~ê= ÜÉêÖÉëíÉääí= ïáêÇK=táê=ïÉêÇÉå=Ç~îçå=Ä~äÇI=å®ãäáÅÜ=áã=^ÄëÅÜåáíí=QKTKRI=dÉÄê~ìÅÜ=ã~ÅÜÉåK==

2.3

Einfache Ereignisprozeduren zu Nicht-Standard-Ereignissen táÉ=ÉêÑ®Üêí=ã~å=ΩÄÉêÜ~ìéíI=ÑΩê=ïÉäÅÜÉ=bêÉáÖåáëëÉ=ã~å=fåÜ~äíÉ=îçå=bêÉáÖåáëéêçJ òÉÇìêÉå=éêçÖê~ããáÉêÉå=â~åå\== jáí=~åÇÉêÉå=tçêíÉåW=cΩê=ïÉäÅÜÉ=kìíòÉêÉáåïáêâìåÖÉå=~ìÑ=Éáå=píÉìÉêÉäÉãÉåí=áëí= áå=aÉäéÜá=ÉáåÉ=oÉ~âíáçå=éêçÖê~ããáÉêÄ~ê\== _áëÜÉê= ïáëëÉå= ïáê= ÇçÅÜ= åìêI= ïáÉ= ïáê= ÉáåÉ= oÉ~âíáçå= ÄÉáã= àÉïÉáäáÖÉå= pí~åÇ~êÇJ bêÉáÖåáë=ÉêòÉìÖÉå=â∏ååÉåK=

2.3.1

Reaktionen auf Mausbewegungen

t~ë=áëí=òì=íìåI=ïÉåå=ïáê=ÄÉáëéáÉäëïÉáëÉ=ÉáåÉ=oÉ~âíáçå=éêçÖê~ããáÉêÉå=ïçääÉåI= ÇáÉ=ëí~ííÑáåÇÉíI=ïÉåå=ÇÉê=kìíòÉê=ÇáÉ=j~ìë=äÉÇáÖäáÅÜ=ΩÄÉê=ÉáåÉå=_ìííçå=ÄÉïÉÖí\== wïÉá=cê~ÖÉå=ãΩëëÉå=Ç~òì=ÄÉ~åíïçêíÉí=ïÉêÇÉåW= • bêëíÉ=cê~ÖÉW=dáÄí=Éë=ΩÄÉêÜ~ìéí=ÇáÉ=j∏ÖäáÅÜâÉáí=áå=aÉäéÜáI=òìã=bêÉáÖåáë=j~ìëJ ÄÉïÉÖìåÖ=ΩÄÉê=ÉáåÉã=_ìííçå=ÉáåÉ=bêÉáÖåáëéêçòÉÇìê=ëÅÜêÉáÄÉå=òì=â∏ååÉå\== • wïÉáíÉ=cê~ÖÉW=táÉ=ÉêÜ®äí=ã~å=Ç~åå=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê\== _ÉáÇÉ=^åíïçêíÉå=ëáåÇ=åáÅÜí=ëÅÜïáÉêáÖ=òì=ÉêÜ~äíÉåW== k~ÅÜÇÉã=ïáê=ÉáåÉå=_ìííçå=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêí=Ü~ÄÉå=EòK=_K=ãáí=ÇÉê=_ÉJ ëÅÜêáÑíìåÖ=k=l=o=aFI=ï®ÜäÉå=ïáê=áã=lÄàÉâíáåëéÉâíçê=Ç~ë=êÉÅÜíÉ=oÉÖáëíÉêÄä~íí=ãáí= ÇÉê=§ÄÉêëÅÜêáÑí=bobfdkfppb=~ìëK== råÇ=Ç~=áëí=ëáÉ=ëÅÜçåI=ÇáÉ=iáëíÉ=~ääÉê=áå=aÉäéÜá=ÄÉÜ~åÇÉäÄ~êÉå=_ìííçåJbêÉáÖåáëëÉI= ÇK= ÜK= ÇáÉ= iáëíÉ= ~ääÉê= ^êíÉå= îçå= kìíòÉêÉáåïáêâìåÖÉå= ~ã= _ìííçåI= ÑΩê= ÇáÉ= ïáê= áå= aÉäéÜá=oÉ~âíáçåÉå=éêçÖê~ããáÉêÉå=â∏ååÉåK=§ÄÉê=ÇáÉ=êÉÅÜíÉ=j~ìëí~ëíÉ=ä®ëëí=ëáÅÜ= ÇáÉ=^åçêÇåìåÖ=ÉåíïÉÇÉê=~äéÜ~ÄÉíáëÅÜ=çÇÉê=å~ÅÜ=h~íÉÖçêáÉå=ÖÉçêÇåÉí=~åòÉáÖÉå= EëK=_áäÇ=OKNMFK== råÇ= áå= ÇáÉëÉã= _áäÇ= â∏ååÉå= ïáê= ÉêâÉååÉåW= tÉáí= ãÉÜê= ~äë= Éáå= aìíòÉåÇ= bêÉáÖJ åáëëÉ= ~ã= _ìííçå= ëáåÇ= ÄÉÜ~åÇÉäÄ~êX= ÑΩê= ëáÉ= â∏ååíÉå= ïáê= ÑçäÖäáÅÜ= bêÉáÖåáëéêçòÉJ ÇìêÉå= îçêÄÉêÉáíÉåK= báåÉë= Ç~îçå= áëí= Ç~ë= ÄÉâ~ååíÉ= pí~åÇ~êÇJbêÉáÖåáë= häáÅâI= Ç~ë= ëáÅÜ=å~íΩêäáÅÜ=~ìÅÜ=áå=ÇÉê=iáëíÉ=ÄÉÑáåÇÉíK== cçäÖäáÅÜ= ÖáÄí= Éë= ÄÉáã= îáëìÉääÉå= lÄàÉâí= _ìííçå= ÉáåÉ= cΩääÉ= ÄÉÜ~åÇÉäÄ~êÉê= káÅÜíJ pí~åÇ~êÇJbêÉáÖåáëëÉK== PO= =

OKP== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òì=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå= tçÜäÖÉãÉêâíW= aáÉëÉ= ^ìëë~ÖÉ= ÄÉòáÉÜí= ëáÅÜ= ~ìÑ= Ç~ë= ~âíìÉääÉ= aÉäéÜáI= áå= ~åÇÉêÉå= båíïáÅâäìåÖëëóëíÉãÉå= ãáí= ®ÜåäáÅÜÉã= ^ìÑÄ~ì= â~åå= Éë= ÇìêÅÜ~ìë= ïÉåáÖÉê= çÇÉê= ãÉÜê=ÄÉÜ~åÇÉäÄ~êÉ=bêÉáÖåáëëÉ=ÖÉÄÉåK=^ìÅÜ=â∏ååÉå=âΩåÑíáÖÉ=aÉäéÜáJsÉêëáçåÉå= ÇìêÅÜ~ìë=ãáí=ä®åÖÉêÉå=iáëíÉå=îÉêëÉÜÉå=ëÉáåK== gÉÇÉë=bêÉáÖåáë=ÄÉÖáååí=ãáí=ÇÉå=òïÉá=_ìÅÜëí~ÄÉå= On=Ó=áåë=aÉìíëÅÜÉ=~ã=ÄÉëíÉå= ΩÄÉêëÉíòÄ~ê=ãáí=beiK= få=ÇÉê=ÉáåÉê=wÉáäÉ=ÉêâÉååÉå=ïáê=Ç~ë=bêÉáÖåáë= OnMouseMoveK=wì=ÇÉìíëÅÜW=Bei-MausBewegungK=a~=Ü~ÄÉå=ïáê=Éë=ÇçÅÜI=ïçå~ÅÜ=ïáê=ëìÅÜÉå>== cçäÖäáÅÜ=áëí=ÇáÉ=ÉêëíÉ=cê~ÖÉ=ÄÉ~åíïçêíÉíW=táê=â∏ååÉå=ÇìêÅÜ~ìë=~ìÅÜ=òìã=bêÉáÖJ åáë=j~ìëÄÉïÉÖìåÖ=ΩÄÉê=ÇÉã=_ìííçå=ÉáåÉ=bêÉáÖåáëéêçòÉÇìê=ëÅÜêÉáÄÉåK==

== _áäÇ=OKNMW=lÄàÉâíáåëéÉâíçê=ÇÉë=_ìííçåëI=oÉÖáëíÉêÄä~íí=bobfdkfppb= a~òì=ï®ÜäÉå=ïáê=áå=ÇÉê=iáëíÉ=~ääÉê=ÄÉÜ~åÇÉäÄ~êÉå=bêÉáÖåáëëÉ=Ç~ë=bêÉáÖåáë=OnMouseMove=~ìëK=a~åå=∏ÑÑåÉí=ëáÅÜ=êÉÅÜíë=Éáå=äÉÉêÉë=ïÉá≈Éë=cÉäÇ=E_áäÇ=OKNNFK==

=

== _áäÇ=OKNNW=^ìëï~Üä=ÇÉë=ÖÉïΩåëÅÜíÉå=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉë== PP =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 2= ÇáÉ= zipJa~íÉá= DKap02.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap02= ÇáÉ= mêçàÉâíJa~íÉá= proj_231.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap02=ÇáÉ=a~íÉá=proj_231.bdsproj=~ìëòìï®ÜäÉåK== == tÉáíÉê=ÖÉÜí=Éë=ëÅÜäáÉ≈äáÅÜ=ãáí=ÉáåÉã=ëÅÜåÉääÉå=açééÉäâäáÅâ=áå=ÇáÉëÉë=äÉÉêÉ=ïáÉJ ≈É=cÉäÇ=Ó=ìåÇ=ëÅÜçå=∏ÑÑåÉí=ëáÅÜ=ïáÉÇÉê=ïáÉ=ÄÉá=ÇÉå=pí~åÇ~êÇJbêÉáÖåáëëÉå= Ç~ë= nìÉääíÉñíÑÉåëíÉê= ãáí= ÇÉã= o~ÜãÉå= ÇÉê= bêÉáÖåáëéêçòÉÇìêK= a~ãáí= áëí= ~ìÅÜ= ÇáÉ= òïÉáíÉ=cê~ÖÉ=ÄÉ~åíïçêíÉíK= få= ÇÉê= çÄÉêëíÉå= hçéÑòÉáäÉ= ÇÉë= o~ÜãÉåë= ÇÉê= bêÉáÖåáëéêçòÉÇìê= äáÉëí= ã~å= êÉÅÜíë= îçã= mìåâí= ÇáÉ= wÉáÅÜÉåÑçäÖÉ= Button1MouseMoveI= Éë= Ü~åÇÉäí= ëáÅÜ= í~íë®ÅÜäáÅÜ= ìã= ÇÉå= o~ÜãÉå= ÑΩê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìã= bêÉáÖåáë= j~ìëÄÉïÉÖìåÖ= ΩÄÉê= ÇÉã= _ìííçåK= cΩê=ÇÉå=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ïçääÉå=ïáê=îçêÉêëí=ïáÉÇÉê=åìê=ÉáåÉ=ÉáåÑ~J ÅÜÉ=jáííÉáäìåÖ=ï®ÜäÉåK== procedure TForm1.Button1MouseMove( Sender:TObject; Shift:TShiftState; X,Y:Integer ); begin ShowMessage('Der Mauszeiger bewegt sich über dem Button NORD') //Inhalt end;

a~ÄÉá=áëí=ÇáÉ=ä~åÖÉ=hçéÑòÉáäÉ=ÜáÉê=~ìë=ëÅÜêÉáÄíÉÅÜåáëÅÜÉå=dêΩåÇÉå=òÉêäÉÖí=ïçêJ ÇÉåX= áã= ÉáÖÉåíäáÅÜÉå= aÉäéÜáJnìÉääíÉñíÑÉåëíÉê= áëí= Ç~ë= åáÅÜí= å∏íáÖK= wìê= §ÄìåÖ= â∏ååíÉå=ïÉáíÉêÉ=ÇêÉá=_ìííçåë=ãáí=ÇÉå=_ÉëÅÜêáÑíìåÖÉå= lpqI=tbpq=ìåÇ=p§a=~å= ÇÉå= ÉåíëéêÉÅÜÉåÇÉå= píÉääÉåI= Éíï~ë= ÉåíÑÉêåí= îçåÉáå~åÇÉêI= ~ìÑ= ÇÉã= cçêãìä~ê= éä~íòáÉêí= ïÉêÇÉåK= wì= àÉÇÉã= _ìííçå= ïáêÇ= Ç~åå= ÑΩê= Ç~ë= bêÉáÖåáë= j~ìëÄÉïÉÖìåÖ= ÇÉê= o~ÜãÉå= ÇÉê= òìÖÉÜ∏êáÖÉå= bêÉáÖåáëéêçòÉÇìê= ÄÉëÅÜ~ÑÑíI= ìåÇ= ~åëÅÜäáÉ≈ÉåÇ= ïáêÇ=àÉïÉáäë=ÇáÉ=é~ëëÉåÇÉ=jáííÉáäìåÖ=éêçÖê~ããáÉêíK== t~ë=áëí=~ÄÉêI=ïÉåå=ëáÅÜ=ÇÉê=j~ìòÉáÖÉê=åáÅÜí=ΩÄÉê=ÉáåÉã=ÇÉê=_ìííçåë=ÄÉÑáåÇÉí\= a~åå=Ó=äçÖáëÅÜ=Ó=ÄÉÑáåÇÉí=Éê=ëáÅÜ=ΩÄÉê=ÇÉã=cçêãìä~êK=aáÉ=iáëíÉ=ÇÉê=cçêãìä~êJ bêÉáÖåáëëÉI=òì=ÇÉåÉå=ÉáåÉ=bêÉáÖåáëéêçòÉÇìê=ÖÉëÅÜêáÉÄÉå=ïÉêÇÉå=â~ååI=áëí=ä~åÖI= ëÉÜê= ä~åÖK= jÉÜê= ~äë= ÇêÉá≈áÖ= báåíê®ÖÉ= ìãÑ~ëëí= ëáÉX= å~íΩêäáÅÜ= ÄÉÑáåÇÉí= ëáÅÜ= ~ìÅÜ= ÇÉê=báåíê~Ö=OnMouseMove=áå=ÇáÉëÉê=iáëíÉK= tÉê=àÉÇçÅÜ=~ìÑ=ÇáÉ=äçÖáëÅÜÉ=fÇÉÉ=âçããíI=ÑçäÖäáÅÜ=ÉáåÉ=ÑΩåÑíÉ=bêÉáÖåáëéêçòÉÇìê= òìã=bêÉáÖåáë=j~ìëÄÉïÉÖìåÖ= ΩÄÉê=ÇÉã=cçêãìä~ê= òì=éêçÖê~ããáÉêÉåI=ÇÉê= ïáêÇ= ÉáåëíïÉáäÉå=îáÉä=ûêÖÉê=ÄÉâçããÉåK=t~êìã\== PQ= =

OKP== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òì=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå= kìåI=Ç~ë=jáííÉáäìåÖëÑÉåëíÉêI=Ç~ë=ãáí=ÇÉã=^ìÑêìÑ=ÇÉê=mêçòÉÇìê=ShowMessage=~åÖÉJ ÑçêÇÉêí=ïáêÇI==ïáêÇ=îçå=aÉäéÜá=ëíÉíë=áå=ÇÉê=jáííÉ=ÇÉë=_áäÇëÅÜáêãë=ÖÉ∏ÑÑåÉíI=~äëç= ΩÄÉê=ÇÉã=cçêãìä~êK== tÉåå= ã~å= ÇáÉëÉ= jáííÉáäìåÖ= ãáí= = OK= = ÄÉëí®íáÖí= ìåÇ= Ç~ë= jáííÉáäìåÖëÑÉåëíÉê= îÉêJ ëÅÜïáåÇÉí=Ó=ïç=ÄÉÑáåÇÉí=ëáÅÜ=Ç~åå=ÇÉê=j~ìëòÉáÖÉê\=k~íΩêäáÅÜ=Ó=ïáÉÇÉê=ΩÄÉê=ÇÉã= cçêãìä~ê>=a~ë=jáííÉáäìåÖëÑÉåëíÉê=ÉêëÅÜÉáåí=ìåîÉêòΩÖäáÅÜ=ïáÉÇÉê=ìåÇ=ëç=ïÉáíÉêK== j~å= âçããí= ~ìë= ÇÉã= qÉìÑÉäëâêÉáë= åìê= ÜÉê~ìëI= ïÉåå= Ç~ë= jáíÉáäìåÖëÑÉåëíÉê= îçê= ÇÉã= pÅÜäáÉ≈Éå= îçêëáÅÜíáÖ= Ö~åò= ~å= ÇÉå= çÄÉêÉå= o~åÇ= ÇÉë= _áäÇëÅÜáêãë= ÖÉòçÖÉå= ïáêÇK=báå=ëÅÜ∏åÉê=bÑÑÉâíI=~ìë=ÇÉã=ã~å=îáÉä=äÉêåÉå=â~ååK= cΩê=ÇáÉ=ÄÉáÇÉå=~åÇÉêÉå=ÄÉÜ~åÇÉäÄ~êÉå=j~ìëÉêÉáÖåáëëÉ=ãáí=ÇÉå=_ÉòÉáÅÜåìåÖÉå= OnMouseDown= ìåÇ= OnMouseUp= â∏ååíÉå= ïáê= ÉÄÉåëç= áåíÉêÉëë~åíÉ= oÉ~âíáçåÉå= éêçJ Öê~ããáÉêÉåK== §ÄÉêëÉíòÉå=ïáê=ÇáÉ=ÄÉáÇÉå=ÉåÖäáëÅÜÉå=sçâ~ÄÉäå=áå=ÇáÉ=ÇÉìíëÅÜÉ=péê~ÅÜÉW== • OnMouseDown= Z= _Éáã= oìåíÉêÇêΩÅâÉå= ÇÉê= äáåâÉå= j~ìëí~ëíÉI= ï®ÜêÉåÇ= ëáÅÜ= ÇÉê= j~ìëòÉáÖÉê=ΩÄÉê=ÇÉã=píÉìÉêÉäÉãÉåí=çÇÉê=ÇÉã=cçêãìä~ê=ÄÉÑáåÇÉíK== • OnMouseUp=Z=_Éáã=içëä~ëëÉå=ÇÉê=äáåâÉå=j~ìëí~ëíÉI=ï®ÜêÉåÇ=ëáÅÜ=ÇÉê=j~ìëòÉáJ ÖÉê=ΩÄÉê=ÇÉã=píÉìÉêÉäÉãÉåí=çÇÉê=ÇÉã=cçêãìä~ê=ÄÉÑáåÇÉíK====

2.3.2

Reaktionen auf Tastendruck

== ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 2= ÇáÉ= zipJa~íÉá= DKap02.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap02= ÇáÉ= mêçàÉâíJa~íÉá= proj_232.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap02=ÇáÉ=a~íÉá=proj_232.bdsproj=~ìëòìï®ÜäÉåK== == _Éíê~ÅÜíÉå=ïáê=Éáå= cçêãìä~ê= ãáí=ÉáåÉã=Ç~ê~ìÑ=ÄÉÑáåÇäáÅÜÉå= qÉñíÑÉåëíÉê=EEditFI= áå=Ç~ë=ÇÉê=kìíòÉê=ëÉäÄëí=Éíï~ë=Éáåíê~ÖÉå=â~åå=çÇÉê=áå=ÇÉã=Éê=ÉáåÉ=îçêÜ~åÇÉåÉ= báåíê~ÖìåÖ= îÉê®åÇÉêå= â~ååK= a~ë= bêÉáÖåáë= ûåÇÉêìåÖ= áëí= Ç~ë= pí~åÇ~êÇJbêÉáÖåáë= ~ã= píÉìÉêÉäÉãÉåí= qÉñíÑÉåëíÉêI= ïáê= Ü~ÄÉå= Éë= áã= ^ÄëÅÜåáíí= OKOKO= ëÅÜçå= âÉååÉå= ÖÉäÉêåíK== táê=ëíÉääÉå=ìåë=ÇáÉ=cê~ÖÉW=cΩê=ïáÉ=îáÉäÉ=ìåÇ=ïÉäÅÜÉ=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉ= ~ã=qÉñíÑÉåëíÉê=â∏ååíÉå=ïáê=oÉ~âíáçåÉå=éêçÖê~ããáÉêÉå\== få=ÇÉê=oÉÖáëíÉêâ~êíÉ=bobfdkfppb=ëáåÇ=ïáÉÇÉêìã=îáÉäÉ=báåíê®ÖÉ=ÉåíÜ~äíÉåK=cΩê=ÇáÉ= kìíòÉêÉáåïáêâìåÖ=q~ëíÉ=ïìêÇÉ=ÖÉÇêΩÅâíI=~ìÑ=ÉåÖäáëÅÜ= OnKeyPressI=áëí=ÄÉêÉáíë=ÇÉê= o~ÜãÉå=ÇÉê=bêÉáÖåáëéêçòÉÇìê=~åÖÉÑçêÇÉêí=ïçêÇÉå=Ó=áå=_áäÇ=OKNO=ÉêâÉååÄ~ê=~å= ÇÉã=báåíê~Ö=áå=ÇÉã=ïÉá≈Éå=cÉäÇ=åÉÄÉå=OnKeyPressK= PR =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= aÉê=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ÄÉëíÉÜí=ïáÉÇÉê=îçêÉêëí=åìê=~ìë=ÇÉã=ÉáåÑ~ÅÜÉå= ^ìÑêìÑ=ÇÉê=mêçòÉÇìê=ShowMessageI=ãáí=ÇÉã=ÇÉê=kìíòÉê=ΩÄÉê=Ç~ë=báåíêÉíÉå=ÇÉë=bêJ ÉáÖåáëëÉë=áåÑçêãáÉêí=ïáêÇK== procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin ShowMessage('Eine Taste wurde gedrückt') end;

tÉê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=íÉëíÉíI=ïáêÇ=Éêëí~ìåí=ÑÉëíëíÉääÉåI=Ç~ëë=âÉáåÉëÑ~ääë=àÉÇÉê= q~ëíÉåÇêìÅâ=ÇáÉ=éêçÖê~ããáÉêíÉ=oÉ~âíáçå=ÜÉêîçêêìÑíK==

= _áäÇ=OKNOW=bêÉáÖåáëëÉ=~ã=qÉñíÑÉåëíÉê= tÉÇÉê=~ìÑ=ÇáÉ= Shift Jq~ëíÉ=åçÅÜ=~ìÑ=ÇáÉ=q~ëíÉ= Strg =åçÅÜ=~ìÑ=ÇáÉ=cìåâíáçåëJ í~ëíÉå= F1 =Äáë= F12 =ÖáÄí=Éë=ÉáåÉ=oÉ~âíáçåK= fëí= Ç~ë= ëÅÜäÉÅÜí\= páÅÜÉê= åáÅÜíI= ÇÉåå= ëçåëí= â∏ååíÉ= àÉÇÉê= mêçÖê~ããáÉêÉê= ãáííÉäë= ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=ÇáÉëÉ=ïáÅÜíáÖÉå=q~ëíÉåI=ÇáÉ=ÑΩê=ÇáÉ=^êÄÉáí=ÇÉë= _ÉíêáÉÄëJ ëóëíÉãë= ìåîÉêòáÅÜíÄ~ê= ëáåÇI= ÉáåÑ~ÅÜ= ~ì≈Éê= _ÉíêáÉÄ= åÉÜãÉå= çÇÉê= áå= áÜêÉê= táêJ âìåÖ=îÉêÑ®äëÅÜÉåK= cΩê=ÇáÉ=ÄÉáÇÉå=~åÇÉêÉå=q~ëí~íìêJbêÉáÖåáëëÉ== • OnKeyDown=Z=_Éá=ÜÉêìåíÉêÖÉÇêΩÅâíÉê=q~ëíÉ= • OnKeyUp=Z=_Éá=äçëÖÉä~ëëÉåÉê=q~ëíÉ= ïÉêÇÉå= ïáê= ëé®íÉê= îáÉääÉáÅÜí= áåíÉêÉëë~åíÉ= ^åïÉåÇìåÖÉå= ÑáåÇÉåX= áÜêÉ= kìíòìåÖ= áã=wìë~ããÉåÜ~åÖ=ãáí=ÇÉê=mêçòÉÇìê=ShowMessage=áëí=åáÅÜí=ÖΩåëíáÖK==

2.3.3 ==

Fokus-Ereignisse

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 2= ÇáÉ= zipJa~íÉá= DKap02.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap02= ÇáÉ= mêçàÉâíJa~íÉá= proj_233.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap02=ÇáÉ=a~íÉá=proj_233.bdsproj=~ìëòìï®ÜäÉåK== == PS= =

OKP== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òì=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå= _Éîçê= ïáê= ìåë= ÇÉå= ÄÉáÇÉå= káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå= OnEnter= ìåÇ= OnExit= òìJ ïÉåÇÉåI=ÇáÉ=ÑΩê=àÉÇÉë=píÉìÉêÉäÉãÉåí=ÄÉÜ~åÇÉäÄ~ê=ëáåÇI=ãΩëëÉå=ïáê=Éêëí=Éáåã~ä= ÇÉå=ïáÅÜíáÖÉå=_ÉÖêáÑÑ=ÇÉë=cçâìë=âä®êÉåK== wìê= fääìëíê~íáçå= éä~íòáÉêÉå= ïáê= ~ìÑ= ÉáåÉã= cçêãìä~ê= ÑΩåÑ= píÉìÉêÉäÉãÉåíÉI= ìåÇ= ï®ÜäÉå= Ç~ÄÉáI= ìã= ëé®íÉê= ÇÉå= tÉÅÜëÉä= ÇÉë= cçâìë= Öìí= ÄÉçÄ~ÅÜíÉå= òì= â∏ååÉåI= ÉáåÉ=Ö~åò=ÄÉëíáããíÉ=oÉáÜÉåÑçäÖÉW== wìÉêëí= âçããí= å~ÅÜ= äáåâë= çÄÉå= ÇáÉ= pÅÜ~äíÑä®ÅÜÉ= Button1K= oÉÅÜíë= Ç~åÉÄÉå= ïáêÇ= Ç~ë=qÉñíÑÉåëíÉê=Edit1=~åÖÉçêÇåÉíK== bêåÉìíÉê=dêáÑÑ=áå=ÇáÉ=iáëíÉ=ÇÉê=píÉìÉêÉäÉãÉåíÉI=ìåÇ=äáåâë=ìåíÉå=ïáêÇ=ïÉáíÉê=ÇáÉ= ï~~ÖÉêÉÅÜíÉ= Scrollbar1= ~åÖÉçêÇåÉíK= oÉÅÜíë= ìåíÉå= ïáêÇ= Ç~å~ÅÜ= ÇÉê= Button2= éä~íòáÉêíI= ìåÇ= òìã= pÅÜäìëë= çêÇåÉå= ïáê= êÉÅÜíë= çÄÉå= ÇáÉ= Checkbox1= ÉáåK= aáÉ= båíJ ïìêÑëéÜ~ëÉ= áëí= ÄÉÉåÇÉíI= ïáê= ëéÉáÅÜÉêå= Unit= ìåÇ= Projekt= å~ÅÜÉáå~åÇÉê= ëçI= ïáÉ= Éë=áå=^ÄëÅÜåáíí=NKOKP=ÄÉëÅÜêáÉÄÉå=ïìêÇÉK== báå=häáÅâ=~ìÑ=ÇáÉ=pÅÜ~äíÑä®ÅÜÉ=ãáí=ÇÉã=å~ÅÜ=êÉÅÜíë=ÖÉêáÅÜíÉíÉå=aêÉáÉÅâ=çÇÉê=Éáå= aêìÅâ=~ìÑ=ÇáÉ=q~ëíÉ= F9 =Ó=ÇáÉ=i~ìÑòÉáí=ÄÉÖáååíK== pÉÜÉå=ïáê=áå=_áäÇ=OKNP=ÖÉå~ì=ÜáåW=rã=ÇáÉ=_ÉëÅÜêáÑíìåÖ=îçå= Button1=òáÉÜí=ëáÅÜ= ÉáåÉ=ÖÉëíêáÅÜÉäíÉ=iáåáÉK=a~ë=ÄÉÇÉìíÉíW=aÉê=ÉêëíÉ=_ìííçå=ÄÉëáíòí=ÇÉå=cçâìëK== kìå= ëçääíÉå= ïáê= ÇáÉ= j~ìë= ïÉÖäÉÖÉå= ìåÇ= ÇáÉ= q~Äìä~íçêJq~ëíÉ= ~ìÑ= ÇÉê= q~ëí~íìê= ëìÅÜÉåK= páÉ= ÄÉÑáåÇÉí= ëáÅÜ= Ö~åò= äáåâë= ìåÇ= áëí= ÄÉëÅÜêáÑíÉí= ãáí= òïÉá= ΩÄÉêÉáå~åÇÉê= äáÉÖÉåÇÉåI=ÉåíÖÉÖÉåÖÉëÉíòíÉå=mÑÉáäÉåK== _áäÇ=OKNQ=òÉáÖí=ìåëI=ï~ë=ëáÅÜ=å~ÅÜ=aêìÅâ=~ìÑ=ÇáÉ=q~Äìä~íçêí~ëíÉ=®åÇÉêíW=aáÉ=iáJ åáÉ=ìã=ÇáÉ=_ÉëÅÜêáÑíìåÖ=îçå= Button1=áëí=îÉêëÅÜïìåÇÉåI=ÇÉê=fåÜ~äí=îçå= Edit1=áëí= Ç~ÑΩê=Ää~ì=ìåíÉêäÉÖíK=

= _áäÇ=OKNPW=aÉê=_ìííçå=çÄÉå=äáåâë=ÄÉëáíòí=ÇÉå=cçâìë=

= _áäÇ=OKNQW=a~ë=qÉñíÑÉåëíÉê=ÄÉëáíòí=ÇÉå=cçâìë= == = PT =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= =

= _áäÇ=OKNRW=aáÉ=pÅêçääÄ~ê=áëí=åìå=ÑçâìëëáÉêí=

= _áäÇ=OKNSW=aÉê=_ìííçå=ìåíÉå=êÉÅÜíë=Ü~í=ÇÉå=cçâìë==

= _áäÇ=OKNTW=cçâìëëáÉêíÉ=`ÜÉÅâÄçñ= aáÉ=råíÉêëÅÜêáÑí=îçå=_áäÇ=OKNQ=Éêâä®êí=ÉëW=aÉê=cçâìëI=ÇK=ÜK=ÇáÉ=j~êâáÉêìåÖ=ÇÉëàÉJ åáÖÉå=píÉìÉêÉäÉãÉåíëI=Ç~ë=~âíìÉää=ÄÉÇáÉåÄ~ê=áëí=ìåÇ=kìíòÉêÉáåÖ~ÄÉå=ÉåíÖÉÖÉåJ åÉÜãÉå=â~ååI=áëí=òìê=qÉñíÄçñ=ÖÉï~åÇÉêíK== tçÜáå=ï~åÇÉêí=ÇÉê=cçâìë=ÄÉáã=å®ÅÜëíÉå=aêìÅâ=~ìÑ=ÇáÉ=q~Äìä~íçêí~ëíÉ\=táêÇ=Éê= çÄÉå= ïÉáíÉêï~åÇÉêå= çÇÉê= ïáêÇ= Éáå= ~åÇÉêÉë= píÉìÉêÉäÉãÉåí= ÑçâìëëáÉêí\= få= _áäÇ= OKNR=ëÉÜÉå= ïáê=ÇáÉ=^åíïçêíW=aáÉ= pÅêçääÄ~ê=ÄÉâçããí=ÇÉå=cçâìëK=t~êìã\=bêáåJ åÉêå= ïáê= ìåë= ~å= ÇáÉ= oÉáÜÉåÑçäÖÉI= áå= ÇÉê= ïáê= ÇáÉ= píÉìÉêÉäÉãÉåíÉ= ~ìÑ= ÇÉã= cçêJ ãìä~ê=éä~íòáÉêíÉåK=eáÉê=òÉáÖí=ëáÉ=ëáÅÜK= t~ë= âçããí= ~äë= k®ÅÜëíÉë\= bêáååÉêå= ïáê= ìåë= Ó= Ç~å~ÅÜ= Ü~ííÉå= ïáê= ÇÉå= òïÉáíÉå= _ìííçå=~ìÑ=Ç~ë=cçêãìä~ê=ÖÉòçÖÉåK=bêåÉìíÉê=aêìÅâ=~ìÑ=ÇáÉ=q~Äìä~íçêí~ëíÉ=ÑçâìëJ ëáÉêí=ÑçäÖäáÅÜ=ÇÉå=òïÉáíÉå=_ìííçå=êÉÅÜíë=ìåíÉå=EëáÉÜÉ=_áäÇ=OKNSFK== ^äë= äÉíòíÉë= Ü~ííÉå= ïáê= ÇáÉ= `ÜÉÅâÄçñ= ~åÖÉçêÇåÉíI= ÇÉãå~ÅÜ= ÉêÜ®äí= ëáÉI= ïáÉ= _áäÇ= OKNT= òÉáÖíI= Éêëí= ÄÉáã= äÉíòíÉå= aêìÅâ= ~ìÑ= ÇáÉ= q~Äìä~íçêí~ëíÉ= ÇÉå= cçâìëK= tÉê= Éë= ~ìëéêçÄáÉêíI=ÇÉê=ëíÉääí=å~íΩêäáÅÜ=ëçÑçêí=ÑÉëíI=Ç~ëë=ÄÉá=ÉêåÉìíÉã=aêìÅâ=~ìÑ=ÇáÉ=q~ÄìJ ä~íçêí~ëíÉ=ÇÉê=cçâìë=ïáÉÇÉê=êÉáÜìã=ï~åÇÉêíK== tÉåå=ÇÉê=kìíòÉê=ÇÉå=cçâìë=~ìÑ=Éáå=píÉìÉêÉäÉãÉåí=ëÉíòí=ïáää=Éê=Éë=~åëÅÜäáÉ≈ÉåÇ= ÄÉÇáÉåÉåK==

PU= =

OKP== báåÑ~ÅÜÉ=bêÉáÖåáëéêçòÉÇìêÉå=òì=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå= ^ã=ÇÉìíäáÅÜëíÉå=ïáêÇ=Ç~ë=ÄÉá=ÉáåÉã=qÉñíÑÉåëíÉêK=bêëí=ïáêÇ=ÑçâìëëáÉêí=Ó=ãáí=q~ÄìJ ä~íçêí~ëíÉ=çÇÉê=j~ìë=ïáêÇ=ÉÇáíáÉêíI=ÉáåÖÉíê~ÖÉå=çÇÉê=ÖÉ®åÇÉêí=çÇÉê=ÖÉä∏ëÅÜíK== ^êÄÉáíÉí=ÇÉê=kìíòÉê=ãáí=ÇÉê=j~ìë=îÉêÄáåÇÉí=Éê=áã=oÉÖÉäÑ~ää=Ç~ë=pÉíòÉå=ÇÉë=cçâìë= ëçÑçêí=ãáí=ÇÉê=_ÉÇáÉåìåÖW=báå=j~ìëâäáÅâ=~ìÑ=ÉáåÉå=_ìííçå=ëÉíòí=ÇÉå=cçâìë=~ìÑ= ÇáÉëÉå= _ìííçåI= ÖäÉáÅÜòÉáíáÖ= ÉêÑçäÖí= ÄÉêÉáíë= ÇÉê= häáÅâK= táêÇ= Ç~ÖÉÖÉå= ÇÉê= _ìííçå= åáÅÜí=ãáí=ÇÉê=j~ìëI=ëçåÇÉêå=ãáí=ÇÉê=q~Äìä~íçêJq~ëíÉ=ÑçâìëëáÉêí=ä∏ëí=ÇáÉ=iÉÉêí~ëíÉ= çÇÉê=EnterJq~ëíÉ=ÇÉå=häáÅâ=~ìëK==

= _áäÇ=OKNUW=bêÉáÖåáë=łcçâìë=ÉêÜ~äíÉå=ÇÉë=ÉêëíÉå=_ìííçå= wì=àÉÇÉã=píÉìÉêÉäÉãÉåí=â~åå=ÑÉëíÖÉëíÉääí=ïÉêÇÉåI=çÄ=Éáå=kìíòÉê=ÇÉå=cçâìë=~ìÑ= ÇáÉëÉë= píÉìÉêÉäÉãÉåí= ëÉíòíK= aáÉëÉë= bêÉáÖåáë= ÜÉá≈í= ÄÉá= aÉäéÜá= OnEnter= Ó= Éë= áëí= çÑÑÉåëáÅÜíäáÅÜ=ìåíÉê=ÇÉê=iáëíÉ=ÇÉê=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉ=òì=ëìÅÜÉåK== i~ëëÉå=ïáê=ìåë=òìã=_ÉáëéáÉä=ãáííÉäë=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=ãáííÉáäÉåI=ïÉåå=ÇÉê= ÉêëíÉ=_ìííçå=ãáí=ÇÉã=k~ãÉå=Button1=ÇÉå=cçâìë=ÉêÜ®äíK=t~ë=áëí=òì=íìå\== fã=båíïìêÑëãçÇìë=ïáêÇ=Button1=ìåÇ=áå=ÇÉê=oÉÖáëíÉêâ~êíÉ=bobfdkfppb=ÇÉë=lÄàÉâíJ áåëéÉâíçêë=ïáêÇ=Ç~ë=bêÉáÖåáë=OnEnter=~ìëÖÉï®Üäí=E_áäÇ=OKNUFK= báå=açééÉäâäáÅâ=áå=Ç~ë=äÉÉêÉ=ïÉá≈É=cÉäÇI=ìåÇ=ëÅÜçå=ÉêÜ~äíÉå=ïáê=ÇÉå=o~ÜãÉå= ÑΩê=ÇáÉ=ÉåíëéêÉÅÜÉåÇÉ=bêÉáÖåáëéêçòÉÇìêI=ÇÉå=ïáê=ïáÉ=ÄáëÜÉê=åìê=ãáí=ÉáåÉã=^ìÑJ êìÑ=ÇÉê=mêçòÉÇìê=ShowMessage=ÑΩääÉåW== procedure TForm1.Button1Enter(Sender: TObject); begin ShowMessage('Button1 hat den Fokus') end;

få=ÖäÉáÅÜÉê=tÉáëÉ=â∏ååÉå=ïáê=ìåë=å~íΩêäáÅÜ=ãáí=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=òìã=bêJ ÉáÖåáë=OnExit=~ìÅÜ=ë~ÖÉå=ä~ëëÉåI=ïÉåå=Éáå=píÉìÉêÉäÉãÉåí=ÇÉå=cçâìë=îÉêäáÉêíK=pÉJ ÜÉå=ïáê=ìåë=ÄÉáëéáÉäÜ~Ñí=~ìÅÜ=Ç~òì=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=~åK== procedure TForm1.Button2Exit(Sender: TObject); begin ShowMessage('Button 2 verlor den Fokus') end;

PV =

O= lÄàÉâíI=bêÉáÖåáëI=bêÉáÖåáëéêçòÉÇìê= pé®íÉêI=áã=^ÄëÅÜåáíí=QKQI= ïÉêÇÉå=ïáê= ÇÉê~êíáÖÉ=bêÉáÖåáëéêçòÉÇìêÉå=åìíòÉåI= ìã= ÇÉå=kìíòÉê=ÄÉáã=sÉêëìÅÜ=òì=Éêí~ééÉåI=ÉáåÉ=qÉñíÄçñ=òì=îÉêä~ëëÉåI=çÜåÉ=Ç~ëë=Éê= Ç~êáå=ÇáÉ=ÖÉïΩåëÅÜíÉ=^åÖ~ÄÉ=ÉáåÖÉíê~ÖÉå=Ü~íK== aÉåå=ÄÉáã=tÉÅÜëÉä=òì=ÉáåÉã=~åÇÉêÉå=píÉìÉêÉäÉãÉåí=íêáíí=ÖÉê~ÇÉ=Ç~ë=bêÉáÖåáë= cçâìëîÉêäìëí= ÇÉë= qÉñíÑÉåëíÉêë= Éáå= Ó= ìåÇ= Ç~ë= â∏ååÉå= ïáê= åìå= ÄÉÜ~åÇÉäåK= táê= ïÉêÇÉå=Ç~åå=ÇÉå=kìíòÉê=òìã=âçêêÉâíÉå=báåíê~Ö=òïáåÖÉåI=áåÇÉã=ïáê=áÜã=ÉáåÉ= ÉåíëéêÉÅÜÉåÇÉ=jáííÉáäìåÖ=òìâçããÉå=ä~ëëÉå=ìåÇ=Ç~åå=ÇÉå=cçâìë=òìêΩÅâëÉíòÉå>= hçããÉå= ïáê= òìã= pÅÜäìëë= ÇáÉëÉë= ^ÄëÅÜåáííë= åçÅÜ= Éáåã~ä= òìê= oÉáÜÉåÑçäÖÉ= ÇÉê= cçâìëëáÉêìåÖ=òìêΩÅâK= aáÉëÉ= oÉáÜÉåÑçäÖÉ= áëí= ÇÉëÜ~äÄ= ëç= ÄÉÇÉìíë~ãI= ïÉáä= Éë= áããÉê= åçÅÜ= ìåÇ= áããÉê= ïáÉÇÉê=kìíòÉê=ÖáÄíI=ÇáÉ=ãáí=eáäÑÉ=ÇÉê=q~Äìä~íçêí~ëíÉ=îçå=píÉìÉêÉäÉãÉåí=òì=píÉìJ ÉêÉäÉãÉåí=ïÉÅÜëÉäåI=îçê=~ääÉã=Ç~ååI=ïÉåå=Éë=ëáÅÜ=ìã=qÉñíÑÉåëíÉê=Ü~åÇÉäíI=áå= ÇáÉ=Éíï~ë=Éáåòìíê~ÖÉå=áëí=çÇÉê=áå=ÇÉåÉå=báåíê®ÖÉ=òì=îÉê®åÇÉêå=ëáåÇK== aÉåå=ÇáÉëÉ=^êí=ÇÉê=_ÉÇáÉåìåÖ=ÖÉÜí=ïÉëÉåíäáÅÜ=ëÅÜåÉääÉê=~äë=ÇÉê=dêáÑÑ=å~ÅÜ=ÇÉê= j~ìë=ìåÇ=Ç~ë=pìÅÜÉå=ãáí=ÇÉã=j~ìëòÉáÖÉêK== lÑÑÉåÄ~ê= ïÉêÇÉå= ÇáÉ= píÉìÉêÉäÉãÉåíÉ= ~ÄÉê= îçå= aÉäéÜá= ëç= ÑçâìëëáÉêíI= ïáÉ= ëáÉ= ~åÑ~åÖë=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêí=ïìêÇÉåK== a~ë=ÄÉÇÉìíÉíI=Ç~ëë=Ç~ë=òìäÉíòí=ÉáåÖÉÑΩÖíÉ=píÉìÉêÉäÉãÉåí=~ìÅÜ=òìäÉíòí=ÑçâìëëáÉêí= ïáêÇI=ëÉäÄëí=ïÉåå=Éë=çÄÉå=äáåâë=ëíÉÜÉå=ëçääíÉK= jáí= _b^o_bfqbkq^_ri^qloobfebkclidb= ä®ëëí= ëáÅÜ= Ç~ë= àÉÇçÅÜ= éêçÄäÉãäçë= ®åJ ÇÉêåI=ïáÉ=áå=_áäÇ=OKNV=ÉêâÉååÄ~ê=áëíK=

=== _áäÇ=OKNVW=oÉáÜÉåÑçäÖÉ=ÇÉê=cçâìëëáÉêìåÖ=îÉê®åÇÉêå= =

QM= =

==

3

Weitere Steuerelemente k~ÅÜÇÉã= Ç~ë= îçêáÖÉ= h~éáíÉä= ~å= ÇÉå= o~åÇ= ÇÉë= qÜÉçêÉíáëÅÜÉå= â~ã= ãáí= ëÉáåÉå= îáÉäÉå=åÉìÉå=_ÉÖêáÑÑÉåI=ïçääÉå=ïáê=ÉáåÉ=âìêòÉ=ÖÉáëíáÖÉ=oìÜÉé~ìëÉ=ÉáåäÉÖÉåK== ^ÄÉê=ï~ê=Éë=ÇÉåå=ïáêâäáÅÜ=ëç=ëÅÜäáãã\=tÉåå=ÉáåÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=ÉåíïçêÑÉå= ìåÇ=ëÅÜ∏å=ÖÉëí~äíÉí=áëí=â~åå=ÇçÅÜ=ÇáÉ=å®ÅÜëíÉ=^êÄÉáíëÉí~ééÉ=åìê=Ç~êáå=ÄÉëíÉÜÉåI= Ç~ëë= ã~å= ÇáÉ= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ãáí= iÉÄÉå= ÉêÑΩääíK= a~ë= ÜÉá≈íI= Ç~ëë= ã~å= ëáÅÜ= ΩÄÉêäÉÖíI=ÄÉá=ïÉäÅÜÉê=kìíòÉêÉáåïáêâìåÖ=~å=ïÉäÅÜÉã=píÉìÉêÉäÉãÉåí=ïÉäÅÜÉ=oÉ~âJ íáçå=ÉêÑçäÖÉå=ëçääK== aêÉá=cê~ÖÉå=tç=Ó=tçÄÉá=Ó=t~ë=ëçääíÉ=ã~å=ëáÅÜ=ÇÉëÜ~äÄ=áããÉê=ëíÉääÉåW== • tçW=tÉäÅÜÉë=píÉìÉêÉäÉãÉåí=ëçää=ΩÄÉêÜ~ìéí=^ìëÖ~åÖëéìåâí=ÑΩê=ÉáåÉ=oÉ~âíáçå= ëÉáå\=pçää=Éíï~ë=é~ëëáÉêÉåI=ïÉåå=ÇÉê=kìíòÉê=ëáÅÜ=ãáí=ÇÉã=_ìííçå=ÄÉëÅÜ®ÑíáÖí= çÇÉê= ïÉåå= Éê= áã= qÉñíÑÉåëíÉê= ®åÇÉêí= çÇÉê= ïÉåå= Éê= ãáí= ÇÉã= j~ìëòÉáÖÉê= ~ã= pÅÜáÉÄÉêÉÖäÉê=Ü~åíáÉêí=çÇÉê=KKK=çÇÉê=KKK=çÇÉê=\== • tçÄÉáW=tÉäÅÜÉ= kìíòÉêÉáåïáêâìåÖ=ëçää=ÉáåÉ=oÉ~âíáçå=ÜÉêîçêêìÑÉå\=fëí= Éë=Ç~ë= ΩÄäáÅÜÉ=pí~åÇ~êÇJbêÉáÖåáëI=~ìÑ=Ç~ë=ïáê=ÉáåÉ=^åíïçêí=ÑáåÇÉå=ëçääÉåI=ÇÉê=häáÅâI= ÇáÉ=ûåÇÉêìåÖ=Ó=çÇÉê=ïçääÉå=ïáêI=Ç~ëë=ÄÉá=ÉñçíáëÅÜÉå= káÅÜíJpí~åÇ~êÇJbêÉáÖJ åáëëÉå= EòK= _K= j~ìëÄÉïÉÖìåÖI= cçâìëîÉêäìëíI= q~ëíÉ= âçããí= ÜçÅÜF= Éíï~ë= é~ëJ ëáÉêí\= • t~ëW= táÉ= ëçää= ÇáÉ= oÉ~âíáçå= Ç~åå= ~ìëëÉÜÉå\= eáÉê= ëáåÇ= ïáê= Éêëí= ~ã= ^åÑ~åÖI= ÄáëÜÉê=â∏ååÉå=ïáê=~äë=ÉáåòáÖÉ=oÉ~âíáçå=åìê=ÇáÉ= ShowMessageJmêçòÉÇìê=~ìÑêìJ ÑÉåK=aÉã=ï~ë=ïÉêÇÉå=ïáê=åçÅÜ=îáÉäÉ=h~éáíÉä=ïáÇãÉåK= råÇ=ïÉáä=~ìÅÜ=Ç~ë=ÖêìåÇäÉÖÉåÇÉ=cçêãìä~êI=~ìÑ=ÇÉã=ÇáÉ=píÉìÉêÉäÉãÉåíÉ=~åÖÉJ çêÇåÉí=ïÉêÇÉåI=ëÉäÄëí=òìã=^ìëÖ~åÖëéìåâí=ÑΩê=oÉ~âíáçåÉå=ïÉêÇÉå=â~ååI=ãìëëJ íÉå= ïáê= ìåë= îçã= ÉåÖÉå= _ÉÖêáÑÑ= ÇÉë= píÉìÉêÉäÉãÉåíë= ä∏ëÉå= ìåÇ= îáÉäãÉÜê= îçã= ëáÅÜíÄ~êÉå=qÉáä=ÉáåÉë=îáëìÉääÉå=lÄàÉâíë=ëéêÉÅÜÉåK== tÉáíÉê=ÉêÑìÜêÉå=ïáê=Ç~ååI=Ç~ëë=ÇáÉ=ÄÉ~ÄëáÅÜíáÖíÉ=oÉ~âíáçå=ëíÉíë=ÇìêÅÜ=ÇÉå= pí~êí= ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=ÉêÑçäÖíK=bêÉáÖåáëéêçòÉÇìêÉå=ÄÉëíÉÜÉå=~ìë=o~ÜãÉå=ìåÇ=fåJ Ü~äíK=råÇ=ÇÉå=o~ÜãÉå=Ó=aÉäéÜá=ëÉá=a~åâ=Ó=ÄÉâçããÉå=ïáê=áããÉê=ÖÉëÅÜÉåâíK=a~= Äê~ìÅÜíÉå=ïáê=ÇçÅÜ=åìê=åçÅÜ=òì=ÉêÑ~ÜêÉåI=ïáÉ=ã~å=ÇáÉëÉë=dÉëÅÜÉåâ=ÄÉëíÉääíW=báå= açééÉäâäáÅâ=~å=ÇÉê=êáÅÜíáÖÉå=píÉääÉ=êÉáÅÜíK=bÜêäáÅÜI=ï~ê=Ç~ë=ïáêâäáÅÜ=ëç=ëÅÜïÉê\=== kìå= ~ÄÉêI= ïáÉ= ~åÖÉâΩåÇáÖíI= òìã= ÖÉáëíáÖÉå= ^ìëêìÜÉå= Éáå= Ü~åÇïÉêâäáÅÜÉê= báåJ ëÅÜìÄW== táÉ=éä~íòáÉêí=ã~å=iáëíÉå=ìåÇ=jÉåΩë=~ìÑ=ÉáåÉã=cçêãìä~ê=ìåÇ=ëíÉääí=áÜêÉ=pí~êíÉáJ ÖÉåëÅÜ~ÑíÉå=Éáå\== QN =

P= tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ=

3.1

Steuerelement Liste (ListBox) tÉåå= ïáê= ÉáåÉ= E^ìëï~ÜäJFiáëíÉ= EListBoxF= ~ìÑ= Ç~ë= cçêãìä~ê= ÄêáåÖÉå= ïçääÉåI= ãΩëëÉå=ïáê=ÄÉáã=~äíÉå=aÉäéÜá=áã=oÉÖáëíÉêÄä~íí=pq^ka^oa=ÇÉê=hçãéçåÉåíÉåé~J äÉííÉ= ÇáÉ= ÉåíëéêÉÅÜÉåÇÉ= pÅÜ~äíÑä®ÅÜÉ= ~ìëï®ÜäÉå= E_áäÇ= PKNFI= ÄÉá= aÉäéÜá= ULOMMR= ÑáåÇÉå=ïáê=Ç~ë=ÉåíëéêÉÅÜÉåÇÉ=póãÄçä=áå=h~íÉÖçêáÉ=pq^ka^oa=ÇÉê=qççäJm~äÉííÉW===

== _áäÇ=PKNW=pÅÜ~äíÑä®ÅÜÉ=ÑΩê=ÉáåÉ=iáëíÉ=áå=aÉäéÜá=T=ìåÇ=aÉäéÜá=ULOMMR= a~åå=ïáêÇ=Ç~ë=píÉìÉêÉäÉãÉåí=iáëíÉ=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêíX=Éë=ÄÉâçããí=îçå= aÉäéÜá=ÇÉå=k~ãÉå= ListBox1K=aáÉ=dê∏≈É=ïáêÇ=ëç=ÉáåÖÉëíÉääíI=Ç~≈=ÇáÉ=ëé®íÉê=ÖÉJ ïΩåëÅÜíÉ=^åò~Üä=îçå=báåíê®ÖÉå=ëáÅÜíÄ~ê=ëÉáå=ïáêÇK== táÉ=_áäÇ=PKO=ÉêâÉååÉå=ä®ëëíI=ä~ëëÉå= ëáÅÜ=ΩÄÉê=ÇÉå= lÄàÉâíáåëéÉâíçê=ÇÉê=iáëíÉ=çÑJ ÑÉåÄ~ê=ëÉÜê=îáÉäÉ=pí~êíÉáÖÉåëÅÜ~ÑíÉå=îçêÉáåëíÉääÉåK=

= _áäÇ=PKOW=sáëìÉääÉë=lÄàÉâí=Listbox=ìåÇ=lÄàÉâíáåëéÉâíçê=E^ìëëÅÜåáííF= a~òì= ÖÉÜ∏êÉå= å~íΩêäáÅÜ= ÇáÉ= eáåíÉêÖêìåÇÑ~êÄÉ= EColorF= ìåÇ= ÇáÉ= pÅÜêáÑí= EFontFK= açÅÜ=ïáÉ=â∏ååÉå=ïáê=ÉáåÉ=pí~êíÄÉäÉÖìåÖ=ÑΩê=ÇáÉ=^ìëï~ÜääáëíÉ=ÉêÜ~äíÉå\== _áäÇÉê=PKO=ìåÇ=PKP=òÉáÖÉå=ÇÉå=tÉÖW=wìÉêëí=áëí=ÇáÉ=báÖÉåëÅÜ~Ñí= Items=~ìëòìï®ÜJ äÉåI= Ç~åå= ïáêÇ= ãáí= ÇÉê= j~ìë= ~ìÑ= ÇáÉ= ÇêÉá= mìåâíÉ= êÉÅÜíë= åÉÄÉå= ETStringsF= ÖÉJ âäáÅâíK=pÅÜçå=∏ÑÑåÉí=ëáÅÜ=ÇÉê=píêáåÖäáëíÉåJbÇáíçê=E_áäÇ=PKPFI=áå=ÇÉëëÉå=cÉåëíÉê=ÄÉáJ ëéáÉäëïÉáëÉ= ÇáÉ= k~ãÉå= ÇÉê= ëÉÅÜòÉÜå= _ìåÇÉëä®åÇÉê= ÉáåÖÉíê~ÖÉå= ïÉêÇÉå= â∏åJ åÉåK=táÉ=ΩÄäáÅÜI=ïáêÇ=Ç~ÄÉá=ÇÉê=wÉáäÉåïÉÅÜëÉä=ÇìêÅÜ=ÇáÉ=ENTERJq~ëíÉ=îçêÖÉåçãJ ãÉåK= hìêòÉ= _Éëí®íáÖìåÖ= ãáí= OK = I= ìåÇ= ëÅÜçå= Ü~í= ÇáÉ= ^ìëï~ÜääáëíÉ= ÇáÉ= ÖÉJ ïΩåëÅÜíÉ=pí~êíÄÉäÉÖìåÖ=E_áäÇ=PKQFK== QO= =

PKN== píÉìÉêÉäÉãÉåí=iáëíÉ=Eiáëí_çñF= bêëí~ìåäáÅÜI= ~ÄÉê= îçêÉêëí= åáÅÜí= òì= ®åÇÉêåW= aÉê= lÄàÉâíáåëéÉâíçê= ÇÉê= iáëíÉ= ÄáÉíÉí= ìåë= äÉáÇÉê= âÉáåÉ= j∏ÖäáÅÜâÉáí= ~åI= Ç~ÑΩê= òì= ëçêÖÉåI= Ç~ëë= áå= ÇÉê= ^ìëï~ÜääáëíÉ= òì= _ÉÖáåå= ÇÉê= i~ìÑòÉáí= Éáå= ÄÉëíáããíÉë= _ìåÇÉëä~åÇI= òK= _K= p~ÅÜëÉåJ^åÜ~äíI= ÄÉêÉáíë= ~ìëÖÉï®Üäí=áëíK=pÅÜ~ÇÉK=t~êíÉå=ïáê=~ìÑ=ÇÉå=^ÄëÅÜåáíí=QKTKRK=

= _áäÇ=PKPW=píêáåÖäáëíÉåJbÇáíçê= ^ÄÉê=Éíï~ë= ~åÇÉêÉë=ïçääÉå=ïáê=åáÅÜí=îÉêÖÉëëÉåW= pÉáí=^ÄëÅÜåáíí=OKO=ïáëëÉå= ïáêI= Ç~ëë=ÇÉê=açééÉäâäáÅâ=~ìÑ=Éáå=píÉìÉêÉäÉãÉåí=ìåë=ëçÑçêí=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêJ ÉáÖåáëéêçòÉÇìê=òìã=pí~åÇ~êÇJbêÉáÖåáë=äáÉÑÉêíW== procedure TForm1.ListBox1Click(Sender: TObject); begin ShowMessage('Klick in der Listbox') end;

bíï~ë=Éêëí~ìåäáÅÜW=káÅÜí=ÇáÉ=ûåÇÉêìåÖ=ÇÉê=^ìëï~ÜäI=ëçåÇÉêå=ÄÉêÉáíë=ÇÉê=ÉáåÑ~J ÅÜÉ=häáÅâ=ïáêÇ=~äë=pí~åÇ~êÇJbêÉáÖåáë=ÇÉê=iáëíÉ=~åÖÉëÉÜÉåK== §ÄÉêòÉìÖÉå=ïáê=ìåëW=wì=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=áëí=åáÅÜíë=~ìëÖÉï®Üäí=Ó=Ç~ë=â∏ååÉå= ïáê=åçÅÜ=åáÅÜíK=häáÅâÉå=ïáê=p~ÅÜëÉåJ^åÜ~äí=~åW=aáÉ=jÉäÇìåÖ= Klick in der Listbox=âçããíI=ìåÇ=p~ÅÜëÉåJ^åÜ~äí=áëí=ãáí=ÉáåÉã=_~äâÉå=ã~êâáÉêí=E_áäÇ=PKQFK== == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 3= ÇáÉ= zipJa~íÉá= DKap03.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap03= ÇáÉ= mêçàÉâíJa~íÉá= proj_31.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap03=ÇáÉ=a~íÉá=proj_31.bdsproj=~ìëòìï®ÜäÉåK== == QP =

P= tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ= häáÅâÉå= ïáê= åçÅÜ= Éáåã~ä= ~ìÑ= p~ÅÜëÉåJ^åÜ~äíW= táê= ÄÉëí®íáÖÉå= Ç~ãáí= åìê= åçÅÜ= Éáåã~ä= ÇáÉ= ÖÉíêçÑÑÉåÉ= ^ìëï~ÜäI= îÉê®åÇÉêå= åáÅÜíëK= q~íë®ÅÜäáÅÜI= ÇáÉ= jÉäÇìåÖ= Klick in der Listbox=âçããí=ïáÉÇÉêK== a~ë= ÄÉÇÉìíÉíI= Ç~ëë= ïáê= ìåë= ëé®íÉê= ÄÉëçåÇÉêÉ= jΩÜÉ= ÖÉÄÉå= ãΩëëÉåI= ïÉåå= ïáê= åìê=ÑΩê=ÉÅÜíÉ=ûåÇÉêìåÖ=ÇÉê=^ìëï~Üä=ÉáåÉ=oÉ~âíáçå=éêçÖê~ããáÉêÉå=ïçääÉåK=

== _áäÇ=PKQW=^ìëï~ÜääáëíÉ=å~ÅÜ=häáÅâ=~ìÑ=łp~ÅÜëÉåJ^åÜ~äí== §ÄêáÖÉåë=ÄÉÑáåÇÉí=ëáÅÜ=~ìÅÜ=ìåíÉê=ÇÉå=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉå=ÇÉë=îáëìÉääÉå= lÄàÉâíë= ListBox1= âÉáå= OnChangeK= kÉÜãÉå= ïáê= ã~ä= ~åI= Ç~ëë= ÇáÉ= pÅÜ∏éÑÉê= îçå= aÉäéÜá=ëáÅÜ=Ç~ÄÉá=ëÅÜçå=Éíï~ë=ÖÉÇ~ÅÜí=Ü~ÄÉå=ïÉêÇÉåKKK=

3.2

Steuerelement Combobox tÉåå= ïáê= ÉáåÉ= ÉÇáíáÉêÄ~êÉ= ^ìëï~ÜääáëíÉ= EComboBoxF= ~ìÑ= Ç~ë= cçêãìä~ê= ÄêáåÖÉå= ïçääÉåI=ãΩëëÉå=ïáê=ÄÉá=aÉäéÜá=T=áã=oÉÖáëíÉêÄä~íí=pq^ka^oa=ÇÉê=hçãéçåÉåíÉåJ é~äÉííÉ=ÄòïK=ÄÉá=aÉäéÜá=ULOMMR=áå=ÖäÉáÅÜå~ãáÖÉå=h~íÉÖçêáÉ=pq^ka^oa=ÇÉê=qççäJ m~äÉííÉ=ÇáÉ=ÉåíëéêÉÅÜÉåÇÉ=pÅÜ~äíÑä®ÅÜÉ=~ìëï®ÜäÉå=E_áäÇ=PKRFK=

== _áäÇ=PKRW=pÅÜ~äíÑä®ÅÜÉ=ÑΩê=ÉáåÉ=ÉÇáíáÉêÄ~êÉ=^ìëï~ÜääáëíÉ=E`çãÄç_çñF===== aáÉëÉë= píÉìÉêÉäÉãÉåí= âçãÄáåáÉêí= ÉáåÉ= ÉáåÑ~ÅÜÉ= ^ìëï~ÜääáëíÉ= ãáí= ÉáåÉã= qÉñíJ ÑÉåëíÉêK= aáÉ= ÄÉáÇÉå= ïáÅÜíáÖëíÉå= pí~êíÉáÖÉåëÅÜ~ÑíÉåI= ÇáÉ= ÜáÉê= îçê~Ä= ÉáåÖÉëíÉääí= ïÉêÇÉå=â∏ååÉåI=ëáåÇ=áå=_áäÇ=PKS=~åÖÉÖÉÄÉåK=

= _áäÇ=PKSW=sçê~ìëï~Üä=ÇÉë=ÉêëíÉå=^åòÉáÖÉíÉñíÉë=ìåÇ=ÇÉê=i®åÖÉ== QQ= =

PKO== píÉìÉêÉäÉãÉåí=`çãÄçÄçñ= jáí=ÇÉê=báÖÉåëÅÜ~Ñí=Text=ïáêÇ=ÇáÉ=pí~êíÄÉëÅÜêáÑíìåÖ=ÑÉëíÖÉäÉÖíI=ìåÇ=ÇáÉ=báÖÉåëÅÜ~Ñí= DropDownCount=ëíÉìÉêíI=ïáÉ=îáÉäÉ=wÉáäÉå=ëé®íÉê= ~ìÑÖÉÄä®ííÉêí=ïÉêÇÉåK=táÉ= ÄÉá= ÇÉê= ÉáåÑ~ÅÜÉå= ^ìëï~ÜääáëíÉ= ïáêÇ= ÇáÉ= pí~êíÄÉäÉÖìåÖ= ÇÉê= iáëíÉ= ΩÄÉê= ÇáÉ= báÖÉåëÅÜ~Ñí= Items=ìåÇ=Ç~åå=ãáí=ÇÉã=píêáåÖäáëíÉåJbÇáíçê=îçêÖÉÖÉÄÉåK== == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 3= ÇáÉ= zipJa~íÉá= DKap03.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap03= ÇáÉ= mêçàÉâíJa~íÉá= proj_32.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap03=ÇáÉ=a~íÉá=proj_32.bdsproj=~ìëòìï®ÜäÉåK== == _áäÇ=PKT=òÉáÖí=Ç~ë=píÉìÉêÉäÉãÉåíI=Ç~ë=îçå=aÉäéÜá=ÇÉå=k~ãÉå= ComboBox1=ÄÉâ~ãI= òì=i~ìÑòÉáíÄÉÖáåå=ìåÇ=~åëÅÜäáÉ≈ÉåÇ=å~ÅÜ=^ìëï~Üä=ÉáåÉë=~åÇÉêÉå=báåíê~ÖëK==

== _áäÇ=PKTW=píÉìÉêÉäÉãÉåí=ComboBox=òìê=i~ìÑòÉáí= i~ëëÉå= ïáê= ìåë= ~ìÅÜ= ÜáÉê= ΩÄÉêê~ëÅÜÉåI= ïÉäÅÜÉ= ^êí= ÇÉê= kìíòÉêÉáåïáêâìåÖ= ÇáÉ= pÅÜ∏éÑÉê=îçå=aÉäéÜá=ÜáÉê=~äë=pí~åÇ~êÇJbêÉáÖåáë=~åëÉÜÉåK== báå=açééÉäâäáÅâ=áã=båíïìêÑ=~ìÑ=Ç~ë=píÉìÉêÉäÉãÉåíI=ìåÇ=ëÅÜçå=ëÉÜÉå=ïáê=ÉëW== procedure TForm1.ComboBox1Change(Sender: TObject); begin ShowMessage('Es wird irgendwas geändert') end;

aáÉëã~ä=ïìêÇÉ=í~íë®ÅÜäáÅÜ=Ç~ë=bêÉáÖåáë=ûåÇÉêìåÖ=EChangeF=òìã=pí~åÇ~êÇJbêÉáÖåáë= ÉêÜçÄÉåX=ÇáÉ=jÉäÇìåÖ=bë=ïáêÇ=áêÖÉåÇï~ë=ÖÉ®åÇÉêí=âçããí=ëçÖ~ê=òïÉáã~äW=tÉåå= ÇÉê= kìíòÉê= ÇáÉ= iáëíÉ= ~ìÑÄä®ííÉêí= ìåÇ= Éáå= ~åÇÉêÉë= i~åÇ= ï®ÜäíX= ëáÉ= ÉêëÅÜÉáåí= ~ÄÉê= ~ìÅÜI=ïÉåå=ÇÉê=kìíòÉê=ÇÉå=k~ãÉå=ÇÉë=~åÖÉòÉáÖíÉå=i~åÇÉë=îÉê®åÇÉêå=ïáääK== QR =

P= tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ=

3.3

Steuerelement Radiogruppe (RadioGroup) bêáååÉêå= ïáê= ìåë= ~å= ÇÉå= ^ÄëÅÜåáíí= NKQKPI= áå= ÇÉã=ÇáÉëÉ= ÜΩÄëÅÜÉå= âäÉáåÉå= êìåJ ÇÉå= ÉñâäìëáîÉå= g~JkÉáåJléíáçåÉåI= ÇáÉ= o~ÇáçÄìííçåëI= îçêÖÉëíÉääí= ïìêÇÉåK= báåÉå= o~ÇáçÄìííçå= â~åå= ã~å= ëíÉíë= åìê= ÉáåëÅÜ~äíÉåI= ëÉáåÉ= _ÉäÉÖìåÖ= îÉêäáÉêí= Éê= ~ìíçJ ã~íáëÅÜI=ïÉåå=Éáå=~åÇÉêÉê=o~ÇáçÄìííçå=ÇÉêëÉäÄÉå=dêìééÉ=ÉáåÖÉëÅÜ~äíÉí=ïáêÇK== aáÉ=dêìééÉåÄáäÇìåÖ=áëí=ÇÉãå~ÅÜ=òïáåÖÉåÇ=åçíïÉåÇáÖI=ïÉåå=ã~åI=ïáÉ=áå=_áäÇ= PKU=òì=ëÉÜÉåI=îÉêëÅÜáÉÇÉå=báÖÉåëÅÜ~ÑíÉå=~ÄÑê~ÖÉå=ä~ëëÉå=ïáääK=

== _áäÇ=PKUW=dêìééáÉêìåÖ=îçå=o~ÇáçÄìííçåë== lÜåÉ= dêìééÉåÄáäÇìåÖ= â∏ååíÉ= ëíÉíë= åìê= Éáå= ÉáåòáÖÉê= îçå= ÇáÉëÉå= ~ÅÜí= o~ÇáçJ Äìííçåë=ÉáåÉ=j~êâáÉêìåÖ=ÄÉëáíòÉåK=aáÉ=sÉêïÉåÇìåÖ=ÇÉë=píÉìÉêÉäÉãÉåíë=dêìééÉ== EGroupBoxF= áëí= ÉáåÉ= i∏ëìåÖ= ÇÉë= mêçÄäÉãëK= ^ÄÉê= Éë= áëí= òì= ÄÉ~ÅÜíÉåW= qêçíò= ÇÉê= dêìééáÉêìåÖ=ÄÉÜ®äí=àÉÇÉê=o~ÇáçÄìííçå=ëÉáåÉå=ÉáÖÉåÉå=k~ãÉåK== tÉåå= ã~å= ÄÉáëéáÉäëïÉáëÉ= ïáëëÉå= ïáääI= ï~ë= ÇÉê= kìíòÉê= ÖÉê~ÇÉ= ~ìëÖÉï®Üäí= Ü~í= ãìëë= ã~å= ÜáÉê= ~ÅÜí= bêÉáÖåáëéêçòÉÇìêÉå= ëÅÜêÉáÄÉåW= cΩê= ÇáÉ= fåÑçêã~íáçå= ΩÄÉê= Ç~ë=pí~åÇ~êÇJbêÉáÖåáë=~ã=o~ÇáçÄìííçå=ãáí=ÇÉê=_ÉëÅÜêáÑíìåÖ= unter 70 kg=ãΩëëJ íÉå=ïáê=ëÅÜêÉáÄÉå== procedure TForm1.RadioButton1Click(Sender: TObject); begin ShowMessage('1. Gruppe, oben, wurde ausgewählt') end;

ìåÇ=ëç=ïÉáíÉê=Äáë== procedure TForm1.RadioButton8Click(Sender: TObject); begin ShowMessage('3. Gruppe, unten, wurde ausgewählt') end;

açÅÜ=Éë=ÖÉÜí=~ìÅÜ=ÉáåÑ~ÅÜÉêK=a~ÑΩê=ëíÉääí=aÉäéÜá=Ç~ë=îáëìÉääÉ=lÄàÉâí=o~ÇáçÖêìéJ éÉ=ERadioGroupF=òìê=sÉêÑΩÖìåÖK=

== _áäÇ=PKVW=pÅÜ~äíÑä®ÅÜÉ=ÑΩê=ÉáåÉ=o~ÇáçÖêìééÉ=EaÉäéÜá=ÄòïK=aÉäéÜá=ULEOMMRF= QS= =

PKP== píÉìÉêÉäÉãÉåí=o~ÇáçÖêìééÉ=Eo~ÇáçdêçìéF= _Éá= ÇÉê= mä~íòáÉêìåÖ= ÇÉê= ÇêÉá= píÉìÉêÉäÉãÉåíÉ= ÇÉê= ^êí= o~ÇáçÖêìééÉ= ëáÉÜí= Éë= ~åJ Ñ~åÖë=ëç=~ìëI=~äë=çÄ=åìê=ÇêÉá=ÉáåÑ~ÅÜÉ=dêìééÉå=~ìÑ=Ç~ë=cçêãìä~ê=ÖÉòçÖÉå=ïçêJ ÇÉå=ëáåÇ=E_áäÇ=PKNMFK=

= _áäÇ=PKNMW=mä~íòáÉêìåÖ=îçå=o~ÇáçÖêìééÉå==== fã= lÄàÉâíáåëéÉâíçê= â∏ååÉå= òìÉêëí= ÇáÉ= ΩÄäáÅÜÉå= báÖÉåëÅÜ~ÑíÉå= îçêÉáåÖÉëíÉääí= ïÉêÇÉåW=jáí=ÇÉê=báÖÉåëÅÜ~Ñí= Caption=ïáêÇ=ÑΩê=àÉÇÉ=o~ÇáçÖêìééÉ=ÇáÉ=dêìééÉåÄÉJ ëÅÜêáÑíìåÖ=ÑÉëíÖÉäÉÖíI=ãáí=ÇÉê=báÖÉåëÅÜ~Ñí=Color=ÇáÉ=eáåíÉêÖêìåÇÑ~êÄÉK== _Éíê~ÅÜíÉå=ïáê=ÇáÉ=jÉåÖÉ=ÇÉê=báÖÉåëÅÜ~ÑíÉå=ÖÉå~ìÉê=E_áäÇ=PKNNFI=ÑáåÇÉå=ïáê=ÇáÉ= ~ìë=ÇÉå=ÄÉáÇÉå=îçêáÖÉå=^ÄëÅÜåáííÉå=ÄÉâ~ååíÉ=ÇáÉ=báÖÉåëÅÜ~Ñí= ItemsI=ìåÇ=êÉÅÜíë= Ç~åÉÄÉå=ëíÉÜí=ïáÉÇÉê=ETStringsF=ãáí=ÇÉå=ÄÉâ~ååíÉå=ÇêÉá=mìåâíÉåK==

= _áäÇ=PKNNW=báåíê®ÖÉ=ãáí=ÇÉã=píêáåÖäáëíÉåJbÇáíçê=~ìëï®ÜäÉå= aÉëÜ~äÄ=ïÉêÇÉå=Ó=Ö~åò=~åÇÉêë=~äë=îçêÜáå=Ó=âÉáåÉ=ÉáÖÉåëí®åÇáÖÉå=o~ÇáçÄìííçåë= áå= ÇÉå= o~ÜãÉå= ÉáåÖÉÑΩÖíI= ëçåÇÉêå= ÇáÉ= o~ÇáçÖêìééÉ= ÉêÜ®äí= ÉáåÉ= áåíÉêåÉ= iáëíÉK= oÉáå=®ì≈ÉêäáÅÜ=Ç~ëëÉäÄÉI=~ÄÉê=áåíÉêå=ÉáåÉ=~åÇÉêÉ=^êÄÉáíëïÉáëÉW=kìå=â~åå=ã~å= bêÉáÖåáëëÉ=~å=ÇÉå=ÉáåòÉäåÉå=o~ÇáçÄìííçå=áå=ÉáåÉê=o~ÇáçÖêìééÉ=åáÅÜí=ãÉÜê=ÄÉJ Ü~åÇÉäåI=ëçåÇÉêå=åìê=Ç~ë=dêìééÉåJpí~åÇ~êÇJbêÉáÖåáëW== procedure TForm1.RadioGroup1Click(Sender: TObject); begin ShowMessage('Innerhalb dieser Gruppe wurde irgendwie geklickt') end;

a~ë=áëí=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=pí~åÇ~êÇJbêÉáÖåáëK=få=^ÄëÅÜåáíí=QKTKN=ïÉêÇÉå= ïáê=âÉååÉå=äÉêåÉåI=ïáÉ=ã~å=ÉêÑ®ÜêíI=ïÉäÅÜÉ=wÉáäÉ=~ìëÖÉï®Üäí=ïìêÇÉK== QT =

P= tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ= §ÄêáÖÉåë= ëíÉääí= ÜáÉê= ÇÉê= lÄàÉâíáåëéÉâíçê= ãáí= ÇÉê= báÖÉåëÅÜ~Ñí= ItemIndex= Eáå= _áäÇ= PKNN= Öìí= òì= ëÉÜÉåF= ÇáÉ= j∏ÖäáÅÜâÉáí= ÄÉêÉáíI= Ç~ÑΩê= òì= ëçêÖÉåI= Ç~ëë= ÄÉêÉáíë= ÄÉáã= _ÉÖáåå=ÇÉê=i~ìÑòÉáí=Éáå=ÄÉëíáããíÉê=báåíê~Ö=ÇÉê=dêìééÉ=~ìëÖÉï®Üäí=áëíK== == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 3= ÇáÉ= zipJa~íÉá= DKap03.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap03= ÇáÉ= mêçàÉâíJa~íÉá= proj_33.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap03=ÇáÉ=a~íÉá=proj_33.bdsproj=~ìëòìï®ÜäÉåK== == a~ÄÉá=áëí=~ÄÉê=ìåÄÉÇáåÖí=òì=ÄÉ~ÅÜíÉåI=Ç~ëë=ÄÉá=ÇÉå=îáëìÉääÉå=aÉäéÜáJlÄàÉâíÉå= ÇáÉ=w®ÜäìåÖ=áããÉê=ãáí=kìää=ÄÉÖáååíW=pçää=ÄÉáëéáÉäëïÉáëÉ=áå=ÇÉê=dêìééÉ=dÉïáÅÜí= ÇáÉ=wÉáäÉ=ìåíÉê=TM=âÖ=ÄÉáã=pí~êí=ÇÉê=i~ìÑòÉáí=ÄÉêÉáíë=~ìëÖÉï®Üäí=ëÉáåI=áëí=ÇáÉ=báJ ÖÉåëÅÜ~Ñí= ItemIndex= áã= lÄàÉâíáåëéÉâíçê= ~ìÑ= kìää= òì= ëÉíòÉå= E_áäÇ= PKNOFK= pçääíÉ= Ç~ÖÉÖÉå= ÇáÉ= ìåíÉêëíÉ= wÉáäÉ= ãáí= ÇÉê= _ÉëÅÜêáÑíìåÖ= ΩÄÉê= NMM= âÖ= òì= _ÉÖáåå= ÇÉê= i~ìÑòÉáí= ~ìëÖÉï®Üäí= ëÉáåI= ï®êÉ= ÇáÉ= báÖÉåëÅÜ~Ñí= ItemIndex= áã= lÄàÉâíáåëéÉâíçê= ~ìÑ=wïÉá=òì=ëÉíòÉå>==

= _áäÇ=PKNOW=sçê~ìëï~Üä=ÇÉê=pí~êíÄÉäÉÖìåÖ=

3.4

Steuerelement Menü (MainMenu) aÉåâÉå=ïáê=ÉáåÑ~ÅÜ=~å=Ç~ë=ÖìíÉ=~äíÉ=táåÇçïëW=báåÉ=çêÇÉåíäáÅÜÉ=_ÉåìíòÉêçÄÉêJ Ñä®ÅÜÉ=âçããí=ÜÉìíòìí~ÖÉ=çÜåÉ=Éáå=jÉåΩ=åáÅÜí=ãÉÜê=~ìëK=aáÉ=kìíòÉê=ëáåÇ=Ç~J ê~å= ÖÉï∏ÜåíX= aÉäéÜá= ÄáÉíÉí= ìåë= å~íΩêäáÅÜ= ~ìÅÜ= áã= oÉÖáëíÉêÄä~íí= pq^ka^oa= ÇÉê= hçãéçåÉåíÉåé~äÉííÉ= ÄòïK= aÉäéÜá= ULOMMR= áå= ÇÉê= ÖäÉáÅÜå~ãáÖÉå= h~íÉÖçêáÉ= ÇÉê= qççäJm~äÉííÉ=ÇáÉ=ÉåíëéêÉÅÜÉåÇÉ=pÅÜ~äíÑä®ÅÜÉ=~åK==

= _áäÇ=PKNPW=pÅÜ~äíÑä®ÅÜÉ=ÑΩê=Ç~ë=píÉìÉêÉäÉãÉåí=Ee~ìéíJFjÉåΩ= QU= =

PKQ== píÉìÉêÉäÉãÉåí=jÉåΩ=Ej~áåjÉåìF= dÉÜÉå=ïáê=ÇáÉëã~ä=îçã=wáÉä=~ìëW=táê=ã∏ÅÜíÉå=ÖÉêå=ìåëÉêÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ÇìêÅÜ=ÉáåÉ=jÉåΩäÉáëíÉ=ãáí=ëç=ÖÉå~ååíÉå=aêçéaçïåJjÉåΩë=~ííê~âíáîÉê=ÖÉëí~äíÉå= EëáÉÜÉ=_áäÇ=PKNQFK== hÉáå=mêçÄäÉãI=Éáåã~ä=ÖÉΩÄíI=ìåÇ=ëÅÜçå=â~åå=ã~å=íçääÉ=jÉåΩë=ÜÉêëíÉääÉåW==

= _áäÇ=PKNQW=cçêãìä~ê=ãáí=jÉåΩ= pÅÜêáíí=NW=aáÉ=pÅÜ~äíÑä®ÅÜÉ=ÑΩê=Ç~ë=píÉìÉêÉäÉãÉåí=ïáêÇ=~ìÑ=Ç~ë=cçêãìä~ê=ÖÉòçÖÉå= EïáÉ=òK=_K=áã=_áäÇ=PKNR=Ó=ëáÉ=îÉêëÅÜïáåÇÉí=ëçïáÉëç=òìê=i~ìÑòÉáíFK==

== _áäÇ=PKNRW=a~ë=jÉåΩJpóãÄçä=ïáêÇ=ÄÉäáÉÄáÖ=éä~íòáÉêí= pÅÜêáíí=OW=fã=oÉÖáëíÉêÄä~íí=bfdbkp`e^cqbk=ÇÉë=òìÖÉÜ∏êáÖÉå=lÄàÉâíáåëéÉâíçêë=ïáêÇ= ~åëÅÜäáÉ≈ÉåÇ=ÇáÉ=báÖÉåëÅÜ~Ñí=Items=~ìëÖÉï®Üäí=E_áäÇ=PKNSFK=

== _áäÇ=PKNSW=báÖÉåëÅÜ~Ñí=Items== pÅÜêáíí=PW=aÉê=häáÅâ=~ìÑ=ÇáÉ=ÇêÉá=mìåâíÉ=åÉÄÉå= (Menü)=∏ÑÑåÉí=ÇÉå=jÉåΩJbÇáíçêK= däÉáÅÜòÉáíáÖ=®åÇÉêí=ëáÅÜ=Ç~ë=oÉÖáëíÉêÄä~íí=bfdbkp`e^cqbk=áã=lÄàÉâíJfåëéÉâíçêX=Éë= ÉêëÅÜÉáåí=Éáå=äÉÉêÉë=ïÉá≈Éë=cÉäÇ=åÉÄÉå=CaptionK= pÅÜêáíí= QW= få= ÇáÉëÉë= äÉÉêÉI= ïÉá≈É= cÉäÇ= ïáêÇ= ÇáÉ= §ÄÉêëÅÜêáÑí= ÑΩê= Ç~ë= ÉêëíÉ= jÉåΩ= ÉáåÖÉíê~ÖÉå=ìåÇ=ãáí=Enter=ÄÉëí®íáÖíK=páÉ=ÉêëÅÜÉáåí=~å=ÇÉê=êáÅÜíáÖÉå=píÉääÉK== däÉáÅÜòÉáíáÖ= ÉêëÅÜÉáåí= êÉÅÜíë= Ç~åÉÄÉå= Éáå= åÉìÉëI= äÉÉêÉë= cÉäÇ= ÑΩê= ÇÉå= å®ÅÜëíÉå= báåíê~Ö=ÇÉê=jÉåΩäÉáëíÉ=E_áäÇ=PKNUFK== QV =

P= tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ= pÅÜêáíí= RW= báå= j~ìëâäáÅâ= áå= Ç~ë= äÉÉêÉ= cÉäÇ= êÉÅÜíë= åÉÄÉå= łbìêçé~I= ëÅÜçå= ïáêÇ= Ç~ë= cÉäÇ= åÉÄÉå= ÇÉê= báÖÉåëÅÜ~Ñí= Caption= ïáÉÇÉê= äÉÉêI= ìåÇ= Éë= â~åå= ÇáÉ= å®ÅÜëíÉ= _ÉëÅÜêáÑíìåÖ=ÇÉê=jÉåΩäÉáëíÉ=ÉáåÖÉíê~ÖÉå=ïÉêÇÉå=E_áäÇ=PKNVFK==

== _áäÇ=PKNTW=jÉåΩJbÇáíçê=

== _áäÇ=PKNUW=^ìÑÄ~ì=ÇÉê=jÉåΩòÉáäÉ==

== _áäÇ=PKNVW=^ìÑÄ~ì=ÇÉë=ÉêëíÉå=jÉåΩë=

== _áäÇ=PKOMW=bêÖ®åòìåÖ=áã=ÉêëíÉå=aêçéaçïåJjÉåΩ= pÅÜêáíí= SW= tÉåå= ÇáÉ= çÄÉêÉ= jÉåΩäÉáëíÉ= ÑÉêíáÖ= áëí= ÄÉÖáååí= ÇÉê= ^ìÑÄ~ì= ÇÉê= ëç= ÖÉJ å~ååíÉå=aêçéaçïåJjÉåΩëI=Ç~ë=ëáåÇ=ÇáÉ=báåíê®ÖÉI=ÇáÉ=å~ÅÜ=ìåíÉå=~ìÑÖÉÄä®ííÉêí= ïÉêÇÉåK== pçää=ìåíÉê= Europa=Éáå=ëçäÅÜÉë=jÉåΩ=~ìÑÖÉÄ~ìí=ïÉêÇÉå=Äê~ìÅÜí=ã~å=Ç~òì=äÉÇáÖJ äáÅÜ=ãáí=ÇÉê=j~ìë=~ìÑ=ÇáÉ=_ÉëÅÜêáÑíìåÖ= Europa=òì=âäáÅâÉåK=_áäÇ=PKNV=òÉáÖíI=Ç~ëë= Éáå=äÉÉêÉê=o~ÜãÉå=ÑΩê=ÇáÉ=Ç~êìåíÉê=Éáåòìíê~ÖÉåÇÉ=_ÉëÅÜêáÑíìåÖ=ÉêëÅÜÉáåíK== tÉåå=Éê=ïáêÇ=~ìëÖÉï®Üäí=ìåÇ= Frankreich=ÉáåÖÉíê~ÖÉå=ïáêÇI=ÉêëÅÜÉáåí=Ç~êìåíÉê= ïáÉÇÉê=Éáå=äÉÉêÉê=o~ÜãÉå=ÑΩê=Finnland=E_áäÇ=PKOMFI=ìåÇ=ëç=ïÉáíÉêK== RM= =

PKQ== píÉìÉêÉäÉãÉåí=jÉåΩ=Ej~áåjÉåìF= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 3= ÇáÉ= zipJa~íÉá= DKap03.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap03= ÇáÉ= mêçàÉâíJa~íÉá= proj_34.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap03=ÇáÉ=a~íÉá=proj_34.bdsproj=~ìëòìï®ÜäÉåK== == a~åå=â~åå=Afrika=å~ÅÜ=ìåíÉå=ÉêÖ®åòí=ïÉêÇÉåI=~åëÅÜäáÉ≈ÉåÇ=AsienI=Amerika=ìåÇ= AustralienK===== cΩê=ïÉäÅÜÉ=kìíòÉêÉáåïáêâìåÖ=ëçääíÉå=ïáê=oÉ~âíáçåÉå=éêçÖê~ããáÉêÉå\== bêëáÅÜíäáÅÜ=áëíI=Ç~ëë=Éáå=kìíòÉêâäáÅâ= ~ìÑ= EuropaI= Afrika=ìëïKI=ÇK=ÜK=~ìÑ=ÉáåÉ= _ÉJ ëÅÜêáÑíìåÖ= ÇÉê= çÄÉêÉåI= ëáÅÜíÄ~êÉå= jÉåΩäÉáëíÉI= äÉÇáÖäáÅÜ= Ç~ë= ^ìÑÄä®ííÉêå= ÇÉë= àÉJ ïÉáäáÖÉå= jÉåΩë= òìê= cçäÖÉ= Ü~ÄÉå= ãìëë= Ó= Ç~ë= ~ÄÉê= ÉêäÉÇáÖí= aÉäéÜá= ëÅÜçå= ÑΩê= ìåëK== tÉåå=ïáê=ΩÄÉêÜ~ìéí=bêÉáÖåáëéêçòÉÇìêÉå=ÜÉêëíÉääÉå=ãΩëëÉåI=Ç~åå=ÑΩê=ÇÉå=häáÅâ= ~ìÑ=ÉáåÉå=ÇÉê=~ìÑÖÉÄä®ííÉêíÉå=báåíê®ÖÉ=áå=ÉáåÉã=aêçéaçïåJjÉåΩK=aáÉëÉê=kìíJ òÉêâäáÅâ=ïáêÇ=ãáí=páÅÜÉêÜÉáí=~äë=pí~åÇ~êÇJbêÉáÖåáë=ÉáåÖÉëíÉääí=ëÉáåK= mêçÄáÉêÉå= ïáê= Éë= ~ìëI= âäáÅâÉå= ïáê= áã= båíïìêÑ= ÇçééÉäí= ~ìÑ= FrankreichK= pÅÜçå= ÄÉâçããÉå=ïáê=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=òìÖÉÜ∏êáÖÉ=bêÉáÖåáëéêçòÉÇìê=ÖÉëÅÜÉåâíW== procedure TForm1.Frankreich1Click(Sender: TObject); begin ShowMessage('Der Nutzer hat >Frankreich< ausgewählt’) end;

t~ë=ÑÉÜäí=åçÅÜ\=k~íΩêäáÅÜ=Ó=ÇáÉ=pÅÜåÉääï~ÜäÄìÅÜëí~ÄÉå=ÑÉÜäÉåK== t®ÜäÉå= ïáê= ÉáåÑ~ÅÜ=åçÅÜ=Éáåã~ä=Ç~ë= póãÄçä= ÑΩê=Ç~ë= jÉåΩ= ~ìÑ=ÇÉã=cçêãìä~ê= ìåÇ= åçÅÜ= Éáåã~ä= ÇÉå= jÉåΩJbÇáíçêK= a~åå= ®åÇÉêå= ïáê= ÇáÉ= _ÉëÅÜêáÑíìåÖÉå= ÇÉê= jÉåΩòÉáäÉ=áå=ÑçäÖÉåÇÉê=tÉáëÉ=~ÄW== Europa

 &Europa,

Afrika

 A&frika,

Asien

 A&sien,

Amerika

 A&merika

Australien  A&ustralien.

a~ãáí=ëáåÇ=ÇáÉ=pÅÜåÉääï~ÜäÄìÅÜëí~ÄÉå=ÑÉëíÖÉäÉÖí=EëáÉÜÉ=_áäÇ=PKONFK== jáí=ÇÉê=ΩÄäáÅÜÉå=q~ëíÉåâçãÄáå~íáçå= Alt =H=pÅÜåÉääï~ÜäÄìÅÜëí~ÄÉ=â∏ååÉå=ÇáÉ= jÉåΩë=Ç~åå=ÇáêÉâí=ìåÇ=ëÅÜåÉää=~åÖÉï®Üäí=ìåÇ=~ìÑÖÉÄä®ííÉêí=ïÉêÇÉåK=

RN =

P= tÉáíÉêÉ=píÉìÉêÉäÉãÉåíÉ=

== _áäÇ=PKONW=pÅÜåÉääï~ÜäÄìÅÜëí~ÄÉå= =

RO= =

==

4

Ereignisprozeduren: Verwendung von properties kìå=áëí=ÇáÉ=wÉáí=êÉáÑK=i~åÖë~ã=ïáêÇ=Éë=ä~åÖïÉáäáÖI=áããÉê=åìê=~äë=fåÜ~äí=ÉáåÉê=bêJ ÉáÖåáëéêçòÉÇìê=ÇáÉ=wÉáäÉ== ShowMessage(‘dies oder das ist passiert‘)

òì= éêçÖê~ããáÉêÉåK= fëí= Ç~ë= ΩÄÉêÜ~ìéí= ëÅÜçå= êáÅÜíáÖÉë= łmêçÖê~ããáÉêÉå\= lÇÉê= ãΩëëÉå=ïáê=ÄÉáã=êáÅÜíáÖÉå=mêçÖê~ããáÉêÉå=ãÉÜê=ÇÉåâÉå\=táê=ïÉêÇÉå=ëÉÜÉåK= aáÉ= ^åÑ~åÖëëÅÜïáÉêáÖâÉáíÉå= ÄÉáã= rãÖ~åÖ= ãáí= aÉäéÜá= Ü~ÄÉå= ïáê= ëçìîÉê®å= ΩJ ÄÉêïìåÇÉåK=táê=â∏ååÉå=ÇáÉ=ÉáåÑ~ÅÜÉå=píÉìÉêÉäÉãÉåíÉ=_ìííçåI=i~ÄÉäI=qÉñíÑÉåëJ íÉêI=`ÜÉÅâÄçñI=pÅêçääÄ~êI=dêìééÉ=ãáí=o~ÇáçÄìííçåë=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêÉå= ìåÇ=áã=lÄàÉâíáåëéÉâíçê=àÉïÉáäë=îçêÉáåëíÉääÉåI=ïÉäÅÜÉ=pí~êíÉáÖÉåëÅÜ~ÑíÉå=ëáÉ=ìåÇ= Ç~ë=cçêãìä~ê=Ü~ÄÉå=ëçääÉåK== táê= â∏ååÉå= ~ìÅÜ= ÇáÉ= ~åëéêìÅÜëîçääÉêÉå= píÉìÉêÉäÉãÉåíÉ= iáëíÉI= `çãÄçÄçñI= o~J ÇáçÖêìééÉ=ìåÇ=ëçÖ~ê=Éáå=jÉåΩ=áå=ìåëÉêÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=~ìÑåÉÜãÉåK= báÖÉåíäáÅÜ=ïáëëÉå=ïáê=~ìÅÜ=ëÅÜçåI=ïáÉ=ïáê=ÑΩê=~ääÉëI=ï~ë=Éáå=kìíòÉê=ëç=íìå=ìåÇ= ã~ÅÜÉå=â~ååI=ÉáåÉ=oÉ~âíáçå=ÉêòÉìÖÉå=â∏ååÉåW=aÉê=o~ÜãÉå=ÑΩê=ÇáÉ=é~ëëÉåÇÉ= bêÉáÖåáëéêçòÉÇìê=áëí=òì=ÄÉëÅÜ~ÑÑÉåI=ÇÉê=fåÜ~äí=áëí=òì=ëÅÜêÉáÄÉåK=cÉêíáÖK== açÅÜ=Ç~=ëáåÇ=ïáê=ïáÉÇÉê=ÄÉáã= fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìêÉåK=a~ë=ïáêÇ=ìåëÉê= qÜÉã~=ïÉêÇÉåK=_ÉÖáååÉå=ïáê=ÉêåÉìí=ãáí=ÇÉå=_áäÇÉêå=~ìë=ÇÉã=h~éáíÉä=OK==

4.1

Einfache Mitteilungen báåÉ=bêÉáÖåáëéêçòÉÇìê=â~åå=áã=ÉáåÑ~ÅÜëíÉå=c~ää=äÉÇáÖäáÅÜ=Éáå= jáííÉáäìåÖëÑÉåëíÉê= ~ìÑ=ÇÉã=_áäÇëÅÜáêã=ÉêëÅÜÉáåÉå=ä~ëëÉåK=a~ë=Ü~ÄÉå=ïáê=ÄáëÜÉê=~ìëÑΩÜêäáÅÜ=ÉêäÉÄíK== _áäÇ= QKN= ä®ëëí= Ç~ë= ~ìÅÜ= ÉêâÉååÉåW= aáÉëÉ= bêÉáÖåáëéêçòÉÇìêÉå= ÜçäÉå= åáÅÜíë= ~ìë= a~íÉåâÉêåÉå=ìåÇ=äáÉÑÉêí=åáÅÜíë=áå=a~íÉåâÉêåÉK=páÉ=ëçêÖÉå=ÉÄÉå=åìê=ÑΩê=Éáå=jáíJ íÉáäìåÖëÑÉåëíÉêK=jÉÜê=åáÅÜíK=

4.2

Passiver Zugriff auf Datenkerne báåÉ= éêçéÉêíó= EbáÖÉåëÅÜ~ÑíF= áëí= Éáå= ÇáêÉâíÉê= wìÖêáÑÑëãÉÅÜ~åáëãìëI= ãáí= ÇÉëëÉå= eáäÑÉ= ëÅÜåÉää= ~âíáî= ìåÇ= é~ëëáî= ~ìÑ= ÉáåòÉäåÉ= _Éëí~åÇíÉáäÉ= ÇÉë= a~íÉåâÉêåë= òìÖÉJ ÖêáÑÑÉå=ïÉêÇÉå=â~ååK=páÉ=â~åå=áå=bêÉáÖåáëéêçòÉÇìêÉå=îÉêïÉåÇÉí=ïÉêÇÉåK= iÉêåÉå= ïáê= òìÉêëí= âÉååÉåI= ïáÉ= ÉáåÉ= bêÉáÖåáëéêçòÉÇìê= é~ëëáî= ãáí= ÇÉã= ÉáÖÉåÉå= a~íÉåâÉêå=ìãÖÉÜÉå=â~ååK== ==

RP =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë=

= _áäÇ=QKNW=bêÉáÖåáëéêçòÉÇìêÉå=ÉáåÑ~ÅÜëíÉê=^êí=

4.2.1

Eigener Datenkern

a~ë= oÉÖáëíÉêÄä~íí= bfdbkp`e^cqbk= ÇÉë= lÄàÉâíáåëéÉâíçêë= áåÑçêãáÉêí= ìåë= ÑΩê= àÉÇÉë= îáëìÉääÉ= lÄàÉâí= ΩÄÉê= ÇáÉ= k~ãÉå= ÇÉê= ïáÅÜíáÖëíÉå= éêçéÉêíáÉëW= aÉåå= Ç~ë= ëáåÇ= ÖÉJ å~ì= ÇáÉ= _ÉòÉáÅÜåìåÖÉå= ÇÉê= ÉåíëéêÉÅÜÉåÇÉå= wÉáäÉåK= _ÉáëéáÉäëïÉáëÉ= ïáëëÉå= ïáê= ~ìë= ÇÉã= rãÖ~åÖ= ãáí= ÇÉã= lÄàÉâíáåëéÉâíçêI= Ç~ëë= ÇÉê= fåÜ~äí= ÉáåÉë= qÉñíÑÉåëíÉêë= E_áäÇ=QKOF=ãáí=ÇÉê=éêçéÉêíó=Text=îçêÄÉêÉáíÉí=ïÉêÇÉå=â~ååK==

= _áäÇ=QKOW=k~ãÉ=ÇÉê=éêçéÉêíóI=~ìë=ÇÉã=lÄàÉâíáåëéÉâíçê=òì=ÉêÑ~ÜêÉå== aÉê=fåÜ~äí=ÇÉë=qÉñíÑÉåëíÉêë=ÄÉÑáåÇÉí=ëáÅÜ=áêÖÉåÇïç=áã=a~íÉåâÉêåK=^ÄÉê=ïÉáä=ïáê= ïáëëÉåI=Ç~ëë=ÉáåÉ=éêçéÉêíó=ëíÉíë=òïÉáëÉáíáÖ=ïáêâíI=â∏ååíÉå=ïáê=ãáí= Text=ÖÉå~ì=ëç= Öìí=~ìÅÜ=ÇÉå=cÉåëíÉêáåÜ~äí=~ìë=ÇÉã=a~íÉåâÉêå=ÜÉê~ìëÜçäÉå=ìåÇ=îÉê~êÄÉáíÉåK== dÉë~Öí=Ó=ÖÉí~åK=pÅÜåÉää=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=ãÉáëíÄÉÜ~åÇÉäíÉ=kìíòÉêÉáåïáêâìåÖ= ~å= ÇÉã= qÉñíÑÉåëíÉêI= ÇK= ÜK= ÑΩê= Ç~ë= pí~åÇ~êÇJbêÉáÖåáëI= ÇìêÅÜ= açééÉäâäáÅâ= ÄÉJ ëÅÜ~ÑÑí=EëáÉÜÉ=^ÄëÅÜåáíí=OKOFK== RQ= =

QKO== m~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= kìå= ïáêÇ= îÉêä~åÖíI= ~ìë= ÇÉã= a~íÉåâÉêå= ÇÉë= îáëìÉääÉå= lÄàÉâíë= Edit1= ãáí= eáäÑÉ= ÇÉê= é~ëëÉåÇÉå= éêçéÉêíóI= ÇÉêÉå= k~ãÉå= ïáê= ~äë= báÖÉåëÅÜ~Ñí= Text= åçÅÜ= ~ìë= ÇÉê= sçêÉáåëíÉääìåÖ= áå= bêáååÉêìåÖ= Ü~ÄÉåI= ÇÉå= ~âíìÉääÉå= fåÜ~äí= òì= ÉêÑ~ÜêÉåK= pÉÜÉå= ïáê=ìåë=~åI=ïáÉ=Ç~ë=ÖÉëÅÜêáÉÄÉå=ïáêÇW= procedure TForm1.Edit1Change(Sender: TObject); begin ShowMessage('Inhalt aktuell: '+ Edit1.Text) end;

== ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_421.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_421.bdsproj=~ìëòìï®ÜäÉåK== = tÉáä= Ç~ë= ÑìåâíáçåáÉêíI= â∏ååÉå= ïáê= ãáí= _áäÇ= QKP= ìåëÉê= pÅÜÉã~= ÉêÖ®åòÉåW= báåÉ= sÉêÄáåÇìåÖ=~ìë=ÇÉã=a~íÉåâÉêå=áå=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=áëí=ÜáåòìÖÉâçããÉåK=

= _áäÇ=QKPW=m~ëëáîÉê=wìÖêáÑÑ=~ìÑ=ÇÉå=ÉáÖÉåÉå=a~íÉåâÉêå= RR =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= pÉÜÉå= ïáê= ìåë= ÇáÉ= táêâìåÖ= ÇÉê= bêÉáÖåáëéêçòÉÇìê= ~åW= _Éá= àÉÇÉê= ûåÇÉêìåÖI= ÇáÉ= ÇÉê= kìíòÉê= ~ã= fåÜ~äí= ÇÉë= qÉñíÑÉåëíÉêë= ãáí= ÇÉã= k~ãÉå= Edit1= îçêåáããíI= ïáêÇ= ÇáÉ=bêÉáÖåáëéêçòÉÇìê=ÇìêÅÜ=ÇÉå=bêÉáÖåáëÜ®åÇäÉê=ÖÉëí~êíÉíK== aáÉ= bêÉáÖåáëéêçòÉÇìê= Üçäí= Ç~åå= ~ìë= ÇÉã= a~íÉåâÉêå= ãáí= eáäÑÉ= ÇÉê= báÖÉåëÅÜ~Ñí= EéêçéÉêíóF= Text= ÇÉå= ~âíìÉääÉå= fåÜ~äí= ÇÉë= qÉñíÑÉåëíÉêë= ìåÇ= âÉííÉí= áÜå= êÉÅÜíë= ~å= ÇÉå=ëí~íáëÅÜÉå=qÉñí='Inhalt aktuell: '=ÇÉë=jáííÉáäìåÖëÑÉåëíÉêë=~åK== _áäÇ= QKQ= áëí= ëçãáí= Éåíëí~åÇÉåI= ~äë= ÇÉê= kìíòÉê= ÖÉê~ÇÉ= ÇÉå= äÉíòíÉå= _ìÅÜëí~ÄÉå= îçã= k~ãÉå= ÇáÉëÉ= åÉííÉå= ^äíã~êâJaçêÑÉë= ÖÉä∏ëÅÜí= Ü~ííÉ= Ó= ~ìÅÜ= Ç~ë= ï~ê= ÉáåÉ= ûåÇÉêìåÖK==

== _áäÇ=QKQW=^ìëÑΩÜêìåÖ=ÇÉê=bêÉáÖåáëéêçòÉÇìê== báå= òïÉáíÉë= _ÉáëéáÉäW= aÉê= lÄàÉâíáåëéÉâíçê= áåÑçêãáÉêí= ìåëI= Ç~ëë= ÇáÉàÉåáÖÉ= éêçJ éÉêíóI=ãáí=ÇÉêÉå=eáäÑÉ=~ìÑ=ÇÉå=qÉáä= _ÉëÅÜêáÑíìåÖ=ÇÉë=a~íÉåâÉêåë=ÉáåÉë=_ìííçåJ lÄàÉâíë=òìÖÉÖêáÑÑÉå=ïÉêÇÉå=â~ååI=ÇÉå=k~ãÉå= Caption=íê®Öí=Ó=ÇÉåå=ÇáÉëÉ=wÉáäÉ= ÇÉë= lÄàÉâíáåëéÉâíçêë= ÄÉåìíòíÉå= ïáê= ÄÉêÉáíë= ÄÉá= ÇÉå= sçêÉáåëíÉääìåÖÉåK= aáÉëÉ= fåÑçêã~íáçå=áëí=~ìëêÉáÅÜÉåÇK==

== _áäÇ=QKRW=fåÑçêã~íáçå=ΩÄÉê=ÇáÉ=_ìííçåJ_ÉëÅÜêáÑíìåÖ== §ÄÉêòÉìÖÉå= ïáê= ìåëW= mä~íòáÉêÉå= ïáê= òìê= ^åïÉåÇìåÖ= òìë®íòäáÅÜ= òì= ÇÉã= qÉñíJ ÑÉåëíÉê= Edit1= ÉáåÉå= _ìííçå= EÉê= ÄÉâçããí= îçå= aÉäéÜá= ÇÉå= k~ãÉå= Button1F= ãáí= ÇÉê=_ÉëÅÜêáÑíìåÖ=rÉåÖäáåÖÉå=~ìÑ=ÇÉã=cçêãìä~êK=kìå=â∏ååÉå=ïáê=Ç~ÑΩê=ëçêÖÉåI= Ç~ëë= ÄÉá= häáÅâ= ÇÉë= kìíòÉêë= ~ìÑ= ÇÉå= _ìííçå= Epí~åÇ~êÇJbêÉáÖåáëF= áå= ÉáåÉã= jáííÉáJ äìåÖëÑÉåëíÉê=ΩÄÉê=ÇáÉ=_ÉëÅÜêáÑíìåÖ=ÇÉë=_ìííçåë=áåÑçêãáÉêí=ïáêÇW== RS= =

QKO== m~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage('Beschriftung:'+ Button1.Caption) end;

_áäÇ=QKR=ä®ëëí=ÉêâÉååÉåI=Ç~ëë=~ääÉë=~ìÅÜ=ëç=ÑìåâíáçåáÉêíI=ïáÉ=ïáê=ìåë=Ç~ë=îçêÖÉJ ëíÉääí=Ü~ÄÉåK== hçããÉå=ïáê=òìã=oÉÖÉäïÉêâW== • wìÉêëí=ãΩëëÉå=ïáê=ÇÉå=k~ãÉå=ÇÉë=îáëìÉääÉå=lÄàÉâíë=~åÖÉÄÉåI=~ìë=ÇÉëëÉå=a~J íÉåâÉêå=ïáê=Éíï~ë=ÉêÑ~ÜêÉå=ïçääÉåK== jáí= ÇÉå= j∏ÖäáÅÜâÉáíÉå= ÇÉê= k~ãÉåëï~Üä= ÇÉê= îáëìÉääÉå= lÄàÉâíÉ= EÉáÖÉåÉ= t~Üä= çÇÉê= ^âòÉéíáÉêÉå= ÇÉë= îçå= aÉäéÜá= îçêÖÉëÅÜä~ÖÉåÉå= k~ãÉåëF= Ü~ííÉ= ëáÅÜ= ëÅÜçå= ÇÉê= ^ÄëÅÜåáíí= NKQKO= ÄÉëÅÜ®ÑíáÖíK= _áëÜÉê= ~êÄÉáíÉíÉå= ïáê= âçåëÉèìÉåí= ãáí= ÇÉå= îçå= aÉäéÜá=îçêÖÉëÅÜä~ÖÉåÉå=k~ãÉåK==

= _áäÇ=QKSW=k~ãÉ=ÉáåÉë=îáëìÉääÉå=lÄàÉâíë== aÉê=k~ãÉ=ÉáåÉë=îáëìÉääÉå=lÄàÉâíë=áëí=áã=lÄàÉâíáåëéÉâíçê=ëçïçÜä=áå=ÇÉê=hçéÑòÉáäÉ= ìåÇ= òìë®íòäáÅÜ= åçÅÜ= åÉÄÉå= ÇÉê= báÖÉåëÅÜ~Ñí= EéêçéÉêíóF= NameI= ÇK= ÜK= áå= ÇÉê= wÉáäÉ= ãáí=ÇÉê=_ÉëÅÜêáÑíìåÖ=NameI=~ÄòìäÉëÉå=E_áäÇ=QKSFK= • k~ÅÜ=ÇÉã=k~ãÉå=âçããí=áããÉê=Éáå=mìåâíK=a~ë=ÖÉÜ∏êí=òìã=oÉÖÉäïÉêâK== • oÉÅÜíë=îçã=mìåâí=âçããí=Ç~åå=ÇÉê=k~ãÉ=ÇÉêàÉåáÖÉå=éêçéÉêíó=EbáÖÉåëÅÜ~ÑíFI= ÇáÉ=ÇÉå=qê~åëéçêíîçêÖ~åÖ=~ìë=ÇÉã=a~íÉåâÉêå=îçêåáããíK== aÉå=k~ãÉå=ÇÉê=éêçéÉêíó=ÉêÑìÜêÉå=ïáê=ÄáëÜÉê=ëíÉíë=~ìë=ÇÉê=oÉÖáëíÉêâ~êíÉ=bfdbkJ p`e^cqbk= ÇÉë= lÄàÉâíáåëéÉâíçêëI= áåëÄÉëçåÇÉêÉ= îçå= ÇÉå= Ççêí= îçêÖÉåçããÉåÉå= sçêÉáåëíÉääìåÖÉåK== ^ÄÉê= åáÅÜí= ~ääÉ= éêçéÉêíáÉëI= ÇáÉ= áå= aÉäéÜá= ÇÉå= ÇáêÉâíÉå= ~âíáîÉå= ìåÇ= é~ëëáîÉå= wìÖêáÑÑ= ~ìÑ= ÇÉå= a~íÉåâÉêå= ÉáåÉë= lÄàÉâíÉë= Éêä~ìÄÉåI= ëáåÇ= áã= lÄàÉâíáåëéÉâíçê= ìåíÉê=bfdbkp`e^cqbk=~ìÑÖÉäáëíÉíK=açêí=ëíÉÜÉå=åìê=ÇáÉ=ïáÅÜíáÖëíÉåK== fã=^ÄëÅÜåáíí=QKTKP=ÉêÑ~ÜêÉå=ïáêI=ïáÉ=ã~å=ÇáÉ=k~ãÉå=ïÉáíÉêÉê=éêçéÉêíáÉë=ÑáåÇÉå= â~ååK= iáÉÑÉêí=ÇáÉ=éêçéÉêíó=ÉáåÉ=wÉáÅÜÉåÑçäÖÉ=EÉáåÉå=qÉñíF=â~åå=ÇáÉëÉ=áå=ÉáåÉê= ShowMessageJmêçòÉÇìê= ëçÑçêí= îÉêïÉåÇÉí= ïÉêÇÉåI= ÖÉÖÉÄÉåÉåÑ~ääë= áå= sÉêÄáåÇìåÖ= ãáí= ÉáJ åÉã=Éêä®ìíÉêåÇÉå=ëí~íáëÅÜÉå=qÉñí=Ó=ëáÉÜÉ=ìåëÉêÉ=ÄÉáÇÉå=_ÉáëéáÉäÉK== ^äë=sÉêâÉííìåÖëòÉáÅÜÉå=ÇáÉåí=Ç~ÄÉá=Ç~ë=ÄÉâ~ååíÉ=mäìëòÉáÅÜÉåK= RT =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë=

4.2.2

Datenkerne fremder Objekte

tÉê=ë~Öí=ÇÉåå=ÉáÖÉåíäáÅÜI=Ç~ëë=ÉáåÉ=bêÉáÖåáëéêçòÉÇìê=åáÅÜí=~ìÅÜ=áå=ÇáÉ=a~íÉåJ âÉêåÉ= ÑêÉãÇÉê= îáëìÉääÉê= lÄàÉâíÉ= ÜáåÉáåÖêÉáÑÉå= Ç~êÑ\= péêáÅÜí= áêÖÉåÇÉíï~ë= Ç~ÖÉJ ÖÉå\= a~ë=_áäÇ=QKT=ëâáòòáÉêí=ìåë=ÇÉå=jÉÅÜ~åáëãìëI=ìåÇ=~å=ÉáåÉã=ÉáåÑ~ÅÜÉå=_ÉáëéáÉä= ïÉêÇÉå=ïáê=ìåë=ΩÄÉêòÉìÖÉåI=Ç~ëë=ïáê=Ç~ÑΩê=~Äëçäìí=åáÅÜíë=ÜáåòìäÉêåÉå=ãΩëëÉåK==

= _áäÇ=QKTW=mêáåòáéW=m~ëëáîÉê=wìÖêáÑÑ=~ìÑ=ÉáåÉå=ÑêÉãÇÉå=a~íÉåâÉêå= _Éíê~ÅÜíÉå=ïáê=ÑçäÖÉåÇÉ=ÉáåÑ~ÅÜÉ=^ìÑÖ~ÄÉW=^ìÑ=ÉáåÉã=cçêãìä~ê=ëáåÇ=êáåÖë=ìã= ÉáåÉå=_ìííçå=Éáå=i~ÄÉäI=Éáå=qÉñíÑÉåëíÉêI=ÉáåÉ=`ÜÉÅâÄçñ=ìåÇ=Éáå=o~ÇáçÄìííçå=ãáí= áÜêÉå=fåÜ~äíÉå=ÄòïK=_ÉëÅÜêáÑíìåÖÉå=~åÖÉçêÇåÉí=E_áäÇ=QKUFK== _Éá=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ëçääÉå=áå=ÉáåÉê=jáííÉáäìåÖ=ÇÉê=fåÜ~äí=ÇÉê=qÉñíÄçñ=ëçJ ïáÉ=ÇáÉ=ÇêÉá=_ÉëÅÜêáÑíìåÖÉå=îçå=i~ÄÉäI=`ÜÉÅâÄçñ=ìåÇ=o~ÇáçÄìííçå=òìë~ããÉåJ ÖÉÑ~ëëí=ïÉêÇÉåK==

==

RU= =

QKO== m~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= _áäÇ=QKUW=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ= táÉ= ëáÉÜí= ÇÉê= òìÖÉÜ∏êáÖÉ= fåÜ~äí= ÇÉê= bêÉáÖåáëéêçòÉÇìê= òìã= bêÉáÖåáë= häáÅâ= ~ìÑ= ÇÉå=_ìííçå=~ìë\=lÑÑÉåÄ~ê=ãΩëëÉå=áå=áÜê=ãáí=eáäÑÉ=ÇÉê=îáÉê=é~ëëÉåÇÉå=qê~åëéçêíJ éêçéÉêíáÉë= ÇáÉ= àÉïÉáäáÖÉå= _ÉëÅÜêáÑíìåÖÉå= ÄòïK= ÇÉê= fåÜ~äí= ÇÉë= qÉñíÑÉåëíÉêë= ~ìë= ÇÉå=a~íÉåâÉêåÉå=ÖÉÜçäí=ïÉêÇÉåW== procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage( Label1.Caption

+

Checkbox1.Caption +

Edit1.Text

+

RadioButton1.Caption)

end;

hçåíêçääáÉêÉå=ïáê=Ç~ë=bêÖÉÄåáë=Ó=áå=_áäÇ=QKV=ëÉÜÉå=ïáê=ÉëK=

== _áäÇ=QKVW=häáÅâ=~ìÑ=ÇÉå=_ìííçå= få=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ïìêÇÉ=ÇìêÅÜ=sÉêíÉáäìåÖ=~ìÑ=ãÉÜêÉêÉ=wÉáäÉå=ΩÄÉêëáÅÜíJ äáÅÜ=ÖÉëÅÜêáÉÄÉåI=Ç~ë=áëí=~ìÅÜ=Éêä~ìÄíK== == == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_422.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_422.bdsproj=~ìëòìï®ÜäÉåK== = aáÉ=îáÉê=wÉáÅÜÉåÑçäÖÉåI=ÇáÉ=~ìë=ÇÉå=îáÉê=a~íÉåâÉêåÉå=ÖÉÜçäí=ïìêÇÉåI=ïÉêÇÉå= áå= _áäÇ= QKV= ìåãáííÉäÄ~ê= ~åÉáå~åÇÉê= ÖÉëÅÜêáÉÄÉåK= içÖáëÅÜ= Ó= ïáê= Ü~ÄÉå= ~ìÅÜ= åáÅÜíë=^åÇÉêÉë=éêçÖê~ããáÉêíK== bêïÉáíÉêå= ïáê= ~ÄÉê= ÇÉå= fåÜ~äí= ÇÉê= bêÉáÖåáëéêçòÉÇìê= ÇêÉáã~ä= ÇìêÅÜ= ÇÉå= ëí~íáJ ëÅÜÉå=qÉñí= '>>'=ÉêÜ~äíÉå=ïáê=ÄÉáã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=å~íΩêäáÅÜ=ÉáåÉ=~åÇÉêÉI= ÄÉëëÉêÉ=^ìëÖ~ÄÉI=ïáÉ=áå=_áäÇ=QKNM=âçåíêçääáÉêí=ïÉêÇÉå=â~ååK== RV =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage( Label1.Caption+'>>'+ Edit1.Text+'>>'+ Checkbox1.Caption+'>>'+ RadioButton1.Caption ) end;

§ÄêáÖÉåë= Ó= ïÉã= ÇÉê= k~ãÉ= çÇÉê= òìãáåÇÉëí= ÇáÉ= pÅÜêÉáÄïÉáëÉ= ÇÉë= ÉáåÉå= çÇÉê= ~åÇÉêÉå=îáëìÉääÉå=lÄàÉâíë=ÉåíÑ~ääÉå=ëçääíÉW=fã=hçéÑ=ÇÉë=lÄàÉâíáåëéÉâíçêë=ÄÉÑáåÇÉí= ëáÅÜ= ÉáåÉ= `çãÄçÄçñ= ãáí= ~ääÉå= k~ãÉå= ~ääÉê= lÄàÉâíÉI= ÇáÉ= ëáÅÜ= ÇÉêòÉáí= ~ìÑ= ÇÉã= cçêãìä~ê=ÄÉÑáåÇÉåI=ÉáåëÅÜäáÉ≈äáÅÜ=ÇÉë=cçêãìä~êå~ãÉåë=E_áäÇ=QKNNFK==

= _áäÇ=QKNMW=sÉêÄÉëëÉêíÉ=^ìëÖ~ÄÉ=ÇìêÅÜ=báåÑΩÖÉå=ëí~íáëÅÜÉê=qÉñíÉ==

== _áäÇ=QKNNW=k~ãÉåëΩÄÉêëáÅÜí=ΩÄÉê=~ääÉ=îáëìÉääÉå=lÄàÉâíÉ=

4.3

Aktiver Zugriff auf Datenkerne

4.3.1 =

Eigener Datenkern

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_431.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_431.bdsproj=~ìëòìï®ÜäÉåK== = SM= =

QKP== ^âíáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= báåÉ= Ö~åò= ÉáåÑ~ÅÜÉ= ^ìÑÖ~ÄÉåëíÉääìåÖ= ëçää= ìåë= ÇÉå= wìÖ~åÖ= òìê= i∏ëìåÖ= ÇÉê~êíáJ ÖÉê= mêçÄäÉãÉ= ∏ÑÑåÉåW= ^ìÑ= ÉáåÉã= cçêãìä~ê= ÄÉÑáåÇÉí= ëáÅÜ= Éáå= _ìííçåI= ~åÑ~åÖë= íê®Öí=Éê=ÇáÉ=_ÉëÅÜêáÑíìåÖ=pí~êíK== _Éáã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ëçää=ëáÅÜ=ëÉáåÉ=ÉáÖÉåÉ=_ÉëÅÜêáÑíìåÖ=áå=píçé=®åÇÉêåK= _Éíê~ÅÜíÉå=ïáê=Ç~òì=ÖäÉáÅÜ=ÇáÉ=bêÉáÖåáëéêçòÉÇìêK== procedure TForm1.Button1Click(Sender: TObject); begin Button1.Caption:='Stop' end;

aÉê=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ÄÉëíÉÜí=~ìë=ÇÉã=_ÉÑÉÜä== Button1.Caption:='Stop'

a~ë=áëí=Éáå=wìïÉáëìåÖëÄÉÑÉÜäK=oÉÅÜíë=ëíÉÜí=ÇáÉ=nìÉääÉI=äáåâë=ëíÉÜí=Ç~ë=wáÉäK=a~ë= wÉáÅÜÉå=:==ïáêÇ=ÉêÖáÄí=ëáÅÜ=~ìë=ÖÉëéêçÅÜÉåK= aáÉëÉê=wìïÉáëìåÖëÄÉÑÉÜä=ëçêÖí=Ç~ÑΩêI=Ç~ëë=ÇÉê=ëí~íáëÅÜÉ=qÉñí= ‘Stop‘=ãáííÉäë=ÇÉê= báÖÉåëÅÜ~Ñí=EéêçéÉêíóF= Caption=áå=ÇÉå=a~íÉåâÉêå=ÇÉë=îáëìÉääÉå= lÄàÉâíë= Button1= ÜáåÉáå=íê~åëéçêíáÉêí=ïáêÇK=hçããí=ÇÉê=åÉìÉ=qÉñí=Ççêí=~åI=ïáêÇ=ëçÑçêí=ÇÉê=ëáÅÜíJ Ä~êÉ=qÉáä=îÉê®åÇÉêí=Ó=ÇáÉ=_ÉëÅÜêáÑíìåÖ=ïÉÅÜëÉäí=E_áäÇ=QKNOFK= táêÇ= ~åëÅÜäáÉ≈ÉåÇ= åçÅÜ= Éáåã~ä= ~ìÑ= ÇÉå= _ìííçå= ÖÉâäáÅâíI= é~ëëáÉêí= å~íΩêäáÅÜ= åáÅÜíë= ãÉÜêK= lÇÉê= ÇçÅÜ\= §ÄÉêäÉÖÉå= ïáêW= _Éáã= òïÉáíÉå= häáÅâ= ïáêÇ= ïáÉÇÉêìã= ÇÉê=ëí~íáëÅÜÉ=qÉñí= ‘Stop‘=îá~=a~íÉåâÉêå=òìê=_ÉëÅÜêáÑíìåÖ=ÇÉë=_ìííçåë=ÖÉëÅÜáÅâíK= táê=ãÉêâÉå=Ç~ë=åìê=åáÅÜíI=ïÉáä=ëáÅÜ=Ç~åå=ÇáÉ=_ÉëÅÜêáÑíìåÖ=åáÅÜí=ãÉÜê=®åÇÉêíK= a~ëëÉäÄÉ=ÄÉáã=ÇêáííÉåI=îáÉêíÉåI=ÑΩåÑíÉå=häáÅâ=ìëïK=cçäÖäáÅÜ=é~ëëáÉêí=ÇçÅÜ=àÉÇÉë= j~ä=Éíï~ëI=ïáê=ãÉêâÉå=Éë=åìê=åáÅÜíK=

== _áäÇ=QKNOW=sçê=ìåÇ=å~ÅÜ=ÇÉã=ÉêëíÉå=häáÅâ====

4.3.2

Datenkerne fremder Objekte

gÉíòí=ïáêÇ=Éë=ä~åÖë~ã=áåíÉêÉëë~åíK=bÄÉå=Ü~ÄÉå=ïáê=ÉêäÉÄíI=ïáÉ=ãáííÉäë=ÉáåÉê=bêÉáÖJ åáëéêçòÉÇìê= ÉáåÉ= ÄÉëíáããíÉ= _ÉäÉÖìåÖ= áå= ÉáåÉå= a~íÉåâÉêå= ÜáåÉáåÖÉÄê~ÅÜí= ïÉêJ ÇÉå=â~åå=ìåÇ=ÑçäÖäáÅÜ=~ã=àÉïÉáäáÖÉå=píÉìÉêÉäÉãÉåí=ëáÅÜíÄ~êÉ=sÉê®åÇÉêìåÖÉå=ÉêJ òÉìÖÉå= â~ååK= k~íΩêäáÅÜ= ÑìåâíáçåáÉêí= Ç~ë= ~ìÅÜ= áå= ÑêÉãÇÉå= a~íÉåâÉêåÉå= Ó= ïáê= Äê~ìÅÜÉå=ìåë=Ç~òì=åìê=åçÅÜ=Éáåã~ä=ÇáÉ=pâáòòÉ=áå=_áäÇ=QKT=~åòìëÉÜÉåK== báå=é~~ê=_ÉáëéáÉäÉ=Ç~òìW=wìÉêëí=éä~íòáÉêÉå=ïáê=~ìÑ=ÇÉã=cçêãìä~ê=ÉáåÉå= _ìííçå= ìåÇ=Éáå=i~ÄÉäK=a~ë=i~ÄÉä=çÜåÉ=pí~êíÄÉëÅÜêáÑíìåÖK== SN =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_432.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_432.bdsproj=~ìëòìï®ÜäÉåK== = _Éáã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=Epí~åÇ~êÇÉêÉáÖåáëF=ëçää=Ç~ë=i~ÄÉä=ÄÉëÅÜêáÑíÉí=ïÉêÇÉå= ãáí=ÇÉê=ëÅÜ∏åÉå=wÉáÅÜÉåÑçäÖÉ=UenglingenK=aáÉ=i∏ëìåÖW= procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption:='Uenglingen' end;

k®ÅÜëíÉë=_ÉáëéáÉäW=^ìÑ=ÇÉã=cçêãìä~ê=ïÉêÇÉå=òìë®íòäáÅÜ=Éáå=òïÉáíÉê=_ìííçå=ìåÇ= ÉáåÉ= ï~~ÖÉêÉÅÜíÉ= pÅêçääÄ~ê= ~åÖÉçêÇåÉíK= pí~êíÉáåëíÉääìåÖ= ÇÉê= pÅêçääÄ~êW= j~ñáJ ãìãZNMMI= jáåáãìãZMI= mçëáíáçåZM= EïáÉ= áå= áÜêÉã= lÄàÉâíáåëéÉâíçê= åÉÄÉå= ÇÉå= báÖÉåëÅÜ~ÑíÉå= MaxI= Min=ìåÇ= Position=~åÖÉÄçíÉåFK=^ìÑÖ~ÄÉW=_Éáã=häáÅâ=~ìÑ=ÇÉå= _ìííçå=ëçää=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=~ìÑ=TR=ïÉÅÜëÉäåK=bêÉáÖåáëéêçòÉÇìêW== procedure TForm1.Button2Click(Sender: TObject); begin ScrollBar1.Position:=75 end;

kìå=ëíÉÜí=~ìÑ=ÇÉê=êÉÅÜíÉå=EnìÉääJF=pÉáíÉ=ÇÉë=wìïÉáëìåÖëÄÉÑÉÜäë=ÉáåÉ=w~ÜäX=Ç~ë= áëí=~ìÅÜ=âçêêÉâíI=ïÉáä=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=áå=ÇÉê=pÅêçääÄ~ê=ÉÄÉå=ÇìêÅÜ=ÉáåÉå= w~ÜäÉåïÉêí=ÄÉëÅÜêáÉÄÉå=ïáêÇK=

= _áäÇ=QKNPW=sçê=ìåÇ=å~ÅÜ=ÇÉã=häáÅâ= fã=å®ÅÜëíÉå=_ÉáëéáÉä=ïçääÉå=ïáê=ÇáÉ=^ìÑÖ~ÄÉ=~ìë=_áäÇ=QKU=ìãÖÉâÉÜêí=ä∏ëÉåK=^ìÑ= ÇÉã=cçêãìä~ê=ëáåÇ=êáåÖë=ìã=ÉáåÉå=ïÉáíÉêÉå=_ìííçå=Éáå= i~ÄÉäI= ÉáåÉ=`ÜÉÅâÄçñI= Éáå=o~ÇáçÄìííçå=ãáí=áÜêÉå=_ÉëÅÜêáÑíìåÖÉå=ìåÇ=Éáå=qÉñíÑÉåëíÉê=ãáí=ëÉáåÉã=pí~êíJ= fåÜ~äí=~åÖÉçêÇåÉí=E_áäÇ=QKUFK= SO= =

QKP== ^âíáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= aáÉ= _ÉëÅÜêáÑíìåÖÉå= ä~ìíÉå= NordenI= WestenI= OstenI= Ç~ë= qÉñíÑÉåëíÉê= Ü~í= ~åÑ~åÖë= ÇÉå=fåÜ~äí= SüdenK=_Éáã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=Epí~åÇ~êÇJbêÉáÖåáëF=ëçääÉå=ëáÉ=ëí~ííJ ÇÉëëÉå= ÇáÉ= _ÉëÅÜêáÑíìåÖÉå= NordI= WestI= Ost= ÄòïK= ÇÉå= fåÜ~äí= Süd= ÉêÜ~äíÉå= E_áäÇ= QKNQFK=

== _áäÇ=QKNQW=sçê=ìåÇ=å~ÅÜ=ÇÉã=häáÅâ=~ìÑ=ÇÉå=_ìííçå= få= ÇÉê= òìÖÉÜ∏êáÖÉå= bêÉáÖåáëéêçòÉÇìê= ëÉÜÉå= ïáê= Éêëíã~äáÖ= Ç~ë= pÉãáâçäçå= ~äë= qêÉååòÉáÅÜÉå=òïáëÅÜÉå=ÇÉå=wìïÉáëìåÖëÄÉÑÉÜäÉåK=^ìÅÜ=ïÉåå=ÇáÉ=_ÉÑÉÜäÉ=ìåJ íÉêÉáå~åÇÉê=ëíÉÜÉå=ëçääíÉå=Ó=Ç~ë=wÉáäÉåÉåÇÉ=â~åå=åáÉã~äë=Ç~ë=íêÉååÉåÇÉ=pÉãáJ âçäçå=ÉêëÉíòÉåK== procedure TForm1.Button3Click(Sender: TObject); begin Label2.Caption:='Nord'; RadioButton1.Caption:='Ost'; Edit1.Text:='Süd'; CheckBox1.Caption:='West'

//Trennzeichen nötig //Trennzeichen nötig //Trennzeichen nötig

end;

bêïÉáíÉêå= ïáê= ÇáÉ= ^ìÑÖ~ÄÉåëíÉääìåÖW= kìå= ëçää= òìë®íòäáÅÜ= ÄÉáã= häáÅâ= ~ìÑ= ÇÉå= _ìííçå=EÇK=ÜK=ÄÉá=ÇÉãëÉäÄÉå=bêÉáÖåáëF=ÇáÉ=`ÜÉÅâÄçñ=ÇÉå=e~âÉå=ìåÇ=ÇÉê=o~ÇáçJ Äìííçå=ÇáÉ=j~êâáÉêìåÖ=ÄÉâçããÉå=E_áäÇ=QKNRFK==

= _áäÇ=QKNRW=k~ÅÜ=ÇÉã=häáÅâ=~ìÑ=ÇÉå=_ìííçåI=ÉêïÉáíÉêíÉ=^ìÑÖ~ÄÉåëíÉääìåÖ= SP =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= tÉäÅÜÉ= wìïÉáëìåÖëÄÉÑÉÜäÉ= ãΩëëÉå= ïáê= ÑΩê= ÇáÉëÉ= ÉêïÉáíÉêíÉ= ^ìÑÖ~ÄÉåëíÉääìåÖ= òìë®íòäáÅÜ=áå=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=~ìÑåÉÜãÉå\== pÉÜÉå=ïáê=ìåë=òìÉêëí=ÇáÉ=i∏ëìåÖ=~åK== procedure TForm1.Button3Click(Sender: TObject); begin Label2.Caption:='Nord';

//Trennzeichen nötig

RadioButton1.Caption:='Ost';

//Trennzeichen nötig

Edit1.Text:='Süd';

//Trennzeichen nötig

CheckBox1.Caption:='West';

//Trennzeichen nötig

Checkbox1.Checked:=True;

//Trennzeichen nötig

RadioButton1.Checked:=True end;

t~êìã= ãìëëíÉå= ïáê= ÇáÉ= sçâ~ÄÉä= True= ~ìÑ= ÇáÉ= êÉÅÜíÉå= pÉáíÉå= ÇÉê= ÄÉáÇÉå= ÜáåòìÖÉâçããÉåÉå=wìïÉáëìåÖÉå=ëÅÜêÉáÄÉå\== aáÉ= ^åíïçêí= Ç~ê~ìÑ= ÑáåÇÉå= ïáêI= ïáÉÇÉê= Éáåã~äI= áã= oÉÖáëíÉêÄä~íí= bfdbkp`e^cqbk= ÇÉê= lÄàÉâíáåëéÉâíçêÉå= ÑΩê= `ÜÉÅâÄçñ= ìåÇ= o~ÇáçÄìííçåK= açêí= ÑáåÇÉå= ïáê= òìÉêëíI= Ç~ëë= ÇáÉ= ÄÉáÇÉå= báÖÉåëÅÜ~ÑíÉå= EéêçéÉêíáÉëFI= ÇáÉ= ÇáÉ= _ÉäÉÖìåÖÉå= áã= a~íÉåâÉêå= îÉê~åä~ëëÉå=EçÇÉê=äáÉÑÉêåFI=ÄÉáÇÉ=j~äÉ=~ìÑ=ÇÉå=k~ãÉå= Checked=Ü∏êÉå=E_áäÇ=QKNSX= îÉêÖäÉáÅÜÉ=~ìÅÜ=ÇÉå=^ÄëÅÜåáíí=OKQKPFK===

== _áäÇ=QKNSW=_ÉäÉÖìåÖëéêçéÉêíó=îçå=`ÜÉÅâÄçñ=ìåÇ=o~ÇáçÄìííçå= t~ë= áëí= Ççêí= òì= ÉêâÉååÉå\= aáÉ= éêçéÉêíó= Checked= ãìëë= ÄÉá= ÄÉáÇÉå= píÉìÉêÉäÉJ ãÉåíÉå=ãáí=ÉáåÉã=ÇÉê=ÄÉáÇÉå=äçÖáëÅÜÉå=tÉêíÉ= False=EÑ~äëÅÜF=çÇÉê= True=Eï~ÜêF= ÄÉäÉÖí=ïÉêÇÉåK== sçêäÉíòíÉë=_ÉáëéáÉä=áå=ÇáÉëÉã=^ÄëÅÜåáííW=^ìÑ=ÇÉã=cçêãìä~ê=ÄÉÑáåÇÉí=ëáÅÜ=ïÉáíÉê= ÉáåÉ= o~ÇáçÖêìééÉ= EîÖäK= ^ÄëÅÜåáíí= PKPFI= ÄÉäÉÖí= ãáí= ÇÉå= k~ãÉå= ÇÉê= ëÉÅÜòÉÜå= ÇÉìíëÅÜÉå= i~åÇÉëÜ~ìéíëí®ÇíÉK= wì= _ÉÖáåå= ÇÉê= i~ìÑòÉáí= ëçää= âÉáåÉ= i~åÇÉëÜ~ìéíJ ëí~Çí=ÇáÉ=j~êâáÉêìåÖ=ÄÉëáíòÉåK== SQ= =

QKP== ^âíáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= kìå= ÇáÉ= ^ìÑÖ~ÄÉW= _Éá= àÉÇÉã= häáÅâ= áå= ÇÉê= o~ÇáçÖêìééÉ= Epí~åÇ~êÇJbêÉáÖåáëF= ëçää= åáÅÜí=Éíï~=ÇáÉ=~ìëÖÉï®ÜäíÉ=i~åÇÉëÜ~ìéíëí~Çí=ÇáÉ=j~êâáÉêìåÖ=ÄÉâçããÉåI=ëçåJ ÇÉêå=ëíÉíë=ÇáÉ=wÉåíê~äÉI= BerlinK=t~ë=~ìÅÜ=ÇÉê=kìíòÉê=áããÉê=~åâäáÅâÉå=ã~ÖI=ÄÉá= àÉÇÉã= häáÅâ= ëçää= áããÉê= EçÄ= ÇÉê= kìíòÉê= ïáää= çÇÉê= åáÅÜíF= ÇáÉ= j~êâáÉêìåÖ= òìê= _ìåÇÉëÜ~ìéíëí~Çí=ëéêáåÖÉå=E_áäÇ=QKNTFK==

== _áäÇ=QKNTW=pí~êí=ìåÇ=páíì~íáçå=å~ÅÜ=áêÖÉåÇÉáåÉê=t~Üä= aÉê= o~ÜãÉå= ÑΩê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= áëí= ëÅÜåÉää= ÄÉëÅÜ~ÑÑíI= Ç~= Éë= ëáÅÜ= ìã= Ç~ë= pí~åÇ~êÇJbêÉáÖåáë= ÇÉê= o~ÇáçÖêìééÉ= Ü~åÇÉäíK= açÅÜ= ïÉäÅÜÉå= wìïÉáëìåÖëÄÉÑÉÜä= ãìëë=ã~å=Éáåíê~ÖÉå\=táÉ=ÜÉá≈í=ÇáÉ=é~ëëÉåÇÉ=báÖÉåëÅÜ~Ñí=EéêçéÉêíóF\== pìÅÜÉå= ïáê= áã= lÄàÉâíáåëéÉâíçê= ÇÉê= o~ÇáçÖêìééÉ= å~ÅÜ= ÇÉêàÉåáÖÉå= báÖÉåëÅÜ~ÑíI= ÇáÉ=ÇáÉ=j~êâáÉêìåÖ=~ìÑ=ÉáåÉ=ÄÉëíáããíÉ=wÉáäÉ=ëÉíòíK=_áäÇ=QKNU=òÉáÖí=Éë=Ó=Éë=áëí=ÇáÉ= báÖÉåëÅÜ~Ñí=ItemIndexK=

= _áäÇ=QKNUW=^ìëòìÖ=~ìë=ÇÉå=báÖÉåëÅÜ~ÑíÉå=ÉáåÉê=o~ÇáçÖêìééÉ==== táê=äÉëÉå=~ÄW=oÉÅÜíë=åÉÄÉå= ItemIndex=ëíÉÜí=ÉáåÉ=Ö~åòÉ=w~ÜäK=cçäÖäáÅÜ=ãìëë=ÇáÉJ ëÉê= báÖÉåëÅÜ~ÑíI= ïÉåå= ëáÉ= ~äë= éêçéÉêíó= áå= ÉáåÉê= bêÉáÖåáëéêçòÉÇìê= îÉêïÉåÇÉí= ïáêÇI=ëíÉíë=ÉáåÉ=w~Üä=òìÖÉïáÉëÉå=ïÉêÇÉåK=eáÉê=áëí=Éë=ÇáÉ=kìääK== SR =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= t~êìã=ÖÉê~ÇÉ=ÇáÉ=kìää\=kìåI=ïÉáä= Berlin=ÇÉê=ÉêëíÉ=báåíê~Ö=áëíI=ìåÇ=ãáí=kìää=ÇáÉ= w®ÜäìåÖ=ÄÉÖáååíK==== procedure TForm1.RadioGroup1Click(Sender: TObject); begin RadioGroup1.ItemIndex:=0 end;

c~ëëÉå=ïáê=òìë~ããÉåW== • sÉêä~åÖí=ÉáåÉ=éêçéÉêíó=ÉáåÉå=qÉñí=EÉáåÉ=wÉáÅÜÉåÑçäÖÉFI=ãìëë=~ìÑ=ÇÉê=êÉÅÜíÉå= EnìÉääJF= pÉáíÉ= ÇÉê= wìïÉáëìåÖ= Éáå= ëí~íáëÅÜÉê= qÉñí= ëíÉÜÉåI= âÉååíäáÅÜ= ~å= ÇÉå= ÄÉáÇÉå=eçÅÜâçãã~ë=‘=ìåÇ=‘=K= • sÉêä~åÖí= ÉáåÉ= éêçéÉêíó= ÉáåÉ= Ö~åòÉ= w~ÜäI= ãìëë= ~ìÑ= ÇÉê= êÉÅÜíÉå= pÉáíÉ= ÇÉê= wìïÉáëìåÖ=ÉáåÉ=Ö~åòÉ=w~Üä=ëíÉÜÉåK= • sÉêä~åÖí= ÉáåÉ= éêçéÉêíó= ÉáåÉå= t~ÜêÜÉáíëïÉêíI= ãìëë= ~ìÑ= ÇÉê= êÉÅÜíÉå= pÉáíÉ= ÇÉê= wìïÉáëìåÖ=ÉåíïÉÇÉê=True=çÇÉê=False=ëíÉÜÉåK== kìå= òìã= äÉíòíÉå= _ÉáëéáÉäK= ^ìÑ= ìåëÉêÉã= cçêãìä~ê= ïÉêÇÉå= ïÉáíÉêÉ= îáÉê= _ìííçåë= ãáí=ÇÉå=_ÉëÅÜêáÑíìåÖÉå= FlensburgI=GarmischI=Görlitz=ìåÇ=Aachen=éä~íòáÉêíX=ëáÉ=ÉêJ Ü~äíÉå=ÇáÉ=k~ãÉå= Button4=Äáë= Button8K=få=ÇÉê=jáííÉ=ÄÉÑáåÇÉí=ëáÅÜ=Ç~òì=Éáå=ïÉáJ íÉêÉë=i~ÄÉäI=Ç~ë=ëçää=~åÑ~åÖë=äÉÉê=ëÉáåK=bë=ÄÉâçããí=îçå=aÉäéÜá=ÇÉå=k~ãÉå= Label3K== kìå=ÇáÉ=^ìÑÖ~ÄÉW=táêÇ=ÇÉê=j~ìëòÉáÖÉê=ΩÄÉê=ÉáåÉã=ÇÉê=_ìííçåë=ÄÉïÉÖíI=ëçää=áã= i~ÄÉä= ÇÉê= k~ãÉ= ÇÉë= ÖÉê~ÇÉ= łΩÄÉêÑäçÖÉåÉå= lêíÉë= ÉêëÅÜÉáåÉåX= ïáêÇ= ÇÉê= j~ìëJ òÉáÖÉê= Ç~ÖÉÖÉå= ΩÄÉê= ÇÉã= wïáëÅÜÉåê~ìã= ÄÉïÉÖíI= ëçää= łaÉìíëÅÜä~åÇ= áã= i~ÄÉä= ÉêëÅÜÉáåÉåK= báåÉ=®ÜåäáÅÜÉ=^ìÑÖ~ÄÉ=ïìêÇÉ=ëÅÜçå=áå=^ÄëÅÜåáíí=OKPKN=ÖÉä∏ëíI=Ççêí=àÉÇçÅÜ=ÖáåÖ= Éë=åìê=ìã=ÉáåÉ=ÉáåÑ~ÅÜÉ=jáííÉáäìåÖK=táê=ÉêáååÉêå=ìåë=àÉÇçÅÜI=Ç~ëë=ÇáÉ=j~ìëòÉáJ ÖÉêJ_ÉïÉÖìåÖ=âÉáå=pí~åÇ~êÇJbêÉáÖåáë=áëíK= cçäÖäáÅÜ= ÄÉëÅÜ~ÑÑÉå= ïáê= ìåë= ãáí= eáäÑÉ= ÇÉë= oÉÖáëíÉêÄä~ííÉë= bobfdkfppb= ÇÉê= lÄJ àÉâíáåëéÉâíçêÉå=ÇáÉ=ÑΩåÑ=o~ÜãÉå=ÑΩê=ÇáÉ=ÑΩåÑ=bêÉáÖåáëéêçòÉÇìêÉåK== a~åå=ÉêáååÉêå=ïáê=ìåë=Ç~ê~åI=Ç~ëë=ÇáÉ= _ÉëÅÜêáÑíìåÖ=ÉáåÉë= i~ÄÉäë=ãáí= eáäÑÉ= ÇÉê= éêçéÉêíó= CaptionI=ÇÉêÉå=k~ãÉ=ïáê=~ìë=ÇÉã=oÉÖáëíÉêÄä~íí=bfdbkp`e^cqbk=ÇÉë=i~J ÄÉäJlÄàÉâíáåëéÉâíçêë=âÉååÉåI=îÉê®åÇÉêí=ïÉêÇÉå=â~ååK== a~ë=áëí=ëÅÜçå=~ääÉëI=ìåÇ=åìå=â∏ååÉå=ïáê=ìåë=ÇáÉ=ÑΩåÑ=ÑÉêíáÖÉå=bêÉáÖåáëéêçòÉÇìêÉå= ~åëÉÜÉåW== procedure TForm1.Button4MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin Label3.caption:='Flensburg' end;

SS= =

QKQ== ^âíáîÉê=ìåÇ=é~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ= procedure TForm1.Button5MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin Label3.caption:='Görlitz' end; procedure TForm1.Button6MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin Label3.caption:='Garmisch' end; procedure TForm1.Button7MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin Label3.caption:='Aachen' end; procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin Label3.Caption:='Deutschland' end;

fëí=Éë=åáÅÜí=ÉáåÉ=ëÅÜ∏åÉ=dÉëíÉ=îçå=aÉäéÜáI=Ç~ëë=ìåë=ÇáÉ=o~ÜãÉå=ÇÉê=bêÉáÖåáëJ éêçòÉÇìêÉå= áããÉê= ÖÉëÅÜÉåâí= ïÉêÇÉå\= d~åòÉ= ÑΩåÑ= wìïÉáëìåÖëÄÉÑÉÜäÉ= ãìëëíÉå= ïáê= àÉïÉáäë= òïáëÅÜÉå= begin= ìåÇ= end;= ëÅÜêÉáÄÉåI= ìåÇ= ëÅÜçå= Ü~í= ÇáÉ= _ÉåìíòÉêJ çÄÉêÑä®ÅÜÉ=ÖÉå~ì=ÇáÉ=cìåâíáçå~äáí®íI=ÇáÉ=ÇìêÅÜ=ÇáÉ=^ìÑÖ~ÄÉ=îçêÖÉÖÉÄÉå=ï~êK== §ÄêáÖÉåë=Ó=ï~ë=ïáêÇ=ÇÉåå=áã=i~ÄÉä=~åÖÉòÉáÖíI=ïÉåå=ÇÉê=kìíòÉê=ÇÉå=j~ìëòÉáJ ÖÉê=ΩÄÉê=ÉÄÉå=ÇáÉëÉã=i~ÄÉä=ÄÉïÉÖÉå=ïáêÇ\=k~íΩêäáÅÜW=łaÉìíëÅÜä~åÇK==

4.4

Aktiver und passiver Zugriff auf Datenkerne táê= Ü~ÄÉå= ÖÉäÉêåíI= ïáÉ= ã~å= báÖÉåëÅÜ~ÑíÉå= EéêçéÉêíáÉëF= ÄÉåìíòíI= ìã= ~ìë= ÇÉå= a~íÉåâÉêåÉå= ÇÉë= ÉáÖÉåÉå= çÇÉê= ÑêÉãÇÉê= lÄàÉâíÉ= Éíï~ë= łÜÉê~ìëòìÜçäÉåI= ïáê= Ü~ÄÉå=ÖÉäÉêåíI=ïáÉ=ã~å=éêçéÉêíáÉë=ÄÉåìíòíI=ìã=áå=ÇáÉ=a~íÉåâÉêåÉ=ÇÉë=ÉáÖÉåÉå= çÇÉê= ÑêÉãÇÉê= lÄàÉâíÉ= Éíï~ë= łÜáåÉáåòìÄêáåÖÉå= Ó= ï~ë= ëçää= ìåë= Ç~ê~å= ÜáåÇÉêåI= ÄÉáÇÉë=òì=íìå\== _ä®ííÉêå=ïáê= åçÅÜ=Éáåã~ä=òìêΩÅâ=òì=_áäÇ=QKT=áã=^ÄëÅÜåáíí=QKOKOK=báÖÉåíäáÅÜ=ÄÉJ ëÅÜêÉáÄí=ÇáÉëÉë=_áäÇ=ÖÉå~ì=ÇáÉ=páíì~íáçåI=ìã=ÇáÉ=Éë=åìå=ÖÉÜíK= • få=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=â~åå=Éë=~âíáîÉ=ìåÇ=é~ëëáîÉ=wìÖêáÑÑÉ=~ìÑ=ÇáÉ=a~íÉåJ âÉêåÉ=ÇÉë=ÉáÖÉåÉå=lÄàÉâíë=ìåÇ=ÑêÉãÇÉê=lÄàÉâíÉ=ÖÉÄÉå>== c~åÖÉå=ïáê=Ö~åò=ÉáåÑ~ÅÜ=~åK=báå=cçêãìä~ê=ÄÉëáíòÉ=òïÉá=ΩÄÉêÉáå~åÇÉê=äáÉÖÉåÇÉ= pÅêçääÄ~êëK== == = ST =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= == = ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_44.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_44.bdsproj=~ìëòìï®ÜäÉåK== == tÉåå=ÇÉê=kìíòÉê=áå=ÇÉê=çÄÉêÉå=pÅêçääÄ~ê=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=®åÇÉêí=Epí~åJ Ç~êÇJbêÉáÖåáëFI= ëçää= ëáÅÜ= ÇáÉ= mçëáíáçå= ÇÉë= oÉÖäÉêë= áå= ÇÉê= ìåíÉêÉå= pÅêçääÄ~ê= ~ìíçJ ã~íáëÅÜ=~åé~ëëÉåK== ûåÇÉêí=ÇÉê=kìíòÉê=áå=ÇÉê=ìåíÉêÉå=pÅêçääÄ~êI=ëç=ëçää=ëáÅÜ=ÇáÉ=çÄÉêÉ=~ìíçã~íáëÅÜ= ~åé~ëëÉåK== pÉÜÉå=ïáê=ìåë=ÖäÉáÅÜ=ÇáÉ=ÄÉáÇÉå=bêÉáÖåáëéêçòÉÇìêÉå=~åK=wìÉêëí=ÇáÉ=bêÉáÖåáëéêçJ òÉÇìê=ÑΩê=ÇáÉ=sÉêëÅÜáÉÄìåÖ=ÇÉë=oÉÖäÉêë=áå=ÇÉê=çÄÉêÉå=pÅêçääÄ~êI=ÇK=ÜK=ÇÉê=ûåÇÉJ êìåÖ=~ã=lÄàÉâí=ãáí=ÇÉã=k~ãÉå=ScrollBar1W== procedure TForm1.ScrollBar1Change(Sender: TObject); begin Scrollbar2.Position:=Scrollbar1.Position end;

a~åå= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ÑΩê= ÇáÉ= ûåÇÉêìåÖ= áã= ìåíÉêÉå= lÄàÉâí= ãáí= ÇÉã= îçå= aÉäéÜá=îÉêÖÉÄÉåÉå=k~ãÉå=ScrollBar2W== procedure TForm1.ScrollBar2Change(Sender: TObject); begin Scrollbar1.Position:=Scrollbar2.Position end;

_áäÇ=QKNV=ÄÉëÅÜêÉáÄí=àÉïÉáäë=ÇáÉ=páíì~íáçåW=dÉÜçäí=ïáêÇ=áå=ÄÉáÇÉå=c®ääÉå=~ìë=ÇÉã= ÉáÖÉåÉå=a~íÉåâÉêåI=íê~åëéçêíáÉêí=ïáêÇ=áå=ÇÉå=ÑêÉãÇÉå=a~íÉåâÉêåK= _Éíê~ÅÜíÉå= ïáê= Éáå= å®ÅÜëíÉë= _ÉáëéáÉäW= ^ìÑ= ÇÉê= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ÄÉÑáåÇÉ= ëáÅÜ= òìë®íòäáÅÜ= Éáå= qÉñíÑÉåëíÉê= ãáí= ÇÉã= k~ãÉå= Edit1I= Ç~êìåíÉê= ëÉá= Éáå= i~ÄÉä= ~åJ ÖÉçêÇåÉíI= Ç~ë= îçå= aÉäéÜá= ÇÉå= k~ãÉå= Label1= ÄÉâçããíK= _Éá= àÉÇÉê= ûåÇÉêìåÖI= ÇáÉ= ÇÉê= kìíòÉê= áã= qÉñíÑÉåëíÉê= îçêåáããí= Epí~åÇ~êÇJbêÉáÖåáëFI= ëçää= ~ìíçã~íáëÅÜ= ÇÉê= ~âíìÉääÉ= fåÜ~äí= ÇÉë= qÉñíÑÉåëíÉêë= ~äë= _ÉëÅÜêáÑíìåÖ= ÇÉë= i~ÄÉäë= ~åÖÉòÉáÖí= ïÉêJ ÇÉåK== §ÄÉêäÉÖÉå=ïáê=ìåë=ÇÉå=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=òìã=bêÉáÖåáë=ûåÇÉêìåÖ=áã= qÉñíÑÉåëíÉêW==aáÉ=nìÉääÉ=áëí=ÜáÉê=ÇÉê=a~íÉåâÉêå=ÇÉë=qÉñíÑÉåëíÉêë= Edit1I=EÇÉê=ÉáJ ÖÉåÉ=a~íÉåâÉêåFI=Ç~ë=wáÉä=áëí=ÇÉê=a~íÉåâÉêå=îçå=Label1K== SU= =

QKQ== ^âíáîÉê=ìåÇ=é~ëëáîÉê=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ=

= _áäÇ=QKNVW=^ìë=ÇÉã=ÉáÖÉåÉå=áå=ÇÉå=ÑêÉãÇÉå=a~íÉåâÉêå= kìå=Äê~ìÅÜÉå=ïáê=åìê=åçÅÜ=ÇáÉ=êáÅÜíáÖÉå=báÖÉåëÅÜ~ÑíÉå=EéêçéÉêíáÉëF=~ìëòìï®ÜJ äÉåW= procedure TForm1.Edit1Change(Sender: TObject); begin Label1.Caption:=Edit1.Text end;

aáÉ= áã= _áäÇ= QKNV= ÖÉëÅÜáäÇÉêíÉ= páíì~íáçå= ł~ìë= ÇÉã= ÉáÖÉåÉå= áå= ÇÉå= ÑêÉãÇÉå= a~J íÉåâÉêå=äáÉÖí=~ìÅÜ=ÄÉá=ÇÉã=å®ÅÜëíÉå=_ÉáëéáÉä=îçêI=Ççêí=ëçÖ~ê=òïÉáã~äW== bêïÉáíÉêå= ïáê= ìåëÉêÉ= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= Éáå= ÇêáííÉë= j~äK= kÉÄÉåÉáå~åÇÉê= ïÉêJ ÇÉå=òïÉá=`ÜÉÅâÄçñÉå=éä~íòáÉêíW=iáåâë=ÄÉÑáåÇÉ=ëáÅÜ=ÉáåÉ=`ÜÉÅâÄçñ=ãáí=ÇÉã=k~J ãÉå= CheckBox1I=êÉÅÜíë=Ç~åÉÄÉå=ÉáåÉ=~åÇÉêÉ=`ÜÉÅâÄçñ=ãáí=ÇÉã=k~ãÉå= CheckBox2K== táêÇ=îçã=kìíòÉê=áå=ÇÉê=äáåâÉå=`ÜÉÅâÄçñ=ÖÉâäáÅâí=EÉáå=çÇÉê=~ìëFI=ëçää=~ìíçã~J íáëÅÜ=ÇáÉ=êÉÅÜíÉ=`ÜÉÅâÄçñ=ÇáÉëÉäÄÉ=_ÉäÉÖìåÖ=~ååÉÜãÉåK== táêÇ=îçã=kìíòÉê=áå=ÇÉê=êÉÅÜíÉå=`ÜÉÅâÄçñ=ÖÉâäáÅâí=EÉáå=çÇÉê=~ìëFI=ëçää=~ìíçã~J íáëÅÜ=ÇáÉ=äáåâÉ=`ÜÉÅâÄçñ=ÇáÉëÉäÄÉ=_ÉäÉÖìåÖ=~ååÉÜãÉåK== _ÉáÇÉ=bêÉáÖåáëéêçòÉÇìêÉå=â∏ååÉå=ïáê=ëçÑçêí=ëÅÜêÉáÄÉåI=Ç~=ïáê=ÇÉå=k~ãÉå=ÇÉê= é~ëëÉåÇÉå=éêçéÉêíó= Checked=~ìë=ÇÉã=oÉÖáëíÉêÄä~íí=bfdbkp`e^cqbk=ÇÉê=`ÜÉÅâÄçJ ñÉå=âÉååÉåW== SV =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= procedure TForm1.CheckBox1Click(Sender: TObject); begin Checkbox2.Checked:=Checkbox1.Checked end; procedure TForm1.CheckBox2Click(Sender: TObject); begin Checkbox1.Checked:=Checkbox2.Checked end;

kìå=åçÅÜ=Éáå=äÉíòíÉë=_ÉáëéáÉäI=ÇÉåå=Éë=áëí=ïáêâäáÅÜ=åáÅÜí=ëÅÜïÉêW=aáÉ=_ÉåìíòÉêJ çÄÉêÑä®ÅÜÉ= ïáêÇ= ÉêÖ®åòí= ÇìêÅÜ= ÉáåÉå= _ìííçå= ãáí= ÇÉê= _ÉëÅÜêáÑíìåÖ= WeiterI= Ç~êJ ìåíÉê= ïáêÇ= ÉáåÉ= ïÉáíÉêÉ= pÅêçääÄ~ê= ãáí= pí~åÇ~êÇJpí~êíÉáåëíÉääìåÖ= éä~íòáÉêíW= jáåáJ ãìã= NullI=j~ñáãìã= 100I= mçëáíáçå= NullK= aáÉëÉ= pÅêçääÄ~ê= ÄÉâçããí= îçå= aÉäéÜá= ÑçäÖäáÅÜ=ÇÉå=k~ãÉå=Scrollbar3K= _Éá=àÉÇÉã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ëçää=ëáÅÜ=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=ìã=NM=báåÜÉáJ íÉå=å~ÅÜ=êÉÅÜíë=îÉêëÅÜáÉÄÉåK== procedure TForm1.Button1Click(Sender: TObject); begin ScrollBar3.Position:=ScrollBar3.Position+10 end;

a~ë=pÅÜÉã~=áå=_áäÇ=QKOM=îÉêÇÉìíäáÅÜí=ÇáÉëã~ä=Ç~ë=Éíï~ë=~åÇÉêÉ=sçêÖÉÜÉåW== • aáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=Üçäí=ãáííÉäë=ÇÉê=éêçéÉêíó= Position= òìÉêëí= ÇáÉ= ÖÉïΩåëÅÜíÉ= ^åÖ~ÄÉ= ~ìë= ÇÉã= a~íÉåâÉêå= ÇÉê= pÅêçääÄ~ê= EÑêÉãÇÉë=lÄàÉâíFK== • a~åå=îÉê~êÄÉáíÉí=ëáÉ=ÇáÉëÉ=^åÖ~ÄÉI=áåÇÉã=ëáÉ=ÇáÉ=w~Üä=NM=Üáåòì=~ÇÇáÉêíK= • pÅÜäáÉ≈äáÅÜ= íê~åëéçêíáÉêí= ëáÉ= ÇÉå= åÉìÉå= tÉêí= ïáÉÇÉê= ãáí= ÉáåÉê= éêçéÉêíó= ÇÉëJ ëÉäÄÉå=k~ãÉåë=òìêΩÅâ=áå=ÇÉå=a~íÉåâÉêå=ÇÉê=pÅêçääÄ~ê=EÑêÉãÇÉë=lÄàÉâíFI=ïçJ ãáí=ëçÑçêí=ÇáÉ=åÉìÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=ëáÅÜíÄ~ê=ïáêÇK==

4.5

Aktivierung und Deaktivierung von Steuerelementen táê= ~ääÉ= âÉååÉå= Éë= îçå= táåÇçïëW= hÉáåÉëÑ~ääë= áããÉê= áëí= Éë= ëáååîçääI= Ç~ëë= ÇÉê= kìíòÉê=àÉÇÉë=píÉìÉêÉäÉãÉåíI=Ç~ë=ëáÅÜ=~ìÑ=ÉáåÉã=cçêãìä~ê=ÄÉÑáåÇÉíI=~ìÅÜ=àÉÇÉêJ òÉáí=ÄÉÇáÉåÉå=â∏ååÉå=ëçääíÉK== báå=åÉìÉë=_ÉáëéáÉä=Ç~òìW=^ìÑ=ÉáåÉã=cçêãìä~ê=ÄÉÑáåÇÉå=ëáÅÜ=Éáå=~åÑ~åÖë=äÉÉêÉë= qÉñíÑÉåëíÉêI=Éáå=_ìííçå=ãáí=ÇÉê=_ÉëÅÜêáÑíìåÖ= Übernehmen=ìåÇ=Éáå=~åÑ~åÖë=ÉÄÉåJ Ñ~ääë=ìåÄÉëÅÜêáÑíÉíÉë=i~ÄÉäK== _Éáã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ëçää=ÇÉê=~âíìÉääÉ=fåÜ~äí=ÇÉë=qÉñíÑÉåëíÉêë=~äë=_ÉëÅÜêáÑJ íìåÖ=ÇÉë=i~ÄÉäë=ÉêëÅÜÉáåÉåK==

TM= =

QKR== ^âíáîáÉêìåÖ=ìåÇ=aÉ~âíáîáÉêìåÖ=îçå=píÉìÉêÉäÉãÉåíÉå=

= _áäÇ=QKOMW=^âíáîÉê=ìåÇ=é~ëëáîÉê=wìÖêáÑÑ=~ìÑ=ÑêÉãÇÉå=a~íÉåâÉêå= gÉíòí=ëçää=ìåë=~ÄÉê=åáÅÜí=îçêÇÉêÖêΩåÇáÖ=ÇÉê=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ÑΩê=Ç~ë= pí~åÇ~êÇJbêÉáÖåáë=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ÄÉëÅÜ®ÑíáÖÉå=Ó=ÇáÉëÉê=áëí=áåòïáëÅÜÉå=ÄÉJ â~ååí=EëáÉÜÉ=^ÄëÅÜåáíí=QKQFK=kÉáåI=îáÉäãÉÜê=ïçääÉå=ïáê=âÉååÉå=äÉêåÉåI=ïáÉ=ã~å= Ç~ÑΩê=ëçêÖíI=Ç~ëë=ÇÉê=kìíòÉê=ÄÉá=äÉÉêÉã=qÉñíÑÉåëíÉê=ÇÉå=_ìííçå=ΩÄÉêÜ~ìéí=åáÅÜí= ÄÉÇáÉåÉå=â~ååK== a~òì= ÖáÄí= Éë= òïÉá= j∏ÖäáÅÜâÉáíÉåW= aÉê= _ìííçå= ïáêÇ= î∏ääáÖ= ìåëáÅÜíÄ~ê= ÖÉã~ÅÜíI= ëçä~åÖÉ= Ç~ë= qÉñíÑÉåëíÉê= äÉÉê= áëí= Ó= çÇÉê= Éê= ïáêÇ= áå~âíáî= ÖÉëÅÜ~äíÉíK= a~ë= äÉíòíÉêÉ= ÄÉÇÉìíÉíI=Ç~ëë=Éê=òï~ê=ëáÅÜíÄ~ê=ÄäÉáÄíI=~ÄÉê=âÉáåÉå=häáÅâ=ÉåíÖÉÖÉååáããíK=a~ãáí= ïçääÉå=ïáê=ìåë=òìÉêëí=ÄÉëÅÜ®ÑíáÖÉåK=

4.5.1

property Enabled

a~òì=ÖáÄí=Éë=áã=lÄàÉâíáåëéÉâíçê=ÇáÉ=wÉáäÉ=ãáí=ÇÉê=báÖÉåëÅÜ~Ñí=EnabledK==

= _áäÇ=QKONW=báÖÉåëÅÜ~Ñí=Enabled= TN =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= táÉ= áå= _áäÇ= QKON= òì= ÉêâÉååÉå= áëíI= ãìëë= ÇáÉëÉê= éêçéÉêíó= ÉáåÉê= ÇÉê= ÄÉáÇÉå= äçÖáJ ëÅÜÉå= tÉêíÉ= False= çÇÉê= True= òìÖÉïáÉëÉå= ïÉêÇÉåK= pÉÜÉå= ïáê= ìåë= ÇÉå= råíÉêJ ëÅÜáÉÇ=áå=_áäÇ=QKOO=~åW=

== _áäÇ=QKOOW=få~âíáîÉê=ìåÇ=~âíáîÉê=_ìííçå= tÉåå=òì=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=Ç~ë=qÉñíÑÉåëíÉê=äÉÉê=áëíI=ëçääíÉ=òì=_ÉÖáåå=ÇÉê=i~ìÑJ òÉáí=ÇÉê=_ìííçå=áå~âíáî=ëÉáåW=báåÉ=_ÉÇáÉåìåÖ=ÇìêÅÜ=ÇÉå=kìíòÉê=ï®êÉ=òì=ÇáÉëÉã= wÉáíéìåâí= ëáååäçëK= fã= lÄàÉâíáåëéÉâíçê= ïáêÇ= ÑçäÖäáÅÜ= ÇáÉ= wÉáäÉ= Enabled= ÑΩê= ÇÉå= pí~êí=ÇÉê=i~ìÑòÉáí=~ìÑ=False=ÖÉëÉíòíK==

4.5.2 ==

Aktivierung des Steuerelements

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_452.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_452.bdsproj=~ìëòìï®ÜäÉåK== == t~åå=~ÄÉê=ïáêÇ=ÇáÉ=_ÉÇáÉåìåÖ=ÇÉë=_ìííçå=ëáååîçää\=^åíïçêíW=tÉåå=ÇÉê=kìíòÉê= áå=Ç~ë=qÉñíÑÉåëíÉê=Éíï~ë=ÉáåÖáÄíK== a~ë=ÜÉá≈íI=ïáê=ÄÉëÅÜ~ÑÑÉå=ìåë=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=ûåÇÉêìåÖ= áã= qÉñíÑÉåëíÉê= Epí~åÇ~êÇJbêÉáÖåáëF= ìåÇ= íê~ÖÉå= Ççêí= ÇÉå= wìïÉáëìåÖëÄÉÑÉÜä= òìê= ^âíáîáÉêìåÖ=ÇÉë=_ìííçåë=ÉáåK== aÉå=k~ãÉå=ÇÉê=é~ëëÉåÇÉå=éêçéÉêíó=âÉååÉå=ïáê=~ìë=ÇÉê=báÖÉåëÅÜ~ÑíI=ãáí=ÇÉêÉå= eáäÑÉ=ïáê=ÇáÉ=sçêÉáåëíÉääìåÖ=îçêå~ÜãÉåK=páÉ=ÜÉáëí=EnabledK===== procedure TForm1.Edit1Change(Sender: TObject); begin Button1.Enabled:=True end;

_áäÇ=QKOP=òÉáÖí=ìåë=ÇáÉ=táêâìåÖW=pçÄ~äÇ=ÇìêÅÜ=ÇÉå=kìíòÉê=ÇáÉ=ÉêëíÉ=báåÖ~ÄÉ=áå= Ç~ë=qÉñíÑÉåëíÉê=ÉêÑçäÖíI=ïáêÇ=ÇÉê=_ìííçå=~ìíçã~íáëÅÜ=~âíáî=ìåÇ=Ç~ãáí=ÄÉÇáÉåÄ~êK= TO= =

QKS== sÉêëíÉÅâÉå=îçå=píÉìÉêÉäÉãÉåíÉå= k~íΩêäáÅÜ=ãΩëëíÉå=ïáê=åçÅÜ=Ç~ÑΩê=ëçêÖÉåI=Ç~ëë=ÇÉê=_ìííçå=ïáÉÇÉê=áå~âíáî=ïáêÇI= ïÉåå=ÇÉê=kìíòÉê=ÇÉå=fåÜ~äí=ÇÉë=qÉñíÑÉåëíÉêë=ä∏ëÅÜíK==

= _áäÇ=QKOPW=^âíáîáÉêìåÖ=ÇÉë=_ìííçåë=ÄÉá=báåÖ~ÄÉ=áå=Ç~ë=qÉñíÑÉåëíÉê= bíï~ë=dÉÇìäÇ=ÄáííÉ=Ó=Ç~òì=âçããÉå=ïáê=áã=h~éáíÉä=RKNKOK=

4.5.3

Inaktive Menü-Einträge

fã=_áäÇ=QKOQ=áëí=òì=ëÉÜÉåI=Ç~ëë=ã~å=Ó=ïáÉ=áå=~ääÉå=táåÇçïëJ^åïÉåÇìåÖÉå=çÑí= éê~âíáòáÉêí=Ó=~ìÅÜ=báåíê®ÖÉ=áå=jÉåΩë=~âíáî=ìåÇ=áå~âíáî=ÉáåëíÉääÉå=â~ååK== eáÉê= ëçää= ÇÉê= kìíòÉê= Finnland= ìåÇ= Ungarn= òï~ê= ëÉÜÉåI= ~ÄÉê= åáÅÜí= ~ìëï®ÜäÉå= ÇΩêÑÉåK=

== _áäÇ=QKOQW=få~âíáîÉ=báåíê®ÖÉ=áå=ÉáåÉã=jÉåΩ=

4.6

Verstecken von Steuerelementen

4.6.1

property Visible

jáí=ÇÉê=báÖÉåëÅÜ~Ñí=Visible=E_áäÇ=QKORFI=ÇáÉ=ëáÅÜ=~äë=ÖäÉáÅÜå~ãáÖÉ=éêçéÉêíó=áå=bêJ ÉáÖåáëéêçòÉÇìêÉå=îÉêïÉåÇÉå=ä®ëëíI=â∏ååÉå=îáëìÉääÉ=lÄàÉâíÉ=ëçÖ~ê=ëáÅÜíÄ~ê=ìåÇ= ìåëáÅÜíÄ~ê=ÖÉã~ÅÜí=ïÉêÇÉåK==

== _áäÇ=QKORW=báÖÉåëÅÜ~Ñí=Visible= TP =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= tÉåå=ïáê=ÇÉã=kìíòÉê=ÇÉå=_ìííçå=ΩÄÉêÜ~ìéí=Éêëí=Ç~åå=òÉáÖÉå=ïçääÉåI=ïÉåå=Éê= áã= qÉñíÑÉåëíÉê= Éíï~ë= ÉáåÖÉíê~ÖÉå= Ü~íI= ãΩëëÉå= ïáê= ÇáÉ= báÖÉåëÅÜ~Ñí= Visible= áã= lÄàÉâíáåëéÉâíçê=ÇÉë=_ìííçåë=ÑΩê=ÇÉå=pí~êí=ÇÉê=i~ìÑòÉáí=~ìÑ=False=ëÉíòÉåK==

4.6.2 ==

Steuerelement sichtbar machen

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_462.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_462.bdsproj=~ìëòìï®ÜäÉåK== == bêëí=ÄÉáã=báåíêÉíÉå=ÇÉë= bêÉáÖåáëëÉë= ûåÇÉêìåÖ=áå= ÇÉê=qÉñíÄçñ= ëçêÖÉå=ïáê=Ç~åå= ãáííÉäë=ÇÉê=éêçéÉêíó=Visible=Ç~ÑΩêI=Ç~ëë=ÇÉê=_ìííçå=ëáÅÜíÄ~ê=ïáêÇK=_áäÇ=QKOS=òÉáÖí= ÇáÉ=páíì~íáçå=ÄÉá=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=ìåÇ=å~ÅÜ=ÇÉê=ÉêëíÉå=báåÖ~ÄÉ=áå=Ç~ë=qÉñíJ ÑÉåëíÉêK== procedure TForm1.Edit1Change(Sender: TObject); begin Button1.Visible:=True end;

== _áäÇ=QKOSW=råëáÅÜíÄ~êÉê=ìåÇ=ëáÅÜíÄ~êÉê=_ìííçå= a~ë= ïÉÅÜëÉäëÉáíáÖÉ= sÉêëíÉÅâÉå= ìåÇ= ^åòÉáÖÉå= îçå= _ÉÇáÉåÉäÉãÉåíÉå= ãáí= eáäÑÉ= ÇÉê=éêçéÉêíó=Visible=ïáêÇ=áåëÖÉë~ãí=îáÉä=ëÉäíÉåÉê=îÉêïÉåÇÉí=~äë=ÇáÉ=^âíáîáÉêìåÖ= ÄòïK=aÉ~âíáîáÉêìåÖ=îçå=_ÉÇáÉåìåÖëÉäÉãÉåíÉåK== a~ë=áëí=~ìÅÜ=Ñ~áê=ÖÉÖÉåΩÄÉê=ÇÉã=kìíòÉêW=bê=ëçää=ëÅÜäáÉ≈äáÅÜ=ïáëëÉåI=ï~ë=ÇáÉ=_ÉJ åìíòÉêçÄÉêÑä®ÅÜÉ=ÑΩê=áÜå=ÄÉêÉáíÜ®äíI=~ìÅÜ=ïÉåå=Éê=Ç~ë=áå~âíáîÉ=píÉìÉêÉäÉãÉåí=áã= jçãÉåí=åáÅÜí=ÄÉÇáÉåÉå=Ç~êÑ=ìåÇ=â~ååK==

4.7

Namensbeschaffung für passende property _Éíê~ÅÜíÉå=ïáê=Ç~ë=_áäÇ=QKOTI=Ç~ë=ìåë=ÇÉå=ÄáëÜÉêáÖÉå=jÉÅÜ~åáëãìë=åçÅÜ=Éáåã~ä= Éêâä®êíI= ïáÉ= ÉáåÉ= bêÉáÖåáëéêçòÉÇìê= é~ëëáî= ìåÇLçÇÉê= ~âíáî= ãáííÉäë= ÉáåÉê= é~ëëÉåJ ÇÉå= éêçéÉêíó= ~ìÑ= ÇÉå= ÉáÖÉåÉå= çÇÉê= ÉáåÉå= ÑêÉãÇÉå= a~íÉåâÉêå= òìÖêÉáÑÉå= â~ååI= ìã= Ç~ãáí= îçã= píÉìÉêÉäÉãÉåí= Éíï~ë= òì= ÉêÑ~ÜêÉå= ÄòïK= ~ã= çÇÉê= áã= píÉìÉêÉäÉJ ãÉåí=Éíï~ë=òì=îÉê®åÇÉêåK==

TQ= =

QKT== k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó=

== _áäÇ=QKOTW=nìÉääÉ=ìåÇ=wáÉä=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê= aáÉëÉê=jÉÅÜ~åáëãìë=ÑìåâíáçåáÉêí=~ÄÉê=åìêI=ïÉåå=ã~å=ÖÉå~ì=ïÉá≈I=ïáÉ=ÇáÉ=ÉåíJ ëéêÉÅÜÉåÇÉ=báÖÉåëÅÜ~Ñí=EéêçéÉêíóF=ÜÉá≈íI=ãáí=ÇÉê=~ìÑ=ÇÉå=a~íÉåâÉêå=òìÖÉÖêáÑÑÉå= ïáêÇK==

4.7.1 ==

property-Namen im Objektinspektor finden

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_471.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_471.bdsproj=~ìëòìï®ÜäÉåK== = pÉÜÉå=ïáê=ìåë=Ç~ë=sçêÖÉÜÉå=åçÅÜ=Éáåã~ä=~å=ÉáåÉã=_ÉáëéáÉä=~åK=få=òïÉá=o~ÇáçJ ÖêìééÉå= EëK= ^ÄëÅÜåáíí= PKPF= ãáí= ÇÉå= k~ãÉå= RadioGroup1= ìåÇ= RadioGroup2= ÄÉÑáåJ ÇÉå= ëáÅÜ= åÉÄÉåÉáå~åÇÉê= ÇáÉ= k~ãÉå= ÇÉê= ÇÉìíëÅÜÉå= _ìåÇÉëä®åÇÉê= ìåÇ= ÇÉêÉå= e~ìéíëí®ÇíÉ=E_áäÇ=QKOUFK== aáÉ= ^ìÑÖ~ÄÉ= áëí= ÉáåÑ~ÅÜW= táêÇ= äáåâë= Éáå= _ìåÇÉëä~åÇ= ~ìëÖÉï®ÜäíI= ëç= ëçää= ~ìíçJ ã~íáëÅÜ=êÉÅÜíë=ÇáÉ=òìÖÉÜ∏êáÖÉ=e~ìéíëí~Çí=ÇáÉ=j~êâáÉêìåÖ=ÉêÜ~äíÉåK=táêÇ=Ç~ÖÉJ ÖÉå=êÉÅÜíë=ÉáåÉ=i~åÇÉëÜ~ìéíëí~Çí=ÇìêÅÜ=ÇÉå=kìíòÉê=~ìëÖÉï®ÜäíI=ëç=ëçää=Ç~ë=òìJ ÖÉÜ∏êáÖÉ=_ìåÇÉëä~åÇ=ÇáÉ=j~êâáÉêìåÖ=ÄÉâçããÉåK== TR =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= aáÉ=o~ÜãÉå=ÇÉê=ÄÉáÇÉå=bêÉáÖåáëéêçòÉÇìêÉå=ëáåÇ=ÇìêÅÜ=açééÉäâäáÅâ=ëÅÜåÉää=ÄÉJ ëÅÜ~ÑÑíI=ïÉáä=Éë=ëáÅÜ=áå=ÄÉáÇÉå=c®ääÉå=ìã=Ç~ë=àÉïÉáäáÖÉ= pí~åÇ~êÇJbêÉáÖåáë=Ü~åJ ÇÉäíK=cΩê=ÇÉå=fåÜ~äí=áëí=Ç~ë=tÉëÉåíäáÅÜÉ=~ìÅÜ=âä~êW==

= _áäÇ=QKOUW=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=ìåÇ=å~ÅÜ=ÉáåÉê=^ìëï~Üä== táêÇ= áå= ÇÉê= i®åÇÉêÖêìééÉ= ÖÉï®ÜäíI= ãìëë= çÑÑÉåÄ~ê= cçäÖÉåÇÉë= éêçÖê~ããáÉêí= ïÉêÇÉåW== Städte-Gruppe.Positionsproperty := Länder-Gruppe.Positionsproperty

táêÇ=áå=ÇÉê=pí®ÇíÉÖêìééÉ=ÖÉï®ÜäíI=áëí=Ç~ÖÉÖÉå=ÑçäÖÉåÇÉê=wìïÉáëìåÖëÄÉÑÉÜä=~ìÑJ òìëÅÜêÉáÄÉåW== Länder-Gruppe.Positionsproperty:= Städte-Gruppe.Positionsproperty

aáÉ=i®åÇÉêJdêìééÉ=ÜÉá≈í= RadioGroup1I=ÇáÉ=pí®ÇíÉJdêìééÉ=ÜÉá≈í= RadioGroup2I=Ç~ë= ë~Öí=ìåë=ÇÉê=lÄàÉâíáåëéÉâíçêK=açÅÜ=ïáÉ=ÜÉá≈í=ÇáÉ=éêçéÉêíóI=ÇáÉ=ÇáÉ=mçëáíáçå=Üçäí= ìåÇ=ÄêáåÖí\=

=== _áäÇ=QKOVW=ItemIndex=~ìÑ=ÓN=îçêÉáåÖÉëíÉääíW=hÉáåÉ=pí~êí~ìëï~Üä= bêáååÉêå=ïáê=ìåë=~å=ÇÉå=^ÄëÅÜåáíí=PKPW=aáÉ=ÖÉëìÅÜíÉ=éêçéÉêíó=ÜÉá≈í=ItemIndexK= TS= =

QKT== k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó= páÉ=Ü~í=Ó=ïáÉ=~ääÉ=éêçéÉêíáÉëI=ãáí=ÇÉåÉå=ïáê=ÄáëÜÉê=~êÄÉáíÉíÉå=Ó=Ç~ë=mêáîáäÉÖI=Ç~ëë= ëáÉ=ëçÖ~ê=áã=oÉÖáëíÉêÄä~íí=bfdbkp`e^cqbk=ÇÉë=lÄàÉâíáåëéÉâíçêë=E_áäÇ=QKOVF=òì=ÑáåJ ÇÉå= áëíK= táêÇ= áå= ÇÉê= wÉáäÉ= ItemIndex= ÇÉê= tÉêí= ãáåìë= báåë= ÉáåÖÉíê~ÖÉå= ÖáÄí= Éë= ~åÑ~åÖë=âÉáåÉ=j~êâáÉêìåÖ=áå=ÇÉê=o~ÇáçÖêìééÉK== ^åëçåëíÉå= ÄÉÖáååí= ÇáÉ= w®ÜäìåÖ= ÇÉê= mçëáíáçå= áããÉê= ãáí= kìääK= EcΩê= ÇáÉ= j~êâáÉJ êìåÖ=îçå=Sachsen-Anhalt=ÄòïK=Magdeburg=ãΩëëíÉ=ÇÉãå~ÅÜ=ÇáÉ=kÉìå=ÉáåÖÉíê~ÖÉå= ïÉêÇÉåFK= kìå=ëáåÇ=~ääÉ=fåÑçêã~íáçåÉå=îÉêÑΩÖÄ~êI=ÇÉê=k~ãÉ=ÇÉê=é~ëëÉåÇÉå=éêçéÉêíó=áëí=ÄÉJ â~ååíI= ìåÇ= ÇáÉ= fåÜ~äíÉ= ÇÉê= ÄÉáÇÉå= bêÉáÖåáëéêçòÉÇìêÉå= â∏ååÉå= éêçÖê~ããáÉêí= ïÉêÇÉåW== procedure TForm1.RadioGroup1Click(Sender: TObject); begin RadioGroup2.ItemIndex:=RadioGroup1.ItemIndex end; procedure TForm1.RadioGroup2Click(Sender: TObject); begin RadioGroup1.ItemIndex:=RadioGroup2.ItemIndex end;

4.7.2 ==

Eigenschaft fehlt im Objektinspektor

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_472.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_472.bdsproj=~ìëòìï®ÜäÉåK== == _Éíê~ÅÜíÉå= ïáê= Éáå= ëÅÜÉáåÄ~ê= ÖäÉáÅÜïÉêíáÖÉë= mêçÄäÉãW= aáÉ= i®åÇÉê= ìåÇ= i~åÇÉëJ Ü~ìéíëí®ÇíÉ= ÄÉÑáåÇÉå= ëáÅÜ= òïÉá= iáëíÉåI= ÇK= ÜK= áå= òïÉá= píÉìÉêÉäÉãÉåíÉå= ãáí= ÇÉå= îçå=aÉäéÜá=îÉêÖÉÄÉåÉå=k~ãÉå=ListBox1=ìåÇ=ListBox2=E_áäÇ=QKPMFK== táÉÇÉêìã=ëçää=òì=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=âÉáåÉ=j~êâáÉêìåÖ=ÖÉëÉíòí=ëÉáåI=ìåÇ=ïáÉJ ÇÉêìã=ëçää=ëáÅÜ=ÄÉá=t~Üä=áå=ÇÉê=äáåâÉå=iáëíÉ=ÇáÉ=j~êâáÉêìåÖ=êÉÅÜíë=~ìíçã~íáëÅÜ= ~åé~ëëÉå=ìåÇ=ìãÖÉâÉÜêíK== aáÉ=o~ÜãÉå=ÇÉê=bêÉáÖåáëéêçòÉÇìêÉå=ÄÉâçããÉå=ïáê=ëçÑçêí=ÇìêÅÜ=ÇÉå=açééÉäJ âäáÅâI=ëÅÜäáÉ≈äáÅÜ=ïçääÉå=ïáê=~ìÅÜ=ÜáÉê=oÉ~âíáçåÉå=~ìÑ=ÇáÉ= pí~åÇ~êÇJbêÉáÖåáëëÉ= EëáÉÜÉ=^ÄëÅÜåáíí=PKNF=éêçÖê~ããáÉêÉåK= cΩê=ÇÉå=fåÜ~äí=áëí=~ìÅÜ=îçã=mêáåòáé=ÜÉê=ïáÉÇÉê=~ääÉë=âä~êK=táêÇ=áå=ÇÉê=i®åÇÉêJ äáëíÉ=ÖÉï®ÜäíI=ãìëë=ÑçäÖÉåÇÉë=éêçÖê~ããáÉêí=ïÉêÇÉåW== TT =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= Städte-Liste.Positionsproperty:=Länder-Liste.Positionsproperty

táêÇ=áå=ÇÉê=pí®ÇíÉäáëíÉ=ÖÉï®ÜäíI=áëí=ÑçäÖÉåÇÉê=wìïÉáëìåÖëÄÉÑÉÜä=~ìÑòìëÅÜêÉáÄÉåW== Länder-Liste.Positionsproperty:=Städte-Liste.Positionsproperty

açÅÜ=åìå=âçããí=Éáå=mêçÄäÉãI=Ç~ë=ïáê=ÄáëÜÉê=åáÅÜí=â~ååíÉåW== táê= â∏ååÉå= Ç~ë= oÉÖáëíÉêÄä~íí= bfdbkp`e^cqbk= áã= lÄàÉâíáåëéÉâíçê= òìã= lÄàÉâí= ãáí=ÇÉã=k~ãÉå= ListBox1=áããÉê=ìåÇ=áããÉê=ïáÉÇÉê=ëíìÇáÉêÉåK=táê=â∏ååÉå=Ç~J ÄÉá=~ìÅÜ=~ääÉ=ÉåÖäáëÅÜÉå=sçâ~ÄÉäå=ÑäÉá≈áÖ=áåë=aÉìíëÅÜÉ=ΩÄÉêëÉíòÉåI=e~åÇÄΩÅÜÉê= òì=eáäÑÉ=åÉÜãÉåW== bë=ïáêÇ=ìåë=åáÅÜí=ÖÉäáåÖÉåI=Ççêí=ÉáåÉ=wÉáäÉ=òì=ÑáåÇÉåI=ãáí=ÇÉêÉå=eáäÑÉ=ÇáÉ=mçëáJ íáçå=ÇÉê=j~êâáÉêìåÖ=áå=ÉáåÉê=iáëíÄçñ=îçêÉáåÖÉëíÉääí=ïÉêÇÉå=â~ååK=báåÉ=ÇÉê~êíáÖÉ= éêçéÉêíó=ëÅÜÉáåí=òì=ÑÉÜäÉåK== lÇÉê=ïìêÇÉ=ëáÉ=åìê=åáÅÜí=áå=Ç~ë=oÉÖáëíÉêÄä~íí=bfdbkp`e^cqbk=ÇÉë=lÄàÉâíáåëéÉâJ íçêë=~ìÑÖÉåçããÉå\==

== _áäÇ=QKPMW=wïÉá=iáëíÉå=ÄÉáã=pí~êí=ìåÇ=å~ÅÜ=ÉáåÉê=^ìëï~Üä== a~ãáí= ëíÉÜÉå= ïáê= îçê= ÇÉã= mêçÄäÉã= ÇÉê= pìÅÜÉ= å~ÅÜ= ÇÉã= k~ãÉå= ÇÉêàÉåáÖÉå= éêçéÉêíóI= ÇáÉ= ÇáÉ= mçëáíáçå= ÇÉê= j~êâáÉêìåÖ= ~ìë= ÉáåÉã= iáëíÉåJa~íÉåâÉêå= ÜÉê~ìëJ Üçäí=ìåÇLçÇÉê=áå=ÉáåÉå=iáëíÉåJa~íÉåâÉêå=ÜáåÉáåÄêáåÖíK=dáÄí=Éë=ëáÉ=ΩÄÉêÜ~ìéí\== aáÉ=i∏ëìåÖ=ä~ìíÉíW=aáÉ=ÖÉëìÅÜíÉ=éêçéÉêíó=ÖáÄí=ÉëI=~ÄÉê=ëáÉ=ãìëë=~å=~åÇÉêÉê=píÉääÉ= ÖÉëìÅÜí=ìåÇ=ÖÉÑìåÇÉå=ïÉêÇÉåK==

4.7.3

Information durch die Punktliste

_áäÇ=QKPN=òÉáÖí=ÉëW=tÉåå=ã~å=ÄÉáã=pÅÜêÉáÄÉå=îçã=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìêI= å~ÅÜ=ÇÉã=k~ãÉå=ÇÉë=lÄàÉâíëI=ÄÉáã=báåíáééÉå=ÇÉë=mìåâíÉëI=âå~éé=ÉáåÉ=pÉâìåJ ÇÉ=ï~êíÉíI=ÉêäÉÄí=ã~å=Ç~ë=^ìÑâä~ééÉå=ÉáåÉë=ÄÉëçåÇÉêÉå=jÉåΩëK= bë=ÉêëÅÜÉáåí=ÉáåÉ=^åòÉáÖÉI=ÇáÉ=ïáê=ïÉÖÉå=ÇÉë=sçêÖÉÜÉåë=òì=áÜêÉê=_ÉëÅÜ~ÑÑìåÖ= ~Ä=àÉíòí=ÇáÉ=mìåâíäáëíÉ=åÉååÉå=ïçääÉåK=

TU= =

QKT== k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó= få=ÇÉê=mìåâíäáëíÉ=ÄÉÑáåÇÉå=ëáÅÜ=ëçïçÜä=ÇáÉàÉåáÖÉå=éêçéÉêíáÉëI=ÇáÉ=ÄÉêÉáíë=~äë=báJ ÖÉåëÅÜ~ÑíÉå= ~ìë= ÇÉã= lÄàÉâíáåëéÉâíçê= ÇÉê= iáëíÉ= ÄÉâ~ååí= ëáåÇI= ~äë= ~ìÅÜ= îáÉäÉ= ïÉáíÉêÉI=ÄáëÜÉê=ìåÄÉâ~ååíÉI=òìë®íòäáÅÜÉ=éêçéÉêíáÉëK==

= _áäÇ=QKPNW=mìåâíäáëíÉ= j~å=ÉêâÉååí=ëáÉ=~ääÉ=~å=ÇÉã=pÅÜäΩëëÉäïçêí= propertyK=^ääÉêÇáåÖëW=fÜê=k~ãÉ=Ç~êÑ= åáÅÜí=ãáí=On=ÄÉÖáååÉåK== • ^ääÉ= éêçéÉêíáÉëI= ÇK= ÜK= ~ääÉ= jÉÅÜ~åáëãÉå= òìã= ~âíáîÉå= ìåÇLçÇÉê= é~ëëáîÉå= wìJ ÖêáÑÑ= ~ìÑ= a~íÉåâÉêåÉ= îçå= îáëìÉääÉå= lÄàÉâíÉåI= ÉêâÉååí= ã~å= áå= ÇÉê= mìåâíäáëíÉ= Ç~ê~åI= Ç~ëë= ëáÉ= ãáí= ÇÉê= qóéJbêâä®êìåÖ= property= îÉêëÉÜÉå= ëáåÇ= ìåÇ= Ç~ëë= áÜê= k~ãÉ=åáÅÜí=ãáí=ÇÉå=ÄÉáÇÉå=_ìÅÜëí~ÄÉå=On=ÄÉÖáååíK=

4.7.4

Information über die Art der Zuweisung

bêáååÉêå=ïáê=ìåë=~å=Ç~ë=_áäÇ=QKOUW=fëí=ÉáåÉ=éêçéÉêíó=áã=oÉÖáëíÉêÄä~íí=bfdbkp`e^cJ qbk= ÇÉë= lÄàÉâíáåëéÉâíçêë= ~ìÑÖÉäáëíÉí= ÉêâÉååí= ã~å= êÉÅÜíë= Ç~åÉÄÉåI= ï~ë= ÇáÉëÉ= éêçéÉêíó=äáÉÑÉêí=ìåÇ=Äê~ìÅÜíK== açÅÜ=ïáÉ=ÉêÑ®Üêí=ã~åI=ï~ë=ÉáåÉ=éêçéÉêíó=äáÉÑÉêí=ìåÇ=Äê~ìÅÜíI=ïÉåå=ëáÉ=åáÅÜí=ëç= éêáîáäÉÖáÉêí=áëíI=Ç~ëë=ëáÉ=áã=lÄàÉâíáåëéÉâíçê=~ìÑÖÉäáëíÉí=áëí\==== pÉÜÉå=ïáê=ìåë=~äë=^åíïçêí=~ìÑ=ÇáÉëÉ=cê~ÖÉ=áå=_áäÇ=QKPN=ÇáÉ=ÜÉêîçêÖÉÜçÄÉåÉ=wÉáJ äÉ=~ìë=ÇÉê=mìåâíäáëíÉ=~åW= property ItemIndex: Integer

oÉÅÜíë=îçã=açééÉäéìåâí=â∏ååÉå=ïáê=ÇáÉ=ÖäÉáÅÜïÉêíáÖÉ=fåÑçêã~íáçå=~ÄäÉëÉåK= • aáÉ=éêçéÉêíó=ItemIndexI=ãáí=ÇÉê=ÇáÉ=mçëáíáçå=ÇÉê=j~êâáÉêìåÖ=áå=ÉáåÉê=iáëíÉ=~ìë= ÇÉã=a~íÉåâÉêå=ÖÉÜçäí=ÄòïK=áå=ÇÉå=a~íÉåâÉêå=ÖÉÄê~ÅÜí=ïÉêÇÉå=â~ååI=äáÉÑÉêí= ÄòïK=ÄÉå∏íáÖí=ÉáåÉ=Ö~åòÉ=w~Üä=EIntegerFK== gÉíòí=ëáåÇ=~ääÉ=fåÑçêã~íáçåÉå=îçêÜ~åÇÉåI=ÇáÉ=ïáê=òìê=i∏ëìåÖ=ÇÉê=^ìÑÖ~ÄÉ=ÄÉå∏J íáÖÉåW== aáÉ=ÄÉáÇÉå=îáëìÉääÉå=lÄàÉâíÉ=ÜÉá≈Éå=ListBox1=ìåÇ=ListBox2I=ÇáÉ=éêçéÉêíó=ÑΩê=ÇáÉ= mçëáíáçå=ÇÉê=j~êâáÉêìåÖ=ÜÉá≈í=ItemIndexK== pçãáí=â∏ååÉå=ïáê=ÇáÉ=o~ÜãÉå=ÇÉê=ÄÉáÇÉå=bêÉáÖåáëéêçòÉÇìêÉå=ÜÉêëíÉääÉå=ä~ëëÉå= ìåÇ=ÇáÉ=fåÜ~äíÉ=ëÅÜêÉáÄÉåW==

TV =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= procedure TForm1.ListBox1Click(Sender: TObject); begin Listbox2.ItemIndex:=Listbox1.ItemIndex end; procedure TForm1.ListBox2Click(Sender: TObject); begin Listbox1.ItemIndex:=Listbox2.ItemIndex end;

4.7.5

Start-Markierung in Listen setzen

fã= lÄàÉâíáåëéÉâíçê= îçå= iáëíÉå= ÖáÄí= ÉëI= Ç~ë= ÉêÑìÜêÉå= ïáê= ÉÄÉåI= âÉáåÉ= éêçéÉêíó= òìê=sçêÉáåëíÉääìåÖ=ÇÉê=pí~êíJj~êâáÉêìåÖ=áå=ÉáåÉê=iáëíÉK=fëí=Ç~ãáí=ëçäÅÜ=ÉáåÉ=sçêJ ÉáåëíÉääìåÖ=ÖÉåÉêÉää=ìåã∏ÖäáÅÜ\= kÉáåK= jáí= eáäÑÉ= ÇÉê= ÖÉÑìåÇÉåÉå= éêçéÉêíó= ItemIndex= ä®ëëí= ëáÅÜ= ÇìêÅÜ= ÉáåÉ= ÄÉJ ëíáããíÉ=bêÉáÖåáëéêçòÉÇìê=Ç~ÑΩê=ëçêÖÉåI=Ç~ëë=ÄÉá= _ÉÖáåå=ÇÉê=i~ìÑòÉáí=ÇáÉ=wÉáäÉ= Sachsen-Anhalt= ãáí= ÇÉê= e~ìéíëí~Çí= Magdeburg= ÄÉêÉáíë= ÇáÉ= j~êâáÉêìåÖ= íê®Öí= E_áäÇ= QKPOFK= báå=açééÉäâäáÅâ=~ìÑ=Ç~ë=cçêãìä~ê=EëáÉÜÉ=^ÄëÅÜåáíí=OKOKTF=äáÉÑÉêí=ìåë=ÄÉâ~ååíäáÅÜ= ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=bêÉáÖåáë= CreateW=a~ë=cçêãìä~ê=ïáêÇ= ÉêòÉìÖíK= cçäÖäáÅÜ= Äê~ìÅÜÉå= ïáê= ~äë= fåÜ~äí= ÇáÉëÉê= bêÉáÖåáëéêçòÉÇìê= åìê= ÇáÉ= pí~êíJj~êâáÉJ êìåÖ= òì= éêçÖê~ããáÉêÉåI= ïçÄÉá= ïÉÖÉå= ÇÉê= òïÉá= wìïÉáëìåÖÉå= Ç~ë= pÉãáâçäçå= ~äë=qêÉååòÉáÅÜÉå=òì=ÄÉ~ÅÜíÉå=áëíW== procedure TForm1.FormCreate(Sender: TObject); begin Listbox1.ItemIndex:=9; Listbox2.ItemIndex:=9 end;

== _áäÇ=QKPOW=pí~êíJ_ÉäÉÖìåÖ=áå=ÇÉå=ÄÉáÇÉå=iáëíÄçñÉå==

4.7.6

Passiver und aktiver Zugriff auf Zeilen in einer Listbox

_Éíê~ÅÜíÉå=ïáê=Éáå=ïÉáíÉêÉë=_ÉáëéáÉäI=Ç~ë=ìåë=~ìÅÜ=ïáÉÇÉê=òïáåÖÉå=ïáêÇI=áå=ÇÉê= mìåâíäáëíÉ=å~ÅÜ=ÉáåÉê=é~ëëÉåÇÉå=éêçéÉêíó=òì=ëìÅÜÉåK== ^ìÑ=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=ëçääÉå=ëáÅÜ=ïáÉÇÉê=ÇáÉ=iáëíÉ=ÇÉê=_ìåÇÉëä®åÇÉê=ìåÇ= ÇáÉëã~ä= êÉÅÜíë= Ç~åÉÄÉå= Éáå= qÉñíÑÉåëíÉê= ÄÉÑáåÇÉåK= aáÉ= ÖÉÑçêÇÉêíÉ= pí~êíÄÉäÉÖìåÖ= òÉáÖí=_áäÇ=QKPPK= UM= =

QKT== k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_476.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_476.bdsproj=~ìëòìï®ÜäÉåK== ==

= _áäÇ=QKPP=pí~êíJ_ÉäÉÖìåÖ=áå=iáëíÉ=ìåÇ=qÉñíÑÉåëíÉê= cΩê=ÇáÉ=pí~êíÄÉäÉÖìåÖ=êÉáÅÜÉå=òïÉá=wìïÉáëìåÖëÄÉÑÉÜäÉ=áå=ÇÉê=bêÉáÖåáëéêçòÉÇìê= òìã=pí~åÇ~êÇJbêÉáÖåáë=Create=Ó=eÉêëíÉääìåÖ=ÇÉë=cçêãìä~êë=~ìëW= procedure TForm1.FormCreate(Sender: TObject); begin Listbox1.ItemIndex:=9; Edit1.Text:='Sachsen-Anhalt' end;

_Éíê~ÅÜíÉå=ïáê=òìÉêëí=ÇáÉ=ÑçäÖÉåÇÉ=^ìÑÖ~ÄÉW=tÉåå=ÇÉê=kìíòÉê=áå=ÇÉê= iáëíÉ=ãáí= ÇÉå= i®åÇÉêå~ãÉå= ÉáåÉ= ^ìëï~Üä= íêáÑÑíI= ëçää= ~ìíçã~íáëÅÜ= ÇáÉëÉê= i®åÇÉêå~ãÉ= áå= ÇÉã=qÉñíÑÉåëíÉê=ÉêëÅÜÉáåÉåK== aÉå= o~ÜãÉå= ÑΩê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ÄÉâçããÉå= ïáê= ëçÑçêíI= ÇÉåå= òì= ÄÉÜ~åJ ÇÉäå=áëí=Ç~ë=iáëíÉåJpí~åÇ~êÇJbêÉáÖåáë=EëK=^ÄëÅÜåáíí=PKNFW== procedure TForm1.ListBox1Click(Sender: TObject); begin Edit1.Text:=...???........ end;

aáÉ=äáåâÉ=pÉáíÉI=ÇK=ÜK=ÇáÉ=wáÉäJpÉáíÉ=ÇÉë=_ÉÑÉÜäëI=áëí=î∏ääáÖ=âä~êW=aÉå=k~ãÉå= Text= ÇÉê= é~ëëÉåÇÉå= éêçéÉêíó= òìã= qê~åëéçêí= áå= ÇáÉ= fåÜ~äíëJhçãéçåÉåíÉ= ÇÉë= a~íÉåJ âÉêåë=ÉáåÉë=qÉñíÑÉåëíÉêJlÄàÉâíë=âÉååÉå=ïáê=~ìë=ÇÉã=lÄàÉâíáåëéÉâíçêK== UN =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= ^ÄÉê=ÇáÉ=êÉÅÜíÉ=pÉáíÉ\=açêí=ãìëë=ÇáÉ=_ÉëÅÜêáÑíìåÖ=ÇÉêàÉåáÖÉå=wÉáäÉ=ëíÉÜÉåI=~ìÑ= ÇáÉ=ÇÉê=kìíòÉê=ÖÉê~ÇÉ=ÇáÉ=j~êâáÉêìåÖ=ÖÉëÉíòí=Ü~íK== aáÉ=mçëáíáçå=ÇÉê=~âíìÉääÉå=j~êâáÉêìåÖ=ÑáåÇÉí=ã~å=ãáí=ÇÉê=éêçéÉêíó=ItemIndexK== ^ÄÉê=ïáÉ=ÑáåÇÉí=ã~å=ÇáÉ=_ÉëÅÜêáÑíìåÖ=~å=ÉáåÉê=ÄÉëíáããÉå=mçëáíáçå=ÇÉê=iáëíÉ\== báåÉë= ÇΩêÑíÉ= ãáííäÉêïÉáäÉ= ÄÉâ~ååí= ëÉáåW= báåÉ= wÉáäÉ= áå= ÉáåÉê= iáëíÉ= ÜÉá≈í= Item= ~ìÑ= båÖäáëÅÜK= cçäÖäáÅÜ= íáééÉå= ïáê= å~ÅÜ= Listbox1= ÇÉå= mìåâí= ÉáåI= ï~êíÉå= ÉáåÉ= pÉJ âìåÇÉ=ìåÇ=ëìÅÜÉå=Ç~åå=áå=ÇÉê=mìåâíäáëíÉ=E_áäÇ=QKPQFK=

== _áäÇ=QKPQW=pìÅÜÉ=å~ÅÜ=é~ëëÉåÇÉê=éêçéÉêíó= sÉêëìÅÜÉå= ïáê= ÉëW= qáééÉå= ïáê= Edit1.Text:=Listbox1.Items= ÉáåK=dÉÜí= åáÅÜí= Ó= Éë= ÖáÄí=ÉáåÉ=cÉÜäÉêãÉäÇìåÖK=== cçäÖäáÅÜ= îÉêëìÅÜÉå= ïáê= Éë= ïÉáíÉê= áå= ÇÉê= mìåâíäáëíÉI= íê~ÖÉå= ÜáåíÉê= Items= ÉáåÉå= ïÉáíÉêÉå= mìåâí= ÉáåI= ï~êíÉå= ~ÄÉêã~äëI= ìåÇ= ëìÅÜÉå= Ç~åå= òáÉäÖÉêáÅÜíÉí= áå= ÇÉê= å®ÅÜëíÉå=mìåâíäáëíÉ=E_áäÇ=QKPRFK=

== _áäÇ=QKPRW=pìÅÜÉ=áå=ÇÉê=å®ÅÜëíÉå=mìåâíäáëíÉ= kìå=ëáåÇ=ïáê=~ã=wáÉäW=aáÉ=ÖÉÑìåÇÉåÉ=éêçéÉêíó= Items.Strings=äáÉÑÉêí=ÄòïK=ÄÉå∏J íáÖí=ÉáåÉ=wÉáÅÜÉåÑçäÖÉI=ëçÑÉêå=ëáÉ=áå=ÇÉå=ÉÅâáÖÉå=hä~ããÉêå=ÇáÉ=ÄÉíêÉÑÑÉåÇÉ=mçJ ëáíáçå=ÉêÑ®ÜêíK=pÉÜÉå=ïáê=ìåë=ÇáÉ=ÑÉêíáÖÉ=bêÉáÖåáëéêçòÉÇìê=~åW= procedure TForm1.ListBox1Click(Sender: TObject); begin Edit1.Text:=Listbox1.Items.Strings[Listbox1.ItemIndex] end;

aÉê=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ëçääíÉ=îçå=êÉÅÜíë=å~ÅÜ=äáåâë=ìåÇ=îçå=áååÉå=å~ÅÜ= ~ì≈Éå=ÖÉäÉëÉå=ïÉêÇÉåX=Ç~ë=pÅÜÉã~=áå=_áäÇ=QKPS=Éêâä®êí=Ç~òì=Ç~ë=sçêÖÉÜÉåW==

UO= =

QKT== k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó=

= _áäÇ=QKPSW=pÅÜÉã~=ÇÉê=^êÄÉáí=ÇÉê=bêÉáÖåáëéêçòÉÇìê= • _Éá=kìíòÉêÉáåïáêâìåÖ=~ìÑ=ÇáÉ=iáëíÉ=Üçäí=ëáÅÜ=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìÉêëí=~ìë= ÇÉã= ÉáÖÉåÉå= iáëíÉåJa~íÉåâÉêå= ÇáÉ= mçëáíáçå= ÇÉê= j~êâáÉêìåÖ= ãáí= eáäÑÉ= ÇÉê= éêçéÉêíó=ItemIndexK== • a~å~ÅÜ= Üçäí= ëáÉ= ïÉáíÉê= ~ìë= ÇÉã= ÉáÖÉåÉå= iáëíÉåJa~íÉåâÉêå= ãáí= eáäÑÉ= ÇÉê= áå= ÇÉê= mìåâíäáëíÉ= ÖÉÑìåÇÉåÉå= éêçéÉêíó= Items.String[..]= ÇÉå= fåÜ~äí= EÇáÉ= _ÉJ ëÅÜêáÑíìåÖF=ÇÉê=wÉáäÉ=ÑΩê=ÇáÉëÉ=mçëáíáçåK== • ^åëÅÜäáÉ≈ÉåÇ= ïáêÇ= ãáí= ÇÉê= éêçéÉêíó= Text= áå= ÇÉå= a~íÉåâÉêå= ÇÉë= qÉñíÑÉåëíÉêë= EÑêÉãÇÉë=lÄàÉâíF=íê~åëéçêíáÉêíK== wìê=ïÉáíÉêÉå=§ÄìåÖ=ïçääÉå=ïáê=ìåë=îçêëíÉääÉåI=Ç~ëë=ÇÉê=kìíòÉê=ÇáÉ=dÉäÉÖÉåÜÉáí= ÄÉâçããÉå=ëçääI=áã=qÉñíÑÉåëíÉê=~å=ÇÉã=i®åÇÉêå~ãÉå=Éíï~ë=®åÇÉêå=òì=ÇΩêÑÉåW= jáí=eáäÑÉ=ÉáåÉë=_ìííçåë=ãáí=ÇÉê=^ìÑëÅÜêáÑí=Änderung eintragen=ëçää=Éê=ÇáÉëÉ=ûåÇÉJ êìåÖ=Ç~åå=~ìÅÜ=áå=ÇáÉ=iáëíÉ=ΩÄÉêíê~ÖÉå=â∏ååÉå=E_áäÇ=QKPTFK== aÉê= o~ÜãÉå= ÇÉê= bêÉáÖåáëéêçòÉÇìê= òìã= häáÅâ= ~ìÑ= ÇÉå= _ìííçå= áëí= ëçÑçêí= ÄÉJ ëÅÜ~ÑÑíI=Éë=Ü~åÇÉäí=ëáÅÜ=ìã=Ç~ë=pí~åÇ~êÇJbêÉáÖåáëK=cΩê=ÇÉå= fåÜ~äí=ÇÉê=bêÉáÖåáëJ éêçòÉÇìê=áëí=äÉÇáÖäáÅÜ=Éáå=ÉáåòáÖÉê=wìïÉáëìåÖëÄÉÑÉÜä=òì=éêçÖê~ããáÉêÉåK== oÉÅÜíëI= ~ìÑ= ÇÉê= nìÉääëÉáíÉI= ëíÉÜí= ÄÉá= ÇáÉëÉê= ^ìÑÖ~ÄÉåëíÉääìåÖ= ÇÉê= fåÜ~äí= ÇÉë= qÉñíÑÉåëíÉêëI=ãáí=ÇÉê=éêçéÉêíó=Text=~ìë=ÇÉã=ÉáÖÉåÉå=a~íÉåâÉêå=ÖÉÜçäíK= iáåâë= ~ìÑ= ÇÉê= wáÉäëÉáíÉ= ëíÉÜí= ÇáÉ= éêçéÉêíó= Items.Strings[...]= òìê= sÉê®åÇÉêìåÖ= ÇÉê=_ÉëÅÜêáÑíìåÖX=ëáÉ=îÉêïÉåÇÉí=ÇáÉ=ÇìêÅÜ=ÇáÉ=éêçéÉêíó= ItemIndex=ÖÉäáÉÑÉêíÉ=mçJ ëáíáçå=ÇÉê=j~êâáÉêìåÖK= UP =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= procedure TForm1.Button1Click(Sender: TObject); begin Listbox1.Items.Strings[Listbox1.ItemIndex]:=Edit1.Text end;

_áäÇ= QKPT= òÉáÖí= ÉáåÉ= ã∏ÖäáÅÜÉ= táêâìåÖW= báå= kìíòÉê= ï~ê= ÇÉê= jÉáåìåÖI= Ç~ëë= áã= âäÉáåëíÉå= _ìåÇÉëä~åÇ= ìåÄÉÇáåÖí= ÇáÉ= òïÉáíÉ= pí~Çí= Éêï®Üåí= ïÉêÇÉå= ëçääíÉK= ^äëç= ëÉíòíÉ= Éê= áå= ÇÉê= iáëíÉ= ÇáÉ= j~êâáÉêìåÖ= ~ìÑ= BremenI= ÉêÖ®åòíÉ= áã= qÉñíÑÉåëíÉêI= ìåÇ= ëÅÜáÅâíÉ=ÇÉå=âçêêáÖáÉêíÉå=báåíê~Ö=éÉê=häáÅâ=~ìÑ=ÇÉå=_ìííçå=áå=ÇáÉ=iáëíÉ=òìêΩÅâK==

== _áäÇ=QKPTW=ûåÇÉêìåÖÉå=áå=ÇáÉ=iáëíÉ=ëÅÜêÉáÄÉå=

Vereinfachungen durch verkürzte property Items[...]

4.7.7

aÉäéÜá=Ü~í=ëáÅÜ=áã=i~ìÑÉ=ÇÉê=wÉáí=ÉåíïáÅâÉäíI=Ç~ÄÉá=ïìêÇÉå=ÑΩê=ÇáÉ=_ÉèìÉãäáÅÜJ âÉáí= ÇÉê= mêçÖê~ããáÉêÉê= îÉêëÅÜáÉÇÉåÉ= sÉêÉáåÑ~ÅÜìåÖÉå= òìÖÉä~ëëÉåK= báåÉ= ÉêëíÉ= sÉêÉáåÑ~ÅÜìåÖ=ïçääÉå=ïáê=âÉååÉå=äÉêåÉåK== bë=áëí=Éêä~ìÄíI=~åëíÉääÉ=ÇÉê=~ìëÑΩÜêäáÅÜÉå=wìïÉáëìåÖëÄÉÑÉÜäÉ= Listbox1.Items.Strings[Listbox1.ItemIndex]:=Edit1.Text

ìåÇ== Edit1.Text:=Listbox1.Items.Strings[Listbox1.ItemIndex];

ÇáÉ= ÄÉáÇÉå= sÉêâΩêòìåÖÉå= òì= îÉêïÉåÇÉåI= ÇáÉ= ÇìêÅÜ= tÉÖä~ëëÉå= ÇÉê= råíÉêJéêçJ éÉêíó=Strings=ÉåíëíÉÜÉåW= Listbox1.Items[Listbox1.ItemIndex]:=Edit1.Text

ìåÇ== Edit1.Text:=Listbox1.Items[Listbox1.ItemIndex];

tÉåÇÉå=ïáê=ÇáÉëÉ=îÉêâΩêòíÉ=pÅÜêÉáÄïÉáëÉ=~ìÑ=Éáå=äÉíòíÉë=_ÉáëéáÉä=áå=ÇáÉëÉã=h~J éáíÉä= ~åI= ãáí= ÇÉã= ïáê= ÖäÉáÅÜòÉáíáÖ= ÉáåëíáããÉå= ïçääÉå= ~ìÑ= ÇáÉ= sÉêï~äíìåÖ= îçå= a~íÉåÄÉëí®åÇÉåI=ÇáÉ=áå=iáëíÉå=ÉêÑ~ëëí=ëáåÇK=== = UQ= =

QKT== k~ãÉåëÄÉëÅÜ~ÑÑìåÖ=ÑΩê=é~ëëÉåÇÉ=éêçéÉêíó= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 4= ÇáÉ= zipJa~íÉá= DKap04.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap04= ÇáÉ= mêçàÉâíJa~íÉá= proj_477.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap04=ÇáÉ=a~íÉá=proj_477.bdsproj=~ìëòìï®ÜäÉåK== == råíÉê= ÇÉå= ÇêÉá= iáëíÉå= ãáí= _ìåÇÉëä®åÇÉêåI= áÜêÉå= e~ìéíëí®ÇíÉå= ìåÇ= ÇÉå= ^ìíçJ âÉååòÉáÅÜÉå=ÇÉê=e~ìéíëí®ÇíÉ=ëçääÉå=ëáÅÜ=òïÉá=_ìííçåë=ãáí=ÇÉå=^ìÑëÅÜêáÑíÉå= Voriger=ìåÇ=Nächster=ÄÉÑáåÇÉåK== wì=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=ëçää=ÇáÉ=wÉáäÉ=îçå= Sachsen-Anhalt=~ìëÖÉï®Üäí=ëÉáåW=a~òì= ëÅÜêÉáÄÉå= ïáê= ïáÉÇÉê= ÇÉå= áåòïáëÅÜÉå= ÄÉâ~ååíÉå= fåÜ~äí= ÇÉê= bêÉáÖåáëéêçòÉÇìê= òìã=pí~åÇ~êÇJbêÉáÖåáë=Create=ÇÉë=cçêãìä~êëK== _Éá= häáÅâ= ~ìÑ= ÉáåÉå= _ìííçå= ëçää= ÇáÉ= j~êâáÉêìåÖ= å~ÅÜ= çÄÉå= ÄòïK= ìåíÉå= áå= ÇÉê= êáÅÜíáÖÉå= tÉáëÉ= ï~åÇÉêåK= aáÉ= _ÉëÅÜêáÑíìåÖÉå= ëçääÉå= òìë®íòäáÅÜ= áå= ÇêÉá= i~ÄÉäë= E_áäÇ=QKPUF=~åÖÉòÉáÖí=ïÉêÇÉåK==

== _áäÇ=QKPUW=sÉêï~äíìåÖ=ÉáåÉë=a~íÉåÄÉëí~åÇÉë= cΩê=ÇêÉá=bêÉáÖåáëéêçòÉÇìêÉå=ãΩëëÉå=ÇáÉ=o~ÜãÉå=ÄÉëÅÜ~ÑÑí=ìåÇ=ÇáÉ=fåÜ~äíÉ=éêçJ Öê~ããáÉêí=ïÉêÇÉåW=cΩê=Ç~ë=bêÉáÖåáë=bêòÉìÖìåÖ=ÇÉë=cçêãìä~êë=ëçïáÉ=ïáÉ=ÑΩê=ÇáÉ= ÄÉáÇÉå=häáÅâJbêÉáÖåáëëÉ=ÇÉê=_ìííçåëK== UR =

Q= bêÉáÖåáëéêçòÉÇìêÉåW=sÉêïÉåÇìåÖ=îçå=éêçéÉêíáÉë= aáÉ= bêÉáÖåáëéêçòÉÇìêÉå= òì= ÇÉå= bêÉáÖåáëëÉå= häáÅâ= ~ìÑ= ÇÉå= _ìííçå= ãáí= ÇÉê= _ÉJ ëÅÜêáÑíìåÖ= Voriger= ëçïáÉ= häáÅâ= ~ìÑ= ÇÉå= _ìííçå= ãáí= ÇÉê= _ÉëÅÜêáÑíìåÖ= Nächster= ìåíÉêëÅÜÉáÇÉå=ëáÅÜ=åìê=áå=ÇÉå=ÇêÉá=ÉêëíÉå=wìïÉáëìåÖëÄÉÑÉÜäÉåK== _Éáã=äáåâÉå=_ìííçå=ïáêÇ=ÇáÉ=mçëáíáçåI=å~ÅÜÇÉã=ëáÉ=ãáííÉäë=ÇÉê=éêçéÉêíó= ItemIndex=~ìë=ÇÉã=a~íÉåâÉêå=ÖÉÜçäí=ïìêÇÉI=ìã=Éáåë=êÉÇìòáÉêí=ìåÇ=òìêΩÅâÖÉëÅÜáÅâíK= a~ÇìêÅÜ=ï~åÇÉêí=ÇáÉ=j~êâáÉêìåÖ=å~ÅÜ=çÄÉåK=== procedure TForm1.Button1Click(Sender: TObject); begin Listbox1.ItemIndex:=Listbox1.ItemIndex-1; Listbox2.ItemIndex:=Listbox2.ItemIndex-1; Listbox3.ItemIndex:=Listbox3.ItemIndex-1; Label1.Caption:=Listbox1.Items[Listbox1.ItemIndex]; Label2.Caption:=Listbox2.Items[Listbox2.ItemIndex]; Label3.Caption:=Listbox3.Items[Listbox3.ItemIndex] end;

_Éáã=êÉÅÜíÉå=_ìííçå=ïáêÇ=ÇáÉ=mçëáíáçåI=å~ÅÜÇÉã=ëáÉ=ãáí=eáäÑÉ=ÇÉê=éêçéÉêíó= ItemIndex= ~ìë= ÇÉã= a~íÉåâÉêå= ÖÉÜçäí= ïìêÇÉI= ìã= Éáåë= ÉêÜ∏Üí= ìåÇ= òìêΩÅâÖÉëÅÜáÅâíK= a~ÇìêÅÜ=ï~åÇÉêí=ÇáÉ=j~êâáÉêìåÖ=å~ÅÜ=ìåíÉåK= procedure TForm1.Button2Click(Sender: TObject); begin Listbox1.ItemIndex:=Listbox1.ItemIndex+1; Listbox2.ItemIndex:=Listbox2.ItemIndex+1; Listbox3.ItemIndex:=Listbox3.ItemIndex+1; Label1.Caption:=Listbox1.Items[Listbox1.ItemIndex]; Label2.Caption:=Listbox2.Items[Listbox2.ItemIndex]; Label3.Caption:=Listbox3.Items[Listbox3.ItemIndex] end;

= =

US= =

==

5

Einfache Tests und Alternativen a~ë= îçêáÖÉ= h~éáíÉä= Äê~ÅÜíÉ= ÇÉå= aìêÅÜÄêìÅÜK= táê= äÉêåíÉå= áå= áÜã= ~ìëÑΩÜêäáÅÜ= âÉååÉåI= ïáÉ= ïáê= áå= fåÜ~äíÉå= îçå= bêÉáÖåáëéêçòÉÇìêÉå= ãáí= eáäÑÉ= îçå= éêçéÉêíáÉë= EbáÖÉåëÅÜ~ÑíÉåF=~ìÑ=ÇÉå=a~íÉåâÉêå=ÇÉë=ÉáÖÉåÉå=îáëìÉääÉå=lÄàÉâíë=çÇÉê=ÑêÉãÇÉê= îáëìÉääÉê=lÄàÉâíÉ=òìÖêÉáÑÉå=ä~ëëÉå=â∏ååÉåK== a~=~ääÉ=jÉêâã~äÉ=ÇÉë=ëáÅÜíÄ~êÉå=qÉáäë=àÉÇÉë=îáëìÉääÉå=lÄàÉâíë=áå=ëÉáåÉã=a~íÉåJ âÉêå=ÖÉëéÉáÅÜÉêí=ëáåÇI=â∏ååÉå=ïáê=~ìÑ=ÇáÉëÉ=tÉáëÉ=ìåãáííÉäÄ~ê=~ìÑ=ÇáÉ=_ÉëÅÜêáÑJ íìåÖ= ÉáåÉë= i~ÄÉäë= çÇÉê= ÇÉå= fåÜ~äí= ÉáåÉë= qÉñíÑÉåëíÉêë= òìÖêÉáÑÉå= ä~ëëÉåI= ~ìÑ= ÇáÉ= _ÉëÅÜêáÑíìåÖ= ÉáåÉë= _ìííçåëI= ~ìÑ= ÇáÉ= mçëáíáçå= ÇÉë= oÉÖäÉêë= áå= ÉáåÉê= pÅêçääÄ~êI= ~ìÑ= _ÉëÅÜêáÑíìåÖÉå= ìåÇ= _ÉäÉÖìåÖëÉáÖÉåëÅÜ~ÑíÉå= îçå= `ÜÉÅâÄçñÉå= ìåÇ= o~ÇáçÄìíJ íçåëI=~ìÑ=ÇáÉ=mçëáíáçå=ÇÉê=j~êâáÉêìåÖ=áå=ÉáåÉê=o~ÇáçÖêìééÉ=ìåÇ=iáëíÉK=pÅÜäáÉ≈J äáÅÜ=áëí=~ìÅÜ=ÇÉê=wìÖêáÑÑ=~ìÑ=ÉáåÉ=wÉáäÉ=áå=ÉáåÉê=iáëíÉ=ã∏ÖäáÅÜK== a~ÄÉá=áëí=ÇáÉ=sçâ~ÄÉä=òìÖêÉáÑÉå=àÉïÉáäë=é~ëëáî=çÇÉê=~âíáî=çÇÉê=~ìÅÜ=áå=ÄÉáÇÉêäÉá= eáåëáÅÜí= ã∏ÖäáÅÜW= táê= â∏ååÉå= éêçÖê~ããáÉêÉåI= Ç~ëë= ÉáåÉ= bêÉáÖåáëéêçòÉÇìê= ãáí= eáäÑÉ= ÉáåÉê= éêçéÉêíó= åìê= Éíï~ë= ÉêÑ®Üêí= ìåÇ= ÖÉÉáÖåÉí= îÉê~êÄÉáíÉíI= ïáê= â∏ååÉå= ~ÄÉê=~ìÅÜ=éêçÖê~ããáÉêÉåI=Ç~ëë=ÉáåÉ=bêÉáÖåáëéêçòÉÇìê=Éíï~ë=ÄÉïáêâí=ìåÇ=Ç~ãáí= ~ã=ÉáÖÉåÉå=çÇÉê=ÑêÉãÇÉå=lÄàÉâí=sÉê®åÇÉêìåÖÉå=îçêåáããíK== táê=â∏ååÉå=ëçÖ~ê=ãáí=ÇÉã=áåíÉêÉëë~åíÉå=wìïÉáëìåÖëÄÉÑÉÜä=~ìë=^ÄëÅÜåáíí=QKQ= ScrollBar1.Position:=ScrollBar1.Position+10

Ç~ÑΩê= ëçêÖÉåI= Ç~ëë= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìÉêëí= ãáí= eáäÑÉ= ÇÉê= éêçéÉêíó= Position= ÇáÉ=píÉääìåÖ=ÇÉë=oÉÖäÉêë=~ìë=ÇÉã=a~íÉåâÉêå=Üçäí=ìåÇ=~åëÅÜäáÉ≈ÉåÇI=îÉêÖê∏≈Éêí= ìã=òÉÜå=báåÜÉáíÉåI=ïáÉÇÉê=éÉê=éêçéÉêíó= Position=ÇáÉ=píÉääìåÖ=ÇÉë=oÉÖäÉêë=åÉì= ÑÉëíäÉÖíK=bêÖÉÄåáëW=aÉê=oÉÖäÉê=ëéêáåÖí=ìã=NM=báåÜÉáíÉå=å~ÅÜ=êÉÅÜíëK= g~I= Ç~ë= ï~ê= ëÅÜçå= mêçÖê~ããáÉêÉåI= ï~ë= Ç~= áã= h~éáíÉä= Q= áå= îáÉäÉå= _ÉáëéáÉäÉå= îçêÖÉÑΩÜêí=ïìêÇÉK=råÇI=ï~ê=Éë=ëç=ëÅÜäáãã\== aêÉá=sçê~ìëëÉíòìåÖÉå=ãΩëëÉå=ÉêÑΩääí=ëÉáåI=Ç~ãáí=ïáê=ìåëÉê=aÉåâîÉêã∏ÖÉå=~åJ ïÉêÑÉå=ìåÇ=fåÜ~äíÉ=îçå=bêÉáÖåáëéêçòÉÇìêÉå=ëÅÜêÉáÄÉå=â∏ååÉåW= • lÜåÉ= ÇáÉ= k~ãÉå= ÇÉê= îáëìÉääÉå= lÄàÉâíÉ= ÖÉÜí= åáÅÜíëK= aÉê= ^ìíçê= ëÅÜä®Öí= Ç~òì= àÉÇÉã=^åÑ®åÖÉê=îçêI=ëíÉíë=ÇáÉ=îçå=aÉäéÜá=~ìíçã~íáëÅÜ=îÉêÖÉÄÉåÉå=k~ãÉå=òì= îÉêïÉåÇÉåK= báåëÅÜäáÉ≈äáÅÜ= ÇÉê= dêç≈J= ìåÇ= häÉáåëÅÜêÉáÄìåÖI= Ç~ë= ã~ÅÜí= Ç~ë= d~åòÉ=òáÉãäáÅÜ=ΩÄÉêëáÅÜíäáÅÜK= • tÉáíÉê=Äê~ìÅÜÉå=ïáê=ÇáÉ=ÖÉå~ìÉå=k~ãÉå=ÇÉê=ÄÉå∏íáÖíÉå=éêçéÉêíáÉëI=ìã=éêçJ Öê~ããáÉêÉå=òì=â∏ååÉåI=ïÉåå=~ìÑ=a~íÉåâÉêåÉ=òìÖÉÖêáÑÑÉå=ïÉêÇÉå=ëçääK==

UT =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå= • cΩê= ÇáÉ= ïáÅÜíáÖëíÉå= éêçéÉêíáÉë= ÑáåÇÉå= ïáê= ÇáÉ= k~ãÉå= ΩÄÉê= ÇáÉ= oÉÖáëíÉêâ~êíÉ= bfdbkp`e^cqbk=ÇÉë=lÄàÉâíáåëéÉâíçêëK== • tÉåå= ìåë= ÇÉê= lÄàÉâíáåëéÉâíçê= ~ÄÉê= áã= píáÅÜ= ä®ëëíI= ïÉáä= Éê= áå= ëÉáåÉå= wÉáäÉå= åìê= ïÉåáÖÉI= ~ìëÖÉï®ÜäíÉ= báÖÉåëÅÜ~ÑíÉå= EéêçéÉêíáÉëF= éê®ëÉåíáÉêí= ãΩëëÉå= ïáê= å~ÅÜ=ÇÉã=báåíáééÉå=ÇÉë=mìåâíÉë=ÜáåíÉê=ÇÉã=lÄàÉâíå~ãÉå=~ìÑ=ÇáÉ=mìåâíäáëíÉ= ï~êíÉå= ìåÇ= ìåíÉê= ÇÉå= Ç~åå= ÉêëÅÜÉáåÉåÇÉå= báåíê®ÖÉå= ãáí= ÇÉê= _ÉòÉáÅÜåìåÖ= property=ÖÉòáÉäí=ëìÅÜÉåK== • cΩê= ÇÉå= c~ääI= Ç~ëë= ãáííÉäë= ÉáåÉê= éêçéÉêíó= Éáå= ÄÉëíáããíÉê= tÉêí= çÇÉê= ÉáåÉ= ÑÉëíÉ= _ÉäÉÖìåÖ= áå= ÉáåÉå= a~íÉåâÉêå= ÖÉÄê~ÅÜí= ïÉêÇÉå= ëçääI= ãΩëëÉå= ïáê= ëÅÜäáÉ≈äáÅÜ= åçÅÜ= ïáëëÉåI= ï~ë= ÇáÉ= éêçéÉêíó= îÉê~êÄÉáíÉí= Ó= ÉáåÉ= w~ÜäI= ÉáåÉå= ÇÉê= ÄÉáÇÉå= t~ÜêÜÉáíëïÉêíÉ=True=çÇÉê=FalseI=ÉáåÉå=qÉñíK=táê=ÉêÑ~ÜêÉå=Éë=ÉåíïÉÇÉê=~ìë=ÇÉã= lÄàÉâíáåëéÉâíçê=çÇÉê=äÉëÉå=Éë=ÜáåíÉê=ÇÉã=açééÉäéìåâí=áå=ÇÉê=mìåâíäáëíÉK= t~ë=âçããí=åìå\=kìå=ïçääÉå=ïáê=ìåë=ïÉáíÉê=ãáí=ÇÉê=mêçÖê~ããáÉêìåÖ=îçå=fåJ Ü~äíÉå=îçå=bêÉáÖåáëéêçòÉÇìêÉå=ÄÉëÅÜ®ÑíáÖÉåK== táê=ïÉêÇÉå=ÇÉå=c~ää=ÄÉÜ~åÇÉäåI=Ç~ëë=Éáå=_ÉÑÉÜä=çÇÉê=ÉáåÉ=jÉåÖÉ=îçå=_ÉÑÉÜäÉå= åáÅÜí=áããÉêI=ëçåÇÉêå=åìê=ã~åÅÜã~ä=~ìëÖÉÑΩÜêí=ïÉêÇÉå=ëçääK=táÉ=ÄáëÜÉêI=ïÉêJ ÇÉå=ïáê=ìåë=ÇÉê=p~ÅÜÉ=ãáí=îáÉäÉå=_ÉáëéáÉäÉå=å®ÜÉêåK==

5.1

Einfacher Test

5.1.1

Bedingtes Aktivieren/Deaktivieren von Buttons

táê=ïçääÉå=ÖäÉáÅÜ=Ç~ë=äÉíòíÉ=_ÉáëéáÉä=ÇÉë=îçêáÖÉå=h~éáíÉäë=ÑçêíëÉíòÉå=E_áäÇ=RKNFW= få=ÉáåÉã=îáëìÉääÉå=lÄàÉâí=iáëíÉ=ãáí=ÇÉã=k~ãÉå= ListBox1=áëí=Éáå=a~íÉåÄÉëí~åÇ= ÖÉëéÉáÅÜÉêí=Ó=ÄÉá=ìåë=ëáåÇ=Éë=ïáÉÇÉê=ÇáÉ=k~ãÉå=ÇÉê=_ìåÇÉëä®åÇÉêK== aáÉ= Listbox1= ïáêÇ= ëé®íÉê= ìåëáÅÜíÄ~ê= ÖÉã~ÅÜí= E~ÄÉê= ÉêëíI= ïÉåå= ~ääÉë= ÑìåâíáçJ åáÉêíFK= bë= áëí= å®ãäáÅÜ= ÖêìåÇë®íòäáÅÜ= åáÅÜí= ΩÄäáÅÜI= a~íÉåÄÉëí®åÇÉ= ∏ÑÑÉåíäáÅÜ= òì= éê®ëÉåíáÉêÉåK= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 5= ÇáÉ= zipJa~íÉá= DKap05.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap05= ÇáÉ= mêçàÉâíJa~íÉá= proj_511.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap05=ÇáÉ=a~íÉá=proj_511.bdsproj=~ìëòìï®ÜäÉåK== == aáÉ= pí~êíÉáåëíÉääìåÖ= Sachsen-AnhaltI= ïáêÇ= ΩÄÉê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìã= pí~åJ Ç~êÇJbêÉáÖåáë= Create Ó= eÉêëíÉääìåÖ= ÇÉë= cçêãìä~êë= îÉê~åä~ëëíK= wìê= sÉêï~äíìåÖ= ÇÉë= a~íÉåÄÉëí~åÇÉë= ëçää= Éë= îáÉê= _ìííçåë= ÖÉÄÉåI= ÇÉêÉå= _ÉÇÉìíìåÖ= ~ìë= ÇÉå= _ÉJ ëÅÜêáÑíìåÖÉå=ÜÉêîçêÖÉÜíK=pÉÜÉå=ïáê=ìåë=~åI=ï~ë=ÑΩê=ÇáÉ=fåÜ~äíÉ=ÇÉê=îáÉê=bêÉáÖJ åáëéêçòÉÇìêÉå=òìã=_ìííçåJhäáÅâ=àÉïÉáäë=òì=éêçÖê~ããáÉêÉå=áëíW= UU= =

RKN== báåÑ~ÅÜÉê=qÉëí= häáÅâ=~ìÑ=ÇÉå=_ìííçå=łbêëíÉêW= Listbox1.ItemIndex:=0;Label1.Caption:=Listbox1.Items[0]

häáÅâ=~ìÑ=ÇÉå=_ìííçå=łsçêáÖÉêW= Listbox1.ItemIndex:=Listbox1.ItemIndex-1; Label1.Caption:=Listbox1.Items[Listbox1.ItemIndex]

häáÅâ=~ìÑ=ÇÉå=_ìííçå=łk®ÅÜëíÉêW= Listbox1.ItemIndex:=Listbox1.ItemIndex+1; Label1.Caption:=Listbox1.Items[Listbox1.ItemIndex]

häáÅâ=~ìÑ=ÇÉå=_ìííçå=łiÉíòíÉêW= Listbox1.ItemIndex:=15;Label1.Caption:=Listbox1.Items[15]

== _áäÇ=RKNW=sÉêï~äíìåÖ=ÉáåÉë=a~íÉåÄÉëí~åÇÉë= tç=äáÉÖí=Ç~ë=mêçÄäÉã\=t®Üäí=ÇÉê=kìíòÉê=ÇìêÅÜ=häáÅâ=~ìÑ= Erster=ÇÉå=ÉêëíÉå=báåJ íê~Ö= áã= a~íÉåÄÉëí~åÇ= ~ìë= ìåÇ= âäáÅâí= Ç~å~ÅÜI= ìåâçåòÉåíêáÉêíI= ~ìÑ= ÇÉå= _ìííçå= Voriger=ÖáÄí=Éë=ÉáåÉ=ÖÉÜ~êåáëÅÜíÉ=cÉÜäÉêãÉäÇìåÖK=hä~êK=

== _áäÇ=RKOW=aÉ~âíáîáÉêÉå=ÇÉê=äáåâÉå=_ìííçåë= UV =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå= cçäÖäáÅÜ= ãΩëëÉå= ïáê= îÉêÜáåÇÉêåI= Ç~ëë= Éáå= kìíòÉêI= ïÉåå= ÇÉê= ÉêëíÉ= báåíê~Ö= ÇÉë= a~íÉåÄÉëí~åÇë= ÉêêÉáÅÜí= ïáêÇI= ÇáÉ= ÄÉáÇÉå= äáåâÉå= _ìííçåë= åçÅÜ= Éáåã~ä= ÇêΩÅâÉå= Ç~êÑK= táÉ= Ç~ë= ÖÉÜí\= kìåI= ïáê= ëÉíòÉå= ÉáåÑ~ÅÜ= ÇáÉ= éêçéÉêíó= Enabled= ÇÉê= ÄÉáÇÉå= äáåâÉå= _ìííçåë=~ìÑ=False=ìåÇ=ëÅÜ~äíÉå=Ç~ãáí=ÇáÉ=ÄÉáÇÉå=_ìííçåë=~ìëK== açÅÜ= ÑΩê= ÇÉå= c~ääI= Ç~ëë= îçêÜÉê= ÇÉê= äÉíòíÉ= báåíê~Ö= ÇÉë= a~íÉåÄÉëí~åÇÉë= ~ìëÖÉJ ï®Üäí= ïçêÇÉå= ï~ê= ìåÇ= Ç~ãáí= ÇáÉ= êÉÅÜíÉå= ÄÉáÇÉå= _ìííçåë= áå~âíáî= ï~êÉåI= ãΩëJ ëÉå=ïáê=ëáÉ=ïáÉÇÉê=~âíáîáÉêÉåI=ÇÉåå=ëáÉ=ëáåÇ=ëáååîçääK== dÉå~ìëç= áëí= îçêòìÖÉÜÉåI= ïÉåå= ÇÉê= äÉíòíÉ= báåíê~Ö= áã= a~íÉåÄÉëí~åÇ= ÉêêÉáÅÜí= ïáêÇK=a~åå=ãΩëëÉå=ÇáÉ=ÄÉáÇÉå=êÉÅÜíÉå=_ìííçåë=ÇÉ~âíáîáÉêí=ïÉêÇÉåW= procedure TForm1.Button1Click(Sender: TObject); begin Listbox1.ItemIndex:=0;Label1.Caption:=Listbox1.Items[0]; Button1.Enabled:=False; Button2.Enabled:=False; Button3.Enabled:=True; Button4.Enabled:=True end; procedure TForm1.Button4Click(Sender: TObject); begin Listbox1.ItemIndex:=15;Label1.Caption:=Listbox1.Items[15]; Button1.Enabled:=True; Button2.Enabled:=True; Button3.Enabled:=False; Button4.Enabled:=False end;

kìå=òìã=_ìííçå=ãáí=ÇÉê=^ìÑëÅÜêáÑí= VorigerK=tÉåå=ÇÉê=kìíòÉê=áÜå=ÇêΩÅâí=áëí=ÉáJ åÉë= âä~êW= aáÉ= ÄÉáÇÉå= êÉÅÜíÉå= _ìííçåë= ëáåÇ= áããÉê= ëáååîçääI= ãΩëëÉå= ~âíáî= ëÉáåK= ^ÄÉê=ÇáÉ=ÄÉáÇÉå=äáåâÉå=_ìííçåë\= kìå=ãΩëëÉå=ïáê=Éíï~ë=kÉìÉë=éêçÖê~ããáÉêÉåI=ÉáåÉå=ÉáåÑ~ÅÜÉå=qÉëíW=kìê=Ç~ååI= ïÉåå=ÇáÉ=çÄÉêëíÉ=wÉáäÉ=ÇáÉ=j~êâáÉêìåÖ=ÄÉâçããÉå=Ü~í=EïÉåå=ÇáÉ=éêçéÉêíó= ItemIndex=ÇáÉ=kìää=äáÉÑÉêíFI=ëáåÇ=ÇáÉ=ÄÉáÇÉå=äáåâÉå=_ìííçåë=òì=ÇÉ~âíáîáÉêÉåK== táÉ=ëÅÜêÉáÄí=ã~å=Ç~ë=ÖÉã®≈=ÇÉå=m~ëÅ~äJoÉÖÉäå\== if Listbox1.ItemIndex=0 then begin Button1.Enabled:=False; Button2.Enabled:=False end

få= ÖäÉáÅÜÉê= tÉáëÉ= ãΩëëÉå= ïáê= îçêÖÉÜÉåI= ïÉåå= ïáê= Ç~ë= bêÉáÖåáë= häáÅâ= ~ìÑ= ÇÉå= _ìííçå=ãáí=ÇÉê=^ìÑëÅÜêáÑí=Nächster=ÄÉÜ~åÇÉäåW== VM= =

RKN== báåÑ~ÅÜÉê=qÉëí= if Listbox1.ItemIndex=15 then begin Button3.Enabled:=False; Button4.Enabled:=False end

pÉÜÉå=ïáê=ìåë=òìã=pÅÜäìëë=ÇáÉ=ÄÉáÇÉå=bêÉáÖåáëéêçòÉÇìêÉå=âçãéäÉíí=~åI=ïçÄÉá= àÉíòí=ä~åÖë~ã=âä~ê=ïáêÇI=ïáÉ=ïáÅÜíáÖ=ÉáåÉ=ÖìíÉ=ìåÇ=ëíêìâíìêáÉêíÉ=pÅÜêÉáÄïÉáëÉ=ÑΩê= Ç~ë=sÉêëí®åÇåáë=îçå=bêÉáÖåáëéêçòÉÇìêÉå=áëíK= procedure TForm1.Button2Click(Sender: TObject); //Button „Voriger“ begin Button3.Enabled:=True; Button4.Enabled:=True; Listbox1.ItemIndex:=Listbox1.ItemIndex-1; Label1.Caption:=Listbox1.Items[Listbox1.ItemIndex]; if Listbox1.ItemIndex=0 then begin Button1.Enabled:=False; Button2.Enabled:=False end end; procedure TForm1.Button3Click(Sender: TObject); //Button „Nächster“ begin Button1.Enabled:=True; Button2.Enabled:=True; Listbox1.ItemIndex:=Listbox1.ItemIndex+1; Label1.Caption:=Listbox1.Items[Listbox1.ItemIndex]; if Listbox1.ItemIndex=15 then begin Button3.Enabled:=False; Button4.Enabled:=False end end;

wìë~íòÑê~ÖÉW=_Éá=ëÉÅÜòÉÜå=_ìåÇÉëä®åÇÉêå=Ü~í=ÇáÉ=äÉíòíÉ=wÉáäÉ=ÇÉê=iáëíÉ=ÇáÉ= mçJ ëáíáçå=NRK=a~ë=áëí=ëáÅÜÉêI=Ç~ë=áëí=ÄÉâ~ååíK=^ÄÉê=ï~ë=ã~ÅÜÉå=ïáêI=ïÉåå=ïáê=åáÅÜí= ÖÉå~ì= ïáëëÉåI= ïáÉ= îáÉäÉ= báåíê®ÖÉ= ëáÅÜ= ΩÄÉêÜ~ìéí= áã= a~íÉåÄÉëí~åÇ= ÄÉÑáåÇÉå\= h~åå=ìåë=ÇáÉ=iáëíÄçñ=åáÅÜí=ëÉäÄÉê=ãáííÉäë=ÉáåÉê=é~ëëÉåÇÉå= éêçéÉêíó=ë~ÖÉåI=ïáÉ= îáÉäÉ=wÉáäÉå=ëáÉ=ÄÉëáíòí\== _ÉêÉáíë= ÇáÉ= pìÅÜÉ= áã= ÉêëíÉå= mìåâíJjÉåΩ= ÑΩÜêí= òìã= bêÑçäÖK= açêí= ïÉêÇÉå= ïáê= ÑΩåÇáÖ=E_áäÇ=RKPFK=

= _áäÇ=RKPW=éêçéÉêíó=Count= VN =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå= fã=qÉñí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=òìã=häáÅâ=~ìÑ=ÇÉå=_ìííçå= Letzter=â~åå=ÇáÉ=îçêJ Üáå=ÑÉëí=ÉáåéêçÖê~ããáÉêíÉ=w~Üä=NR=ÉêëÉíòí=ïÉêÇÉå=ÇìêÅÜ= ^åò~Üä=~ääÉê=báåíê®ÖÉ= ãáåìë=NW= procedure TForm1.Button4Click(Sender: TObject);

//Button „Letzter“

begin Listbox1.ItemIndex:=Listbox1.Count-1; Label1.Caption:=Listbox1.Items[Listbox1.Count-1]; Button3.Enabled:=False; Button4.Enabled:=False; Button1.Enabled:=True; Button2.Enabled:=True end;

få= ÇÉê= bêÉáÖåáëéêçòÉÇìê= òìã= häáÅâ= ~ìÑ= ÇÉå= _ìííçå= Nächster= Äê~ìÅÜí= ~åëÅÜäáÉJ ≈ÉåÇ=åìê=Éáåã~ä=ÇáÉ=w~Üä=15=ÇìêÅÜ=Listbox1.Count-1=ÉêëÉíòí=òì=ïÉêÇÉåK== a~ãáí=â∏ååÉå=ïáê=bêÉáÖåáëéêçòÉÇìêÉå=éêçÖê~ããáÉêÉåI=ÇáÉ=~ìÅÜ=ÄÉá= 13=çÇÉê= 17= çÇÉê=100=çÇÉê=10000=báåíê®ÖÉå=ÇÉå=a~íÉåÄÉëí~åÇ=ëíÉíë=âçêêÉâí=îÉêï~äíÉåK==

5.1.2 ==

Einklick oder Ausklick?

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 5= ÇáÉ= zipJa~íÉá= DKap05.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap05= ÇáÉ= mêçàÉâíJa~íÉá= proj_512.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap05=ÇáÉ=a~íÉá=proj_512.bdsproj=~ìëòìï®ÜäÉåK== == tÉåå=Éáå=kìíòÉê=ÉáåÉ=`ÜÉÅâÄçñ=~åâäáÅâíI=â~åå=ÇáÉëÉê=häáÅâ=ÉåíïÉÇÉê=Éáå=báåJ âäáÅâ= çÇÉê= Éáå= ^ìëâäáÅâ= ëÉáå= E_áäÇ= RKQFI= àÉ= å~ÅÜÇÉãI= çÄ= ÇÉê= e~âÉå= ÇìêÅÜ= ÇáÉ= kìíòÉêÉáåïáêâìåÖ=ÖÉëÉíòí=çÇÉê=ÄÉëÉáíáÖí=ïìêÇÉK== táÉ= ëáÉÜí= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìã= bêÉáÖåáë= häáÅâ= ~ìÑ= ÇáÉ= `ÜÉÅâÄçñ= ~ìëI= ÇáÉ= ìåë=ÇáÉëÉ=ÇáÑÑÉêÉåòáÉêíÉ=fåÑçêã~íáçå=äáÉÑÉêí\==

= _áäÇ=RKQW=báåâäáÅâ=çÇÉê=^ìëâäáÅâ== VO= =

RKN== báåÑ~ÅÜÉê=qÉëí= aÉå= o~ÜãÉå= ÉêÜ~äíÉå= ïáê= Ö~åò= ÉáåÑ~ÅÜI= ëÅÜäáÉ≈äáÅÜ= ÄÉÜ~åÇÉäå= ïáê= Ç~ë= pí~åJ Ç~êÇJbêÉáÖåáë=EëK=^ÄëÅÜåáíí=OKOKPFK=cΩê=ÇÉå=fåÜ~äí=åìíòÉå=ïáê=ìåëÉêÉ=ÖÉê~ÇÉ=ÉêJ ïçêÄÉåÉå=hÉååíåáëëÉI=áåÇÉã=ïáê=òïÉá=ÉáåÑ~ÅÜÉ=qÉëíë=éêçÖê~ããáÉêÉåK= procedure TForm1.CheckBox1Click(Sender: TObject); begin if Checkbox1.Checked=True then begin ShowMessage('Einklick') end; // Semikolon nötig, es folgt noch ein Test if Checkbox1.Checked=False then begin ShowMessage('Ausklick') end; end;

fã= hçããÉåí~ê= áëí= ëÅÜçå= ~ìÑ= ÇáÉ= kçíïÉåÇáÖâÉáí= ÇÉë= pÉãáâçäçåë= ÜáåÖÉïáÉëÉå= ïçêÇÉåX=~å=ÇáÉëÉê=píÉääÉ=ïáêÇ=Éë=~äë=qêÉååòÉáÅÜÉå=ìåÄÉÇáåÖí=ÖÉÄê~ìÅÜí>== iÉêåÉå=ïáê=åçÅÜ=ÉáåÉ=m~ëÅ~äJ^ìëå~ÜãÉêÉÖÉä=âÉååÉåW== • fëí=ÄÉá=ÉêÑΩääíÉã=qÉëí=åìê=Éáå=ÉáåòáÖÉê=_ÉÑÉÜä=~ìëòìÑΩÜêÉå=â∏ååÉå=ÇáÉ=^åïÉáJ ëìåÖëâä~ããÉêå=begin=ìåÇ=end=ÉåíÑ~ääÉåK= aáÉëÉ= ^ìëå~ÜãÉêÉÖÉä= áëí= ÄÉá= ìåë= ~åïÉåÇÄ~ê= ìåÇ= êÉÇìòáÉêí= ìåëÉêÉå= pÅÜêÉáÄJ ~ìÑï~åÇ=ÉêÜÉÄäáÅÜW= procedure TForm1.CheckBox1Click(Sender: TObject); begin if Checkbox1.Checked=True then ShowMessage('Einklick'); if Checkbox1.Checked=False then ShowMessage('Ausklick') end;

aáÉëÉ=^ìëå~ÜãÉêÉÖÉä=áëí=~ÄÉê=ëÉÜêI=ëÉÜê=ÖÉÑ®ÜêäáÅÜK=táêÇ=òìã=_ÉáëéáÉä=áå== if Listbox1.ItemIndex=0 then begin Button1.Enabled:=False; Button2.Enabled:=False end

Ç~ë= m~~ê= ÇÉê= ^åïÉáëìåÖëâä~ããÉêå= beginKKKend= ïÉÖÖÉä~ëëÉå= ÖÉÜ∏êí= åìê= åçÅÜ= ÇÉê= ÉêëíÉ= _ÉÑÉÜä= Button1.Enabled:=False= òìã= qÉëíI= Éê= ïáêÇ= åáÅÜí= áããÉêI= ëçåJ ÇÉêå=åìê=ã~åÅÜã~ä=~ìëÖÉÑΩÜêíK=aÉê=_ÉÑÉÜä= Button2.Enabled:=False=ïΩêÇÉ=Ç~J ÖÉÖÉå=~åëÅÜäáÉ≈ÉåÇ=áããÉê=~ìëÖÉÑΩÜêíK=aáÉ=í~íë®ÅÜäáÅÜÉ=táêâìåÖ=ë®ÜÉ=Ç~åå=ëç= ~ìëW= if Listbox1.ItemIndex=0 then Button1.Enabled:=False; Button2.Enabled:=False

VP =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå=

5.1.3 ==

Links-Rechts-Steuerung

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 5= ÇáÉ= zipJa~íÉá= DKap05.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap05= ÇáÉ= mêçàÉâíJa~íÉá= proj_513.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap05=ÇáÉ=a~íÉá=proj_513.bdsproj=~ìëòìï®ÜäÉåK== == báå= píÉìÉêÉäÉãÉåí= dêìééÉ= EGroupBoxFI= Ç~ê~ìÑ= äáåâë= Éáå= o~ÇáçÄìííçå= ãáí= ÇÉê= _ÉJ ëÅÜêáÑíìåÖ= nach linksI= áå= ÇÉê= jáííÉ= ÉáåÉ= pÅêçääÄ~ê= ìåÇ= êÉÅÜíë= Éáå= òïÉáíÉê= o~ÇáçJ Äìííçå=ãáí=ÇÉê=_ÉëÅÜêáÑíìåÖ= nach rechts=E_áäÇ=RKRFK=pí~êíÉáåëíÉääìåÖ=ÇÉë=oÉÖäÉêë=áå= ÇÉê=jáííÉI=jáåáãìã=kìääI=j~ñáãìã=NMMK=^åÑ~åÖë=ëçää=ÇÉê=äáåâÉ=o~ÇáçÄìííçå=~ìëJ ÖÉï®Üäí=ëÉáåK=^ää=ÇáÉë=ä®ëëí=ëáÅÜ=ãáí=ÇÉã=lÄàÉâíáåëéÉâíçê=îçêÄÉêÉáíÉåK=

= _áäÇ=RKRW=dêìééÉ=ãáí=o~ÇáçÄìííçåëI=pÅêçääÄ~ê=ìåÇ=_ìííçå= wìë®íòäáÅÜ=ëçää=ÇÉê=_ìííçå=ãáí=ÇÉê=_ÉëÅÜêáÑíìåÖ= Bewegung!=ÉñáëíáÉêÉåX=ïáêÇ=Éê=ÖÉJ âäáÅâíI=ëçää=ëáÅÜ=ÇÉê=oÉÖäÉê=òÉÜå=báåÜÉáíÉå=å~ÅÜ=äáåâë=çÇÉê=å~ÅÜ=êÉÅÜíë=ÄÉïÉÖÉå= Ó=àÉ=å~ÅÜ=t~ÜäK=wìÉêëí=ÇáÉ=i~åÖÑçêã=ÇÉê=bêÉáÖåáëéêçòÉÇìêW= procedure TForm1.Button1Click(Sender: TObject); begin if RadioButton1.Checked=True then begin Scrollbar1.Position:=ScrollBar1.Position-10 end; if RadioButton2.Checked=True then begin Scrollbar1.Position:=ScrollBar1.Position+10 end end;

dÉÑ®ÜêäáÅÜI=~ÄÉê=ÜáÉê=~ìÅÜ=ã∏ÖäáÅÜI=áëí=Ç~ë=tÉÖä~ëëÉå=ÇÉê=^åïÉáëìåÖëâä~ããÉêåW= procedure TForm1.Button1Click(Sender: TObject); begin if RadioButton1.Checked=True then Scrollbar1.Position:=ScrollBar1.Position-10; if RadioButton2.Checked=True then Scrollbar1.Position:=ScrollBar1.Position+10 end;

VQ= =

RKN== báåÑ~ÅÜÉê=qÉëí= ^ääÉë= ÑìåâíáçåáÉêíI= Éë= ÖáÄí= ~ìÅÜ= ΩÄÉêê~ëÅÜÉåÇ= âÉáåÉ= cÉÜäÉêãÉäÇìåÖI= ïÉåå= ÇÉê= oÉÖäÉê=êÉÅÜíë=çÇÉê=äáåâë=ł~åëí∏≈íK== açÅÜ= ï~êìã= ëçêÖÉå= ïáê= åáÅÜí= ëÉäÄëí= Ç~ÑΩêI= Ç~ëë= ÇáÉ= _ÉïÉÖìåÖëêáÅÜíìåÖ= ëáÅÜ= Ç~åå= ëÉäÄëí= ìãâÉÜêí\= a~ë= áëí= å®ãäáÅÜ= òáÉãäáÅÜ= ÉáåÑ~ÅÜI= ïáê= Äê~ìÅÜÉå= åìê= ÇÉå= fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=~ã=^åÑ~åÖ=ÇìêÅÜ=ÇáÉ=ÄÉáÇÉå=wÉáäÉå== if Scrollbar1.Position=100 then RadioButton1.Checked:=True; if Scrollbar1.Position=0

then RadioButton2.Checked:=True;

òì=ÉêÖ®åòÉåK=kìå=ã~ÅÜí=Éë=ëÅÜçå=êáÅÜíáÖ=pé~≈I=ãáí=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=òì= ëéáÉäÉåK=táê=ïÉêÇÉå=Ä~äÇ=ëé®íÉê=E^ÄëÅÜåáíí=SKSF=ëçÖ~ê=ÇáÉ=hçäÄÉåÄÉïÉÖìåÖ=áå= ÉáåÉã=sáÉêòóäáåÇÉêJjçíçê=ëáãìäáÉêÉå=â∏ååÉåK==

5.1.4 ==

Tasten wegfangen

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 5= ÇáÉ= zipJa~íÉá= DKap05.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap05= ÇáÉ= mêçàÉâíJa~íÉá= proj_514.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap05=ÇáÉ=a~íÉá=proj_514.bdsproj=~ìëòìï®ÜäÉåK== == bë= áëí= ïáÅÜíáÖK= pÉÜê= ïáÅÜíáÖK= få= ÇáÉëÉë= qÉñíÑÉåëíÉê= Ç~êÑ= ÇÉê= kìíòÉê= åìê= wáÑÑÉêå= ÉáåíáééÉåK= pçåëí= ÄêáÅÜí= Éáå= mêçÖê~ãã= òìë~ããÉåI= çÇÉê= ÇáÉ= tÉäí= ÉêëíáêÄí= çÇÉê= Ç~ë=råáîÉêëìã=áãéäçÇáÉêíK== = _áäÇ=RKSW=sÉêÖÉÄäáÅÜÉ=^ìÑÑçêÇÉêìåÖ= kìå=ÖìíI=ëç=ëÅÜäáãã=ïáêÇÛë=ëÅÜçå=åáÅÜí=ïÉêÇÉåI=çÄïçÜä=Éë=ëÅÜçå=mêçÖê~ããJ ÑÉÜäÉê=ÖÉÖÉÄÉå=Ü~íI=ÇáÉ=jáääá~êÇÉå=âçëíÉíÉåK== t~ë=ãÉáåÉå=páÉ=~ÄÉêI=äáÉÄÉ=iÉëÉêáåI=äáÉÄÉê=iÉëÉêW=táêÇ=ìåë=ÇáÉëÉ=åÉíí=ÖÉëÅÜêáÉJ ÄÉåÉ=^ìÑÑçêÇÉêìåÖ=Ç~îçê=ÄÉï~ÜêÉåI=Ç~ëë=Éáå=ìåâçåòÉåíêáÉêíÉê=kìíòÉê=ëáÅÜ=îÉêJ íáééí= çÇÉê= Éáå= ~åÇÉêÉê= kìíòÉê= îÉêëìÅÜíI= ÇçÅÜ= Éáå= u= çÇÉê= Éáå= jáåìë= çÇÉê= Éáå= mêçòÉåíòÉáÅÜÉå=ÉáåòìÖÉÄÉå\== páÉ=Ü~ÄÉå=oÉÅÜíW=kìíòÉê=ëáåÇ=ìåÄÉêÉÅÜÉåÄ~êK=táê=ãΩëëÉå=~ÄëáÅÜÉêåI=Ç~ëë=ìåÉêJ ä~ìÄíÉ=kìíòÉêÉáåÖ~ÄÉå=îÉêãáÉÇÉå=ïÉêÇÉåK=táêI=ÇáÉ=mêçÖê~ããáÉêÉêK=a~ÑΩê=ÖáÄí= Éë=ÖêìåÇë®íòäáÅÜ=òïÉá=jÉíÜçÇÉåW== • táê= ä~ëëÉå= ÇÉå= kìíòÉê= ÉáåÖÉÄÉåI= ï~ë= Éê= ïáää= ìåÇ= ~å~äóëáÉêÉå= ~åëÅÜäáÉ≈ÉåÇ= ëÉáåÉ=báåÖ~ÄÉK=tÉåå=ëáÉ=ìåâçêêÉâí=áëí=ïáêÇ=Éê=Ç~êΩÄÉê=áåÑçêãáÉêí=ìåÇ=~ìÑÖÉJ ÑçêÇÉêíI=ëÉáåÉ=báåÖ~ÄÉ=òì=ïáÉÇÉêÜçäÉåK==

VR =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå= • tÉåå= Éê= Ç~åå= ïáÉÇÉê= ìåâçåòÉåíêáÉêí= ~êÄÉáíÉíI= ÑáåÇÉí= Ç~ëëÉäÄÉ= åçÅÜ= Éáåã~ä= ëí~íí=ìåÇ=ëç=ïÉáíÉê==Ó=ëçä~åÖÉI=Äáë=Éê=ÉåÇäáÅÜ=ï~ÅÜ=ïáêÇK=lÇÉêI=ã~å=âÉååí=Ç~ë= îçå=ÇÉå=dÉäÇ~ìíçã~íÉåI=ã~å=ä®ëëí=åìê=ïáÉÇÉêÜçäÉåI=Äáë=ÉáåÉ=Éêä~ìÄíÉ=^åò~Üä= îçå=sÉêëìÅÜÉå=ÉêëÅÜ∏éÑí=áëíK=aêÉáã~ä=ÇáÉ=Ñ~äëÅÜÉ=mfkI=ìåÇ=ÇáÉ=h~êíÉ=áëí=ïÉÖK== a~ë= áëí= s~êá~åíÉ= Éáåë= ÇÉê= mêçÄäÉãä∏ëìåÖX= ïáê= ïÉêÇÉå= ëáÉ= áã= ^ÄëÅÜåáíí= NOKQKQ= âÉååÉå=äÉêåÉåK== açÅÜ=åìå=ÇáÉ=òïÉáíÉ=jÉíÜçÇÉW= • tÉåå= ÇÉê= kìíòÉê= ÉáåÉ= q~ëíÉ= ÇêΩÅâíI= ~å~äóëáÉêÉå= ïáê= áå= ÉáåÉê= é~ëëÉåÇÉå= bêJ ÉáÖåáëéêçòÉÇìêI= çÄ= ÇáÉëÉê= q~ëíÉåÇêìÅâ= ΩÄÉêÜ~ìéí= Éêä~ìÄí= áëíK= tÉåå= åáÅÜíI= ~ååìääáÉêÉå=ïáê=ÇÉå=q~ëíÉåÇêìÅâK== aáÉëÉ= òïÉáíÉ= jÉíÜçÇÉ= ïÉêÇÉå= ïáê= àÉíòí= ìãëÉíòÉåK= a~ÑΩê= Äê~ìÅÜÉå= ïáê= òìÉêëí= ÇÉå= o~ÜãÉå= ÇÉê= bêÉáÖåáëéêçòÉÇìê= ÑΩê= Ç~ë= bêÉáÖåáë= q~ëíÉåÇêìÅâ= ~ã= îáëìÉääÉå= lÄàÉâí=qÉñíÑÉåëíÉê=Edit1K= bë= Ü~åÇÉäí= ëáÅÜ= åáÅÜí= ìã= Ç~ë= pí~åÇ~êÇJbêÉáÖåáëI= ÑçäÖäáÅÜ= ÄÉëÅÜ~ÑÑÉå= ïáê= ìåë= ÇÉå= o~ÜãÉå= ÇÉê= bêÉáÖåáëéêçòÉÇìê= EëK= ^ÄëÅÜåáíí= OKPKOF= ãáí= eáäÑÉ= ÇÉë= oÉÖáëíÉêJ Ää~ííÉë=bobfdkfppb=ÇÉë=lÄàÉâíáåëéÉâíçêë=ÇÉë=qÉñíÑÉåëíÉêë=E_áäÇ= RKTF=ÇìêÅÜ=açéJ éÉäâäáÅâ=áå=Ç~ë=cÉäÇ=êÉÅÜíë=åÉÄÉå=OnKeyPressK==

== _áäÇ=RKTW=_ÉëÅÜ~ÑÑìåÖ=ÇÉë=o~ÜãÉåë=ÇÉê=bêÉáÖåáëéêçòÉÇìê= kìå= áëí= ~ääÉë= êÉÅÜí= ÉáåÑ~ÅÜW= aÉê= o~ÜãÉå= ÇáÉëÉê= bêÉáÖåáëéêçòÉÇìê= ëçêÖí= ÄÉêÉáíë= Ç~ÑΩêI=Ç~ëë=ìåë=ìåíÉê=ÇÉê=_ÉòÉáÅÜåìåÖ= Key=Ç~ëàÉåáÖÉ=wÉáÅÜÉå=ΩÄÉêÖÉÄÉå=ïáêÇI= Ç~ë=ÇÉê=kìíòÉê=ÖÉê~ÇÉ=~ìÑ=ÇÉê=q~ëí~íìê=ÖÉÇêΩÅâí=Ü~íK== i~ëëÉå=ïáê=íÉëíÉåI=çÄ=ÇáÉ=ÖÉÇêΩÅâíÉ=q~ëíÉ=Ñ~äëÅÜ=áëíK=páÉ=áëí=Ñ~äëÅÜI=ïÉåå=Ç~ë=wÉáJ ÅÜÉå=~ìÑ=ÇÉê=q~ëíÉ=äáåâë=îçã=łwÉáÅÜÉå=kìää=çÇÉê=êÉÅÜíë=îçã=łwÉáÅÜÉå=kÉìå= ëíÉÜí=EÑΩê=báåòÉäÜÉáíÉå=ëáÉÜÉ=^ÄëÅÜåáíí=NMKOFW== if (Key < '0') or (Key > '9') then ShowMessage(‘Taste falsch!‘)

qÉëíÉå=ïáê=ìåÇ=ÖÉåáÉ≈Éå=ÇÉå=qÉáäÉêÑçäÖW=bë=ïÉêÇÉå=í~íë®ÅÜäáÅÜ=~ääÉ=ìåÉêä~ìÄíÉå= wÉáÅÜÉå=Éêâ~ååíK=^ÄÉê=ëÅÜäÉÅÜí=Ó=ëáÉ=ïÉêÇÉå=íêçíòÇÉã=ÉáåÖÉíê~ÖÉå>= sÉêëìÅÜÉå=ïáêI=Ç~ë=òì=îÉêÜáåÇÉêåI=áåÇÉã=ïáê=ÄÉá=ÉêÑΩääíÉã=qÉëí=ÇáÉëÉë=Key=Ç~åå= ÉÄÉå=ãáí=ÉáåÉã=é~ëëÉåÇÉå=~åÇÉêÉå=wÉáÅÜÉå=ÄÉäÉÖÉåW= if (Key < '0') or (Key > '9') then Key:=' '

mêáã~I=~ÄÉê=ïáêÇ=ÑΩê=àÉÇÉë=Ñ~äëÅÜ=ÖÉíáééíÉ=wÉáÅÜÉå=Éáå=iÉÉêòÉáÅÜÉå=ÉáåÖÉÖÉÄÉå= E_áäÇ=RKUFK== == VS= =

RKN== báåÑ~ÅÜÉê=qÉëí= få=ÇÉã=qÉñíÑÉåëíÉê=ëáÉÜí=Éë=~ìë=ïáÉ=áã=âáåÇäáÅÜÉå=dÉÄáëë=ÉáåÉë=pÅÜìä~åÑ®åÖÉêëK= fëí=Ç~ë=ÇáÉ=i∏ëìåÖ\==

= _áäÇ=RKUW=iÉÉêòÉáÅÜÉå=~åëíÉääÉ=Ñ~äëÅÜÉê=q~ëíÉå= j~ÅÜÉå=ïáêÛë=âìêò=ìåÇ=îÉêïÉáëÉå=ÖäÉáÅÜòÉáíáÖ=~ìÑ=ÇÉå=^ÄëÅÜåáíí=NMKOW=t~ë=~ìÅÜ= áããÉê=òïáëÅÜÉå=ÇáÉ=ÄÉáÇÉå=eçÅÜâçãã~ë=ÖÉëÅÜêáÉÄÉå=ïáêÇ=Ó=Éë=ÉêëÉíòí=ÇáÉ=Ñ~äJ ëÅÜÉ= q~ëíÉ= ìåÇ= ïáêÇ= ëí~ííÇÉëëÉå= ÉáåÖÉíê~ÖÉåK= açÅÜ= Key:=''= áëí= îÉêÄçíÉåI= Ç~= âçããí=ÉáåÉ=ÖÉÜ~êåáëÅÜíÉ=cÉÜäÉêãÉäÇìåÖK=t~ë=íìå\= aáÉ= i∏ëìåÖ= âçããíI= áåÇÉã= ïáê= Éáå= mëÉìÇçJwÉáÅÜÉå= òìïÉáëÉåI= ÉáåÉ= q~ëíÉI= ÇáÉ= âÉáåÉ=báåíê~ÖÉJtáêâìåÖ=Ü~íK=_ÉáëéáÉäëïÉáëÉ=ÇáÉ=bëÅ~éÉJq~ëíÉ= Esc K=a~òì=ãìëë= ã~å=ÇáÉ=Eëé®íÉê=Éêâä®êíÉF=ChrJcìåâíáçå=îÉêïÉåÇÉåW= procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if (Key < '0') or (Key > '9') then Key:=Chr(27) end;

a~ë= áëí= ÇáÉ= i∏ëìåÖI= åìå= ïÉêÇÉå= Ñ~äëÅÜÉ= q~ëíÉå= ÉáåÑ~ÅÜ= áÖåçêáÉêíX= ïáê= â∏ååÉå= ~Äëçäìí=ëáÅÜÉê=ëÉáåI=Ç~ëë=Ç~ë=qÉñíÑÉåëíÉêI=ëçÑÉêå=Éë=åáÅÜí=ΩÄÉêÜ~ìéí=äÉÉê=áëíI=åìê= wáÑÑÉêå=ÉåíÜ®äíK=_Éá=ïÉáíÉêÉê=mêçÖê~ããáÉêìåÖ=â∏ååÉå=ïáê=ìåë=Ç~ê~ìÑ=îÉêä~ëëÉåK= eìåÇÉêíéêçòÉåíáÖK=råÄÉÇáåÖíK== wìã=pÅÜäìëë=ïçääÉå=ïáê=åçÅÜ=Ç~ë=åÉì=dÉäÉêåíÉ=òìë~ããÉåÑ~ëëÉåW== • báåÑ~ÅÜÉ=qÉëíë=ÇΩêÑÉå=áå=m~ëÅ~ä=ãáí=ÇÉå=pÅÜäΩëëÉäï∏êíÉêå= or=EÑΩê=łçÇÉêF=ìåÇ= and= EÑΩê= łìåÇF= îÉêâåΩéÑí= ïÉêÇÉåK= a~ÄÉá= ëáåÇ= ÇáÉ= ÉáåòÉäåÉå= qÉëíë= áå= êìåÇÉ= hä~ããÉêå=òì=ëÉíòÉå=ìåÇ=ëíÉíë=îçääëí®åÇáÖ=òì=ÑçêãìäáÉêÉåK=píêÉåÖ=îÉêÄçíÉå=áëí= òìã=_ÉáëéáÉä=ëçäÅÜ=Éáå=råëáååW== if (Key < '0' or > '9') then...

• sÉêâåΩéÑìåÖ=òïÉáÉê=qÉëíë=ãáí=łìåÇW= if (...test1...) and (...test2...) then begin ... end

• sÉêâåΩéÑìåÖ=òïÉáÉê=qÉëíë=ãáí=łçÇÉêW= áf (...test1...) or (...test2...) then begin ... end

VT =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå= • fëí= ~ìëå~ÜãëïÉáëÉ= ÄÉá= ÉêÑΩääíÉã= qÉëí= åìê= Éáå= ÉáåòáÖÉê= _ÉÑÉÜä= ~ìëòìÑΩÜêÉåI= â~åå=ÇáÉ=^ìëå~ÜãÉêÉÖÉä=ÄÉåìíòí=ïÉêÇÉåW== if (...test1...) and (...test2...) then ...genau ein Befehl... if (...test1...) or (...test2...) then ...genau ein Befehl...

5.2

Alternative báåÑ~ÅÜÉ=qÉëíë=ÄÉïáêâÉå=åìêI=Ç~ëë=ÄÉá=áÜêÉê=bêÑΩääìåÖ=Éíï~ë=é~ëëáÉêíK=fëí=ÇÉê=qÉëí= åáÅÜí= ÉêÑΩääíI= é~ëëáÉêí= ÉÄÉå= åáÅÜíëK= a~ãáí= â~åå= ã~å= ëÅÜçå= îáÉäÉ= mêçÖê~ããáÉêJ ~ìÑÖ~ÄÉå=ä∏ëÉåK=^ÄÉê=åáÅÜí=~ääÉ=Ó=ìåÇ=Ç~ë=ïçääÉå=ïáê=ìåë=~å=ÉáåÉã=íóéáëÅÜÉå= _ÉáëéáÉä=~åëÉÜÉåK=

5.2.1 ==

Ein Nachttischlampen-Schalter

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 5= ÇáÉ= zipJa~íÉá= DKap05.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap05= ÇáÉ= mêçàÉâíJa~íÉá= proj_521.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap05=ÇáÉ=a~íÉá=proj_521.bdsproj=~ìëòìï®ÜäÉåK== == a~ë=ëçää=Éë=áããÉê=åçÅÜ=ÖÉÄÉåW=báå=aêìÅâ=~ìÑ=ÇÉå=pÅÜ~äíÉêI=ÇáÉ=i~ãéÉ=ÖÉÜí=~åI= ïáÉÇÉê=ÇÉêëÉäÄÉ=aêìÅâ=~ìÑ=ÇÉå=pÅÜ~äíÉêI=ÇáÉ=i~ãéÉ=ÖÉÜí=~ìëK=råÇ=ëç=ïÉáíÉêK== _Éíê~ÅÜíÉå= ïáê= Ç~ÑΩê= ÉáåÉå= _ìííçå= ãáí= ÇÉê= pí~êíJ_ÉëÅÜêáÑíìåÖ= EinK= táêÇ= Éê= ÖÉJ âäáÅâí=ëçää=ÇáÉ=_ÉëÅÜêáÑíìåÖ=ïÉÅÜëÉäå=áå= AusK=táêÇ=Éê=ïáÉÇÉê=ÖÉâäáÅâíI=ëçää=ïáÉJ ÇÉê=Ein=~ìÑ=ÇÉã=_ìííçå=ëíÉÜÉå=ìëïK=E_áäÇ=RKVFK=

= _áäÇ=RKVW=pí~êíI=å~ÅÜ=ÉêëíÉã=häáÅâI=å~ÅÜ=òïÉáíÉã=häáÅâ=EtìåëÅÜF= hÉáå=mêçÄäÉãI=ÇÉåâí=ëáÅÜ=ÇÉê=ïáëëÉåÇÉ=mêçÖê~ããáÉêÉêI=ÄÉëçêÖí=ëáÅÜ=ÇÉå= o~ÜJ ãÉå= ÑΩê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ìåÇ= ëÅÜêÉáÄí= ÉáåÉå= ~ìÑ= ÇÉå= ÉêëíÉå= _äáÅâ= íçääÉå= ìåÇ=ëÅÜÉáåÄ~ê=êáÅÜíáÖÉå=fåÜ~äíW== procedure TForm1.Button1Click(Sender: TObject); begin if Button1.Caption='Ein' then begin Button1.Caption:='Aus' end; if Button1.Caption='Aus' then begin Button1.Caption:='Ein' end end;

VU= =

//erster Test //zweiter Test

RKO== ^äíÉêå~íáîÉ= mêçÄáÉêÉå=ïáê=Éë=~ìëW=táê=â∏ååÉå=âäáÅâÉåI=ïáÉ=ìåÇ=ëç=çÑí=ïáê=ïçääÉå=Ó=ïáê=ÄÉJ âçããÉå= åáÉã~äë= ÇáÉ= _ÉëÅÜêáÑíìåÖ= Aus= òì= ëÉÜÉåK= t~ë= Ü~ÄÉå= ïáê= Ñ~äëÅÜ= ÖÉJ ã~ÅÜí\= aÉåâÉå=ïáê= ÖÉãÉáåë~ã= å~ÅÜK=aáÉ=i~ìÑòÉáí=ÄÉÖáååíI=~ìÑ=ÇÉã=_ìííçå=ëíÉÜí= EinK= bêëíÉê=häáÅâI=ÉêëíÉê=qÉëíK=aÉê=áëí=ÉêÑΩääíI=_ÉëÅÜêáÑíìåÖ=ïÉÅÜëÉäí=òì= AusK=açÅÜ=ÇáÉ= bêÉáÖåáëéêçòÉÇìê=áëí=ÖÉê~ÇÉ=Éêëí=òìê=e®äÑíÉ=~ÄÖÉ~êÄÉáíÉíW=báåÉ=jáääáçåëíÉäJpÉâìåJ ÇÉ=ëé®íÉê=âçããí=å®ãäáÅÜ=ëçÑçêí=ÇÉê=òïÉáíÉI=ÇÉê=ÑçäÖÉåÇÉ=qÉëíK=açêí=~ÄÉê=ïáêÇ= ÖÉÑê~ÖíI= çÄ= åìå= Aus= ~ìÑ= ÇÉã= _ìííçå= ëíÉÜíK= a~ë= áëí= ÇÉê= c~ää= Ó= ÑçäÖäáÅÜ= ïáêÇ= ÇáÉ= _ÉëÅÜêáÑíìåÖ= ïáÉÇÉê= ~ìÑ= Ein= ÖÉëíÉääíK= báå= íçääÉê= aÉåâÑÉÜäÉê= ÑΩÜêí= ÜáÉê= òì= ÉáåÉã= ~Äëçäìí=Ñ~äëÅÜÉå=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìêK== eáÉê=Äê~ìÅÜÉå=ïáê=ÉáåÉ=~åÇÉêÉ=qÉëíâçåëíêìâíáçåK=páÉ=ãìëë=ëç=~ìëëÉÜÉåW== • tÉåå=~ìÑ=ÇÉã=_ìííçå=Ein=ëíÉÜíI=Ç~åå=ëÅÜêÉáÄÉ=AusK=^åÇÉêåÑ~ääë=ëÅÜêÉáÄÉ=EinK== pçäÅÜ= ÉáåÉ= tÉååÓÇ~ååÓ~åÇÉêåÑ~ääëÓhçåëíêìâíáçå= åÉååí= ã~å= ^äíÉêå~íáîÉK= aáÉ= m~ëÅ~äJoÉÖÉäå=ÑΩê=áÜêÉ=rãëÉíòìåÖ=ëÉÜÉå=ïáê=áå=ÇÉê=êáÅÜíáÖÉå=bêÉáÖåáëéêçòÉÇìêK= procedure TForm1.Button1Click(Sender: TObject); begin if Button1.Caption='Ein' then begin // Befehle des JA-Zweiges Button1.Caption:='Aus' end else // andernfalls begin // Befehle des NEIN-Zweiges Button1.Caption:='Ein' end end;

aáÉ= ÉåÖäáëÅÜÉ= sçâ~ÄÉä= else= ÖÉÜ∏êí= òì= ÇÉå= ÇáîÉêëÉå= Ñ~äëÉ= ÑêáÉåÇë= EÑ~äëÅÜÉå= cêÉìåÇÉåFI=ÇáÉ=ÇáÉëÉ=péê~ÅÜÉ=ÑΩê=ìåë=aÉìíëÅÜÉ=ÄÉêÉáí=Ü®äíW=else=ÜÉá≈í=åáÅÜí=~äëçI= ëçåÇÉêå=~åÇÉêåÑ~ääëK=tÉê=ëáÅÜ=Ç~ë=ãÉêâíI=éêçÖê~ããáÉêí=êáÅÜíáÖK== ^äíÉêå~íáîÉå=ÄÉëáíòÉå=ÉáåÉå=g~J=ìåÇ=ÉáåÉå=kÉáåJwïÉáÖK== • _Éá=ÉêÑΩääíÉã=qÉëí=ïáêÇ=ÇÉê=g~JwïÉáÖ= ~ìëÖÉÑΩÜêíI=ÄÉá= åáÅÜí=ÉêÑΩääíÉã=qÉëí=ÇÉê= kÉáåJwïÉáÖK== båíÜ®äí= ÉáåÉê= ÇÉê= wïÉáÖÉ= ëéÉòáÉää= åìê= ÉáåÉå= ÉáåòáÖÉå= _ÉÑÉÜäI= ëç= â~åå= Eãìëë= ~ÄÉê= åáÅÜí>F= Ççêí= ïáÉÇÉêìã= Ç~ë= beginJendJm~~ê= ÇÉê= ^åïÉáëìåÖëâä~ããÉêå= ïÉÖJ ÖÉä~ëëÉå=ïÉêÇÉåW== procedure TForm1.Button1Click(Sender: TObject); begin if Button1.Caption='Ein' then Button1.Caption:='Aus' else Button1.Caption:='Ein' end;

VV =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå=

5.2.2 ==

Zu- und Abschalten von Buttons

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 5= ÇáÉ= zipJa~íÉá= DKap05.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap05= ÇáÉ= mêçàÉâíJa~íÉá= proj_522.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap05=ÇáÉ=a~íÉá=proj_522.bdsproj=~ìëòìï®ÜäÉåK== == táê= ïçääÉå= åçÅÜ= Éáåã~ä= òì= ÉáåÉê= ^ìÑÖ~ÄÉ= ®ÜåäáÅÜ= ïáÉ= áã= ^ÄëÅÜåáíí= QKRKO= òìJ êΩÅââÉÜêÉåI=ïç=Éë=ìã=ÇáÉ=^âíáîáÉêìåÖ=ìåÇ=aÉ~âíáîáÉêìåÖ=ÉáåÉë=_ìííçåë=ÖáåÖK= wïÉá=äÉÉêÉ=qÉñíÑÉåëíÉê=ëáåÇ=~ìÑ=ÇÉã=cçêãìä~ê=~åòìçêÇåÉåI=Ç~êìåíÉê=Éáå=_ìííçå= ãáí=ÇÉê=^ìÑëÅÜêáÑí= Füge zusammenI=Ç~êìåíÉê=Éáå=äÉÉêÉë=i~ÄÉäK=aáÉ=^ìÑÖ~ÄÉ=ä~ìíÉíW= tÉåå=ÇÉê=kìíòÉê=áå=ÇáÉ=ÄÉáÇÉå=qÉñíÑÉåëíÉê=Éíï~ë=ÉáåÖÉíê~ÖÉå=Ü~íI=ëçääÉå=ÄÉáã= häáÅâ=~ìÑ=ÇÉå=_ìííçå=ÇáÉ=ÄÉáÇÉå=fåÜ~äíÉ=ãáí=ÉáåÉã=_áåÇÉëíêáÅÜ=òìë~ããÉåÖÉÑΩÖí= ìåÇ=áã=i~ÄÉä=~åÖÉòÉáÖí=ïÉêÇÉåK=

= _áäÇ=RKNMW=sÉêâÉííìåÖ=ãáí=_áåÇÉëíêáÅÜ= §ÄÉê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìã= häáÅâ= ~ìÑ= ÇÉå= _ìííçå= Äê~ìÅÜÉå= ïáê= Ö~ê= åáÅÜí= ãÉÜê=òì=êÉÇÉåI=ëç=ÉáåÑ~ÅÜ=áëí=ëáÉW= procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption:=Edit1.Text + '-' + Edit2.Text end;

açÅÜ=ïÉäÅÜÉ=páíì~íáçå=äáÉÖí=ÉáÖÉåíäáÅÜ=îçêI=ïÉåå=ÉáåÉë=ÇÉê=ÄÉáÇÉå=qÉñíÑÉåëíÉê= çÇÉê= ëçÖ~ê= ~ääÉ= ÄÉáÇÉ= äÉÉê= ëáåÇ\= a~åå= ï®êÉ= ÇçÅÜ= ÉáåÉ= _ÉÇáÉåìåÖ= ÇÉë= _ìííçåë= ëáååäçëK== cçäÖäáÅÜ=ãìëë=ÇáÉ=éêçéÉêíó= Enabled=ÇÉë=_ìííçåë=~ìÑ=àÉÇÉå=c~ää=ÑΩê=ÇÉå=pí~êí=ÇÉê= i~ìÑòÉáí=~ìÑ=False=ÖÉëÉíòí=ïÉêÇÉå=E_áäÇ=RKNNFK=

= _áäÇ=RKNNW=_Éáã=pí~êíW=iÉÉêÉ=qÉñíÑÉåëíÉêI=áå~âíáîÉê=_ìííçå= kìå=âçããí=ÇÉê=áåíÉêÉëë~åíÉ=qÉáä=ÇÉê=^ìÑÖ~ÄÉW=_Éá=àÉÇÉê=ûåÇÉêìåÖ=áå=ÉáåÉã=ÇÉê= qÉñíÑÉåëíÉê=ãìëë=ÖÉéêΩÑí=ïÉêÇÉåI=çÄ=ÄÉáÇÉ=qÉñíÑÉåëíÉê=åáÅÜí=äÉÉê=ëáåÇK==

NMM= =

RKO== ^äíÉêå~íáîÉ= tÉåå= à~I= ïáêÇ= ÇÉê= _ìííçå= òìÖÉëÅÜ~äíÉíK= ^åÇÉêåÑ~ääë= ãìëë= ÇÉê= _ìííçå= ïáÉÇÉê= ÇÉ~âíáîáÉêí=ïÉêÇÉåW== procedure TForm1.Edit1Change(Sender: TObject); begin if (Edit1.Text'') and (Edit2.Text'') then Button1.Enabled:=True else Button1.Enabled:=False end; procedure TForm1.Edit2Change(Sender: TObject); begin if (Edit1.Text'') and (Edit2.Text'') then Button1.Enabled:=True else Button1.Enabled:=False end;

aÉê=qÉëí=òÉáÖí=ÉëW=bêëí=ïÉåå=ÄÉáÇÉ=qÉñíÑÉåëíÉê=ÉáåÉå=fåÜ~äí=Ü~ÄÉåI=ïáêÇ=ÇÉê=_ìíJ íçå=~âíáîK=táêÇ=~ìÅÜ=åìê=Éáå=fåÜ~äí=ÖÉä∏ëÅÜíI=ïáêÇ=ÇÉê=_ìííçå=ëçÑçêí=~ìíçã~íáëÅÜ= ïáÉÇÉê=áå~âíáîK=pçãáí=áëí=ÉáåÉ=ÖÉäìåÖÉåÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=Éåíëí~åÇÉåI=ÇÉêÉå= _ÉÇáÉåìåÖëÉäÉãÉåíÉ=åìê=Ç~åå=~âíáî=EÑçäÖäáÅÜ=ÄÉÇáÉåÄ~êF=ëáåÇI=ïÉåå=ÉáåÉ=kìíJ òÉêÉáåïáêâìåÖ=~ìÑ=ëáÉ=ΩÄÉêÜ~ìéí=ëáååîçää=áëíK= t~ë=Ü~ÄÉå=ïáê=~ì≈ÉêÇÉã=ÖÉäÉêåí\== • få=m~ëÅ~ä=ÄÉëáíòí=ÇáÉ=wÉáÅÜÉåâçãÄáå~íáçå==ÇáÉ=_ÉÇÉìíìåÖ=ìåÖäÉáÅÜK=== • báå=qÉëí=~ìÑ=ÉáåÉå=îçêÜ~åÇÉåÉå=fåÜ~äí=ïáêÇ=ëç=ÑçêãìäáÉêíI=Ç~ëë=ÖÉÑê~Öí=ïáêÇI= çÄ=ÇÉê=fåÜ~äí=åáÅÜí=äÉÉê=áëíW=få=m~ëÅ~ä=ïáêÇ=ÇáÉëÉë=äÉÉê=ãáí=òïÉá=åÉÄÉåÉáå~åJ ÇÉê=ëíÉÜÉåÇÉå=eçÅÜâçãã~ë=''=ÄÉëÅÜêáÉÄÉåK= t®êÉ= Éë= ÜáÉê= ÉáÖÉåíäáÅÜ= Ñ~äëÅÜI= ïÉåå= ã~å= ÇÉå= fåÜ~äí= ÇÉê= bêÉáÖåáëéêçòÉÇìêÉå= ãáí=òïÉá=ÉáåÑ~ÅÜÉå=qÉëíë=éêçÖê~ããáÉêíÉ\=pÉÜÉå=ïáê=Éë=ìåë=~åW== procedure TForm1.Edit1Change(Sender: TObject); begin if (Edit1.Text'') and (Edit2.Text'') then Button1.Enabled:=True;

//Semikolon nötig, ein Test folgt

if (Edit1.Text='') or (Edit2.Text='') then Button1.Enabled:=False end;

NMN =

R= báåÑ~ÅÜÉ=qÉëíë=ìåÇ=^äíÉêå~íáîÉå= procedure TForm1.Edit2Change(Sender: TObject); begin if (Edit1.Text'') and (Edit2.Text'') then Button1.Enabled:=True;

//Semikolon nötig, ein Test folgt

if (Edit1.Text='') or (Edit2.Text='') then Button1.Enabled:=False end;

pçÑÉêå= ÇáÉ= içÖáâ= ÄÉáÇÉê= ÉáåÑ~ÅÜÉê= qÉëíë= EÉáåã~ä= ìåÇI= Éáåã~ä= çÇÉêF= êáÅÜíáÖ= ÄÉJ Ç~ÅÜí=áëíI=â~åå=ã~å=~ìÅÜ=ëç=éêçÖê~ããáÉêÉåK== wïÉá=ÉáåÑ~ÅÜÉ=qÉëíë=~åëíÉääÉ=ÇÉê= if ... then ... else-hçãÄáå~íáçå=ëáåÇ=ÇáÉëJ ã~ä=ÜáÉê=åáÅÜí=Ñ~äëÅÜK= =

NMO= =

==

6

Timer und Timer-Ereignisse bë=ÖÉÜí=îçê~åK=fã=îçêáÖÉå=h~éáíÉä=äÉêåíÉå=ïáê=ãáí=ÇÉå= if...thenJ=ìåÇ=ëé®íÉê=ãáí= ÇÉå= if...then...elseJhçåëíêìâíáçåÉå= ïáÅÜíáÖÉ= j∏ÖäáÅÜâÉáíÉå= âÉååÉåI= ãáí= ÇÉJ åÉå=ïáê=ÉêêÉáÅÜÉå=â∏ååÉåI=Ç~ëë=ã~åÅÜÉ=_ÉÑÉÜäÉ=áã=fååÉêÉå=îçå=bêÉáÖåáëéêçòÉJ ÇìêÉå= åáÅÜí= áããÉêI= ëçåÇÉêå= åìê= ã~åÅÜã~ä= ~ÄÖÉ~êÄÉáíÉí= ïÉêÇÉåK= lÇÉê= áã= tÉÅÜëÉä=ãáí=~åÇÉêÉå=_ÉÑÉÜäÉå=ÄòïK=_ÉÑÉÜäëÖêìééÉåK== båíïÉÇÉê= KKK= çÇÉêI= Ç~ë= áëí= ÇáÉ= ^äíÉêå~íáîÉK= aáÉ= ä~íÉáåáëÅÜÉ= sçâ~ÄÉä= alter= ÜÉá≈í= ~ìÅÜ= åáÅÜíë= ~åÇÉêÉë= ~äë= Ç~ë= ~åÇÉêÉK= mçäáíáâÉê= çÇÉê= cì≈Ä~ääêÉéçêíÉêI= ÇáÉ= å~ÅÜ= ÇêáííÉå=ìåÇ=îáÉêíÉå=^äíÉêå~íáîÉå=ëìÅÜÉåI=Ü~ÄÉå=ÇÉãå~ÅÜ=áã=i~íÉáåìåíÉêêáÅÜí=ÖÉJ ëÅÜä~ÑÉå=çÇÉê=ÄÉá=ÇáÉëÉê=sçâ~ÄÉä=ÖÉê~ÇÉ=ÖÉÑÉÜäíK= aáÉ=^äíÉêå~íáîÉ=~äë=péê~ÅÜÉäÉãÉåí=Äê~ìÅÜí=ã~å=ìåÄÉÇáåÖí=ÄÉá=ÇÉã=ÖÉëÅÜáäÇÉêJ íÉå=k~ÅÜííáëÅÜä~ãéÉåJ_ÉáëéáÉäX=~åÇÉêÉ=_ÉáëéáÉäÉI=ïáÉ=ÇáÉ=wìJ=ìåÇ=^ÄëÅÜ~äíìåÖ= îçå=_ìííçåëI=â∏ååÉå=ï~ÜäïÉáëÉ=ãáí=^äíÉêå~íáîÉ=çÇÉê=òïÉá=ÉáåÑ~ÅÜÉå=qÉëíë=éêçJ Öê~ããáÉêí=ïÉêÇÉåK== ^ìÅÜ=ÇáÉ=áå=^ÄëÅÜåáíí=RKNKO=ÖÉëíÉääíÉ=^ìÑÖ~ÄÉI=Ç~ëë=ÄÉáã=häáÅâ=~ìÑ=ÉáåÉ=`ÜÉÅâJ Äçñ=ãáíÖÉíÉáäí=ïÉêÇÉå=ëçääI=çÄ=Éë=Éáå=báåâäáÅâ=çÇÉê=Éáå=^ìëâäáÅâ=ï~êI=Ü®ííÉ=ëáÅÜI= Ç~ë= ïáëëÉå= ïáê= åìåI= ãáí= ÇÉê= ^äíÉêå~íáîÉ= ÉäÉÖ~åíÉê= éêçÖê~ããáÉêÉå= ä~ëëÉåK= dÉJ å~ìëç= äáÉ≈É= ëáÅÜ= ÇáÉ= ^äíÉêå~íáîÉ= ~ìÅÜ= ~åïÉåÇÉå= ÄÉá= ÇÉê= _ÉïÉÖìåÖëëíÉìÉêìåÖ= ÇÉê=pÅêçääÄ~ê=E^ÄëÅÜåáíí=RKNKPFK== kìå=Ö∏ååÉå=ïáê=ìåë=ïáÉÇÉê=ÉáåÉ=sÉêëÅÜå~ìÑé~ìëÉI=ÄÉîçê=Éêëí=áã=h~éáíÉä=V=ãáí= ÇÉê= w®ÜäëÅÜäÉáÑÉ= Ç~ë= å®ÅÜëíÉ= äÉáëíìåÖëÑ®ÜáÖÉI= ~ÄÉê= ~ìÅÜ= ÖÉáëíáÖ= ~åëéêìÅÜëîçääÉ= péê~ÅÜÉäÉãÉåí=ÉáåÖÉÑΩÜêí=ïÉêÇÉå=ïáêÇK==

6.1

Timer: Begriff und Bedeutung

6.1.1

Bisherige Möglichkeiten und Grenzen

t~ë= â∏ååÉå= ïáê= ÄáëÜÉê\= sáÉäK= táê= â∏ååÉå= Éáå= cçêãìä~ê= ÜÉêëíÉääÉåI= ~ìÑ= ÇÉã= píÉìÉêÉäÉãÉåíÉ=~åÖÉçêÇåÉí=ëáåÇK=táê=â∏ååÉå=ëçïçÜä=ÑΩê=Ç~ë=cçêãìä~ê=~äë=~ìÅÜ= ÑΩê= ÇáÉ= píÉìÉêÉäÉãÉåíÉ= ÇáÉ= dÉëí~äíìåÖ= ÑΩê= ÉáåÉ= sáÉäò~Üä= îçå= jÉêâã~äÉå= ãáí= eáäÑÉ=ÇÉë=oÉÖáëíÉêÄä~ííÉë=bfdbkp`e^cqbk=ÇÉë=lÄàÉâíáåëéÉâíçêë=îçêÉáåëíÉääÉåK== _Éáã= _ÉÖáåå= ÇÉê= i~ìÑòÉáí= ïÉêÇÉå= ÇáÉëÉ= sçêÉáåëíÉääìåÖÉå= Ç~åå= ãáííÉäë= ÇÉê= éêçJ éÉêíáÉë=áå=ÇáÉ=a~íÉåâÉêåÉ=ÇÉê=ÉåíëíÉÜÉåÇÉå=îáëìÉääÉå=lÄàÉâíÉ=íê~åëéçêíáÉêíK=a~=ÇáÉ= a~íÉåâÉêåÉ= îáëìÉääÉê= lÄàÉâíÉ= ìåãáííÉäÄ~ê= ãáí= ÇÉå= ëáÅÜíÄ~êÉå= qÉáäÉå= îÉêÄìåÇÉå= ëáåÇI=ëÉÜÉå=ïáê=òìã=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=Ç~ëI=ï~ë=ïáê=îçêÜÉê=ÉáåÖÉëíÉääí=Ü~ÄÉåK== NMP =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= pçääíÉ=Éáå=jÉêâã~ä=ëáÅÜ=~ìëå~ÜãëïÉáëÉ=åáÅÜí=ΩÄÉê=ÇÉå=lÄàÉâíáåëéÉâíçê=îçêÉáåJ ëíÉääÉå= ä~ëëÉåI= Ç~= ÇáÉ= ÉåíëéêÉÅÜÉåÇÉ= éêçéÉêíó= Ççêí= ÑÉÜäí= EòK= _K= ÇáÉ= pí~êíã~êâáÉJ êìåÖ= áå= ÉáåÉê= iáëíÉFI= ä®ëëí= ëáÅÜ= ÇÉã= ~ÄÜÉäÑÉå= ãáí= eáäÑÉ= ÇÉê= ëéÉòáÉääÉå= bêÉáÖåáëJ éêçòÉÇìê=òìã=bêÉáÖåáë=bêòÉìÖìåÖ=ÇÉë=cçêãìä~êë=ìåÇ=ìåíÉê=sÉêïÉåÇìåÖ=ÖÉÉáÖJ åÉíÉê= ïÉáíÉêÉê= éêçéÉêíáÉëI= ÇáÉ= Ç~åå= áå= ÇÉê= mìåâíäáëíÉ= òì= ëìÅÜÉå= ëáåÇ= EëK= ^ÄJ ëÅÜåáíí=QKTKPFK=== tÉáíÉêÉ=bêÉáÖåáëéêçòÉÇìêÉå=ïÉêÇÉå=~ì≈ÉêÇÉã=îçêÄÉêÉáíÉíI=Ç~ãáí=ÄÉá= ÄÉëíáããJ íÉå=kìíòÉêÜ~åÇäìåÖÉå=~å=ÇÉå=ëáÅÜíÄ~êÉå=qÉáäÉå=ÖÉïáëëÉê=îáëìÉääÉê=lÄàÉâíÉ=ÇáÉ= ÖÉïΩåëÅÜíÉå=oÉ~âíáçåÉå=ÉáåíêÉíÉåK=t~ë=ïç=ìåÇ=ïçÄÉá=é~ëëáÉêÉå=ëçääI=Ç~ë=ãìëë= ã~å=~ìë=ÇÉê=^ìÑÖ~ÄÉåëíÉääìåÖ=ÉåíåÉÜãÉåK=a~ë=Ü~ÄÉå=ïáê=~å=îáÉäÉå=_ÉáëéáÉäÉå= ëÅÜçå=íê~áåáÉêí=ìåÇ=ïÉêÇÉå=Éë=ïÉáíÉê=íê~áåáÉêÉåK=

== _áäÇ=SKNW=_áëÜÉêáÖÉ=páíì~íáçåW=lÜåÉ=kìíòÉê=é~ëëáÉêí=åáÅÜíë== aáÉ= oÉ~âíáçåÉå= â∏ååÉå= áã= ÉáåÑ~ÅÜëíÉå= c~ää= åìê= jáííÉáäìåÖÉå= ëÉáåI= ëáÉ= â∏ååÉå= ~ÄÉê=~ìÅÜ=áå=ûåÇÉêìåÖÉå=~å=jÉêâã~äÉå=ÇÉë=ëáÅÜíÄ~êÉå=qÉáäë=ÇÉë=ÉáÖÉåÉå=çÇÉê= ~åÇÉêÉê=îáëìÉääÉê=lÄàÉâíÉ=ÄÉëíÉÜÉåK== j∏ÖäáÅÜ= ïáêÇ= Ç~ë= ~ääÉë= ÇìêÅÜ= ÇáÉ= sÉêïÉåÇìåÖ= îçå= éêçéÉêíáÉëI= ãáí= ÇÉêÉå= eáäÑÉ= ïáê=ÇÉå=wìÖêáÑÑ=~ìÑ=a~íÉåâÉêåÉ=îáëìÉääÉê=lÄàÉâíÉ=é~ëëáî=ìåÇ=~âíáî=éêçÖê~ããáÉJ êÉå=â∏ååÉåK= ^ääÉë= éêáã~K= açÅÜ= Éáå= qÉáä= ÉáåÉë= p~íòÉë= ëçää= ÜáÉê= åçÅÜ= Éáåã~ä= ÜÉêîçêÖÉÜçÄÉå= ïÉêÇÉåW= NMQ= =

SKN== qáãÉêW=_ÉÖêáÑÑ=ìåÇ=_ÉÇÉìíìåÖ= • KKK=Ç~ãáí=ÄÉá=ÄÉëíáããíÉå=kìíòÉêÜ~åÇäìåÖÉå=~å=ÇÉå=ëáÅÜíÄ~êÉå=qÉáäÉå=ÖÉïáëJ ëÉê=îáëìÉääÉê=lÄàÉâíÉ=ÇáÉ=ÖÉïΩåëÅÜíÉå=oÉ~âíáçåÉå=ÉáåíêÉíÉå= a~ë= ÜÉá≈í= ÇçÅÜ= áã= hä~êíÉñí= ÖÉå~ì= Ç~ëI= ï~ë= áå= ÇÉê= råíÉêëÅÜêáÑí= îçå= _áäÇ= SKN= ëíÉÜíW=lÜåÉ=kìíòÉê=é~ëëáÉêí=åáÅÜíëK== açÅÜ= ~ìÅÜ= Ç~ååI= ïÉåå= Éáå= kìíòÉê= îçêÜ~åÇÉå= áëí= ìåÇ= ëáÅÜ= ÄÉÖÉáëíÉêí= ÇÉå= ÜΩÄëÅÜ=ÖÉëí~äíÉíÉå=_áäÇëÅÜáêã=~åëáÉÜíI=é~ëëáÉêí=åáÅÜíëK=táê=ãΩëëÉå=ÖÉå~ìÉê=ÑçêJ ãìäáÉêÉåW== • lÜåÉ=ÉáåÉ=_ÉÇáÉåÜ~åÇäìåÖ=ÉáåÉë=kìíòÉêë=ïáêÇ=ÄáëÜÉê=åáÅÜí=ÉáåÉ=ÉáåòáÖÉ=bêJ ÉáÖåáëéêçòÉÇìê=ÖÉëí~êíÉí=ìåÇ=~ÄÖÉ~êÄÉáíÉíK== k~=ìåÇI=â∏ååíÉ=ã~å=Ç~=ÉáåïÉåÇÉå\=pÅÜäáÉ≈äáÅÜ=ïáêÇ=ÇçÅÜ=ÉáåÉ=_ÉåìíòÉêçÄÉêJ Ñä®ÅÜÉ=ÖÉê~ÇÉ=Ç~ÑΩê=ÖÉã~ÅÜíI=Ç~ëë=Éáå=kìíòÉê=ãáí=áÜê=ìãÖÉÜíK= açÅÜ= Éë= ÖáÄí= ~ìÅÜ= åçÅÜ= ~åÇÉêÉ= ^êíÉå= îçå= ^ìÑÖ~ÄÉåëíÉääìåÖÉåK= pç= Ü~ÄÉå= ïáê= ÇáÉ=îáÉäÉå=péáÉäÉI=ÇáÉ=ÖÉê~ÇÉòì=Ç~îçå=äÉÄÉåI=Ç~ëë=òìå®ÅÜëí=çÜåÉ=kìíòÉêÉáåïáêJ âìåÖ= ~ìÑ= ÇÉê= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= Éíï~ë= é~ëëáÉêíI= ïçê~ìÑ= ÇÉê= kìíòÉê= êÉ~ÖáÉêÉå= ëçääK== ^ìÅÜ=ÇÉê=_ÉÖêáÑÑ=ÇÉê=páãìä~íáçå=ïáêÇ=ìåë=åçÅÜ=ÄÉëÅÜ®ÑíáÖÉåW=lÜåÉ=báåïáêâìåÖ= îçå=~ì≈Éå= ëçääÉå=mêçòÉëëÉ=áã=wÉáíêÜóíÜãìë= ~Ää~ìÑÉåI=ÇáÉ=ã~å= Ç~åå=ÄÉçÄ~ÅÜJ íÉå=â~åå=Ó=ÄÉáëéáÉäëïÉáëÉ=ÇáÉ=píÉìÉêìåÖ=ÉáåÉê=^ãéÉä=~å=ÉáåÉê=hêÉìòìåÖK== lÇÉê=ÇÉåâÉå=ïáê=~å=mê®ëÉåí~íáçåëJ=ìåÇ=fåÑçêã~íáçåëéêçÖê~ããÉK=tÉåå=ÇÉê=fåJ Ü~ÄÉê= ÉáåÉë= oÉáëÉÄΩêçë= ~ã= p~ãëí~Öãáíí~Ö= ÉáåÉå= m`J_áäÇëÅÜáêã= áå= ëÉáå= pÅÜ~ìJ ÑÉåëíÉê=ëíÉääí=ìåÇ=ãáí=ÇÉã=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=ÉáåÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=ÜÉêëíÉääíI= ëçää=å~íΩêäáÅÜ=çÜåÉ=wìíìå=ÇÉê=_Éíê~ÅÜíÉê=ÉáåÉ=mê®ëÉåí~íáçå=~Ää~ìÑÉåK== pÅÜäáÉ≈äáÅÜ=ëçääíÉå=ïáê=~ìÅÜ=~å=ÉáåÉå=_áäÇëÅÜáêãëÅÜçåÉê=ÇÉåâÉåI=ÇÉê=çÜåÉ=àÉÖJ äáÅÜÉå=^åëíç≈=ÇìêÅÜ=ÉáåÉ=kìíòÉêÉáåïáêâìåÖ=éä∏íòäáÅÜ=ëí~êíÉí=ìåÇ=é~ìëÉåäçë=îÉêJ ëÅÜáÉÇÉå~êíáÖëíÉ=_áäÇÉê=éêçÇìòáÉêíK===

6.1.2

Timer

báå=qáãÉê=áëí=Éáå=wÉáíÖÉÄÉêI=ÇÉê=Ó=ëçÑÉêå=Éê=~âíáî=áëí=Ó=áå=ÄÉëíáããíÉå=^Äëí®åÇÉå= Éáå=bêÉáÖåáë=~ìëä∏ëíI=Ç~ë=qáãÉêJbêÉáÖåáëK== wìã=qáãÉêJbêÉáÖåáë=â∏ååÉå=áå=ÇÉê=òìÖÉÜ∏êáÖÉå=bêÉáÖåáëéêçòÉÇìê=îáÉäÑ®äíáÖÉ=oÉJ ~âíáçåÉå=éêçÖê~ããáÉêí=ïÉêÇÉå=EëáÉÜÉ=_áäÇ=SKOFK==== báå= qáãÉê= áëí= Éáå= lÄàÉâíI= Ç~ë= áå= ëÉáåÉã= ÖÉâ~éëÉäíÉå= a~íÉåâÉêå= ÇáÉ= jÉêâã~äÉ= îÉêï~äíÉíK=fã=lÄàÉâíáåëéÉâíçê=ëáåÇ=ÇáÉ=báÖÉåëÅÜ~ÑíÉå=~ìÑÖÉäáëíÉíI=ãáí=ÇÉêÉå=eáäÑÉ= ÇáÉ=páíì~íáçå=ÇÉë=qáãÉêë=ÄÉáã=pí~êí=ÇÉê=i~ìÑòÉáí=îçêÉáåÖÉëíÉääí=ïÉêÇÉå=â~ååK== jáí=eáäÑÉ=ÉáåáÖÉê=éêçéÉêíáÉë=â~åå=áå=bêÉáÖåáëéêçòÉÇìêÉå=~ääÉê=^êí=~ìÑ=ÇÉå=a~íÉåJ âÉêå=ÉáåÉë=qáãÉêë=òìÖÉÖêáÑÑÉå=ïÉêÇÉåK== j∏ÖäáÅÜâÉáíÉå= ÇÉê= ìåãáííÉäÄ~êÉå= kìíòÉêÉáåïáêâìåÖ= ~ìÑ= ÉáåÉå= qáãÉê= ÖáÄí= Éë= åáÅÜíK=cçäÖäáÅÜ=ò®Üäí=Éáå=qáãÉê=ïçÜä=åáÅÜí=òì=ÇÉå=îáëìÉääÉå=lÄàÉâíÉåK= NMR =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ=

= _áäÇ=SKOW=qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáë== aÉäéÜá=ÄáÉíÉí=ÇáÉ=j∏ÖäáÅÜâÉáíI=ãÉÜêÉêÉ=qáãÉê=òì=îÉêïÉåÇÉå=E_áäÇ=SKPFK=cΩê=àÉJ ÇÉå=ÉáåòÉäåÉå=qáãÉê=â~åå=Éáå=ÄÉëíáããíÉë=fåíÉêî~ää=ÉáåÖÉëíÉääí=ïÉêÇÉåK== aáÉ=jÉåÖÉ=ÇÉê=bêÉáÖåáëéêçòÉÇìêÉåI=áå=ÇÉåÉå=~ìÑ=kìíòÉêÉáåïáêâìåÖÉå=êÉ~ÖáÉêí= ïáêÇI=â~åå=ÉêÖ®åòí=ïÉêÇÉå=ÇìêÅÜ=îáÉäÑ®äíáÖÉ=bêÉáÖåáëéêçòÉÇìêÉå=òì=ÇÉå=qáãÉêJ bêÉáÖåáëëÉåK==

6.2

Einrichtung und Starteinstellung lÄïçÜä=Éáå=qáãÉê=âÉáå=îáëìÉääÉë=lÄàÉâí=áëíI=â~åå=Éê=ÇçÅÜ=ÉÄÉåëç=ïáÉ=ÇáÉ=ÄáëJ ÜÉê=ÄÉâ~ååíÉå=îáëìÉääÉå=lÄàÉâíÉ=ÉáåÖÉêáÅÜíÉí=ïÉêÇÉåK==

6.2.1

Platzieren des Timer-Symbols

a~ë=qáãÉêJpóãÄçä=ErÜêF=ÑáåÇÉå=ïáê=áå=aÉäéÜá=~ìÑ=ÇÉê=oÉÖáëíÉêâ~êíÉ=pvpqbj=ÇÉê= hçãéçåÉåíÉåäÉáëíÉK= få= aÉäéÜá= ULOMMR= ãìëë= áå= ÇÉê= qççäJm~äÉííÉ= ~ìÑ= pvpqbj= ìãJ ÖÉëíÉääí=ïÉêÇÉå=EëK=_áäÇ=SKQFK=a~ë=qáãÉêJpóãÄçä=â~åå=áêÖÉåÇïçÜáå=~ìÑ=Ç~ë=cçêJ ãìä~ê=ÖÉòçÖÉå=ïÉêÇÉåK=bë=áëí=òìê=i~ìÑòÉáí=åáÅÜí=òì=ëÉÜÉåX=Éë=áëí=ìåïáÅÜíáÖI=ïç= Éë=~ìÑ=ÇÉã=cçêãìä~ê=éä~íòáÉêí=ïáêÇK=aÉäéÜá=îÉêÖáÄí=~ìíçã~íáëÅÜ=ÇáÉ=k~ãÉå= Timer1I=Timer2=ìëïK=ÑΩê=ÇáÉ=éä~íòáÉêíÉå=qáãÉêK= aÉê= lÄàÉâíáåëéÉâíçê= ÖáÄí= Ó= ïáÉ= áããÉê= Ó= ÇáÉ= j∏ÖäáÅÜâÉáí= îçêÉáåòìëíÉääÉåI= ïáÉ= ÇÉê=àÉïÉáäáÖÉ=qáãÉê=òì=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=ÉáåÖÉêáÅÜíÉí=ëÉáå=ëçääK== aìêÅÜ= ÇÉå= qáãÉêJlÄàÉâíáåëéÉâíçê= ëáåÇ= ÖäÉáÅÜòÉáíáÖ= ~ìÅÜ= ÇáÉ= k~ãÉå= ïáÅÜíáÖÉê= éêçéÉêíáÉë= ÄÉâ~ååíI= ãáí= ÇÉåÉå= áååÉêÜ~äÄ= îçå= ~åÇÉêÉå= bêÉáÖåáëéêçòÉÇìêÉå= ~ìÑ= ÇÉå=a~íÉåâÉêå=ÉáåÉë=qáãÉêë=~âíáî=ìåÇ=é~ëëáî=òìÖÉÖêáÑÑÉå=ïÉêÇÉå=â~ååK== NMS= =

SKO== báåêáÅÜíìåÖ=ìåÇ=pí~êíÉáåëíÉääìåÖ=

= _áäÇ=SKPW=jÉÜêÉêÉ=qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ=

= _áäÇ=SKQW=qáãÉêJpóãÄçä=áå=aÉäéÜá=ìåÇ=aÉäéÜá=ULOMMR= aáÉ=ïáÅÜíáÖëíÉå=éêçéÉêíáÉëI=~äë=qáãÉêJbáÖÉåëÅÜ~ÑíÉå=ÉåíÜ~äíÉå=áå=ÇÉëëÉå=lÄàÉâíJ áåëéÉâíçêI=Ü~ÄÉå=ÇáÉ=k~ãÉå=Enabled=ìåÇ=IntervalK==

== _áäÇ=SKRW=sçêÉáåëíÉääìåÖ=ÇÉê=pí~êíJbáÖÉåëÅÜ~ÑíÉå= fëí=ÇáÉ=éêçéÉêíó= Enabled=~ìÑ= True=ÖÉëÉíòíI=ëç=ä®ìÑí=ÇÉê=qáãÉêI=ÇK=ÜK=Ç~ë=qáãÉêJbêJ ÉáÖåáë= íêáíí= ãáí= ÇÉã= ÉáåÖÉëíÉääíÉå= fåíÉêî~ää= ~ìÑK= jáí= Enabled:=False= ïáêÇ= ÇÉê= qáJ ãÉê=~åÖÉÜ~äíÉåI=çÜåÉ=Ç~ëë=Ç~ë=fåíÉêî~ää=îÉê®åÇÉêí=ïáêÇK=bêåÉìíÉ=rãëíÉääìåÖ=~ìÑ= Enabled:=True=ëí~êíÉí=ÇÉå=qáãÉê=ïáÉÇÉêK= jáí= ÇÉê= éêçéÉêíó= Interval= E^ÅÜíìåÖ= Ó= = åìê= Éáå= łlF= ïáêÇ= ÇáÉ= m~ìëÉ= òïáëÅÜÉå= òïÉá=qáãÉêJbêÉáÖåáëëÉå=áå=jáääáëÉâìåÇÉå=ÑÉëíÖÉäÉÖíK== NMT =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= få= _áäÇ= SKR= áëí= ÇÉê= ÉêëíÉ= qáãÉêI= ÇÉê= îçå= aÉäéÜá= ÇÉå= k~ãÉå= Timer1= ÄÉâçããÉå= Ü~íI= ëç= ÉáåÖÉëíÉääíI= Ç~ëë= ëÉáå= qáãÉêJbêÉáÖåáë= Éáåã~ä= éêç= pÉâìåÇÉ= = Éáåíêáíí= ENMMM= jáääáëÉâìåÇÉå=Z=N=pÉâìåÇÉFK= • aáÉ=cêÉèìÉåò=îçå=qáãÉêå=áëí=áã=^ääÖÉãÉáåÉå=ÄÉÖêÉåòíW=bë=áëí=ëáååäçëI=ÉáåÉå= qáãÉê=~ìÑ=Éáå=ÉñíêÉã=âäÉáåÉë=fåíÉêî~ää=òì=ëÉíòÉåX=áã=báåòÉäåÉå=Ü®åÖí=ÇáÉ=ÇáÉJ ëÉë=jáåáã~äáåíÉêî~ää=îçå=îÉêëÅÜáÉÇÉåÉå=c~âíçêÉåI=òK=_K=ÇÉã=_ÉíêáÉÄëëóëíÉãI= ~ÄK=_Éá=aÉäéÜá=T=ÄÉíê®Öí=ÇÉê=âäÉáåëíã∏ÖäáÅÜÉ=tÉêí=RR=ãëK==

6.2.2 ==

Einfache Ereignisprozeduren

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_622.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_622.bdsproj=~ìëòìï®ÜäÉåK== = wìê= aÉãçåëíê~íáçå= ïçääÉå= ïáê= ÇêÉá= qáãÉê= ìåíÉêÉáå~åÇÉê= ~ìÑ= ÇÉã= cçêãìä~ê= éä~íòáÉêÉå=ìåÇ=Ç~åÉÄÉå=àÉïÉáäë=ÉáåÉ= pÅêçääÄ~ê=ëÉíòÉå=E_áäÇ=SKSFK=gÉÇÉ=pÅêçääÄ~ê= ÄÉëáíòí=ÇáÉëÉäÄÉ=pí~åÇ~êÇJpí~êíÉáåëíÉääìåÖW=jáåáãìã=0I=j~ñáãìã=100I=mçëáíáçå=0K==

== _áäÇ=SKSW=aêÉá=qáãÉêI=ÇêÉá=lÄàÉâíÉ=pÅêçääÄ~ê== ^ääÉ= ÇêÉá= qáãÉê= ïÉêÇÉå= ~âíáî= îçêÉáåÖÉëíÉääíI= ~ÄÉê= ãáí= îÉêëÅÜáÉÇÉåÉå= fåíÉêî~ääÉå= E_áäÇ=SKSFW=Timer1=âçããí=àÉÇÉ=pÉâìåÇÉI=Timer2=~ääÉê=O=pÉâìåÇÉåI=ìåÇ=Timer3=ä®ëëí= ëáÅÜ=~ã=ãÉáëíÉå=wÉáíW=bê=ä∏ëí=åìê=~ääÉê=îáÉê=pÉâìåÇÉå=ëÉáå=qáãÉêJbêÉáÖåáë=~ìëK==

= _áäÇ=SKTW=pí~êíÉáåëíÉääìåÖÉå=ÇÉê=ÇêÉá=qáãÉê= _Éá=ÇÉå=ÄáëÜÉê=ÄÉÜ~åÇÉäíÉå=îáëìÉääÉå=lÄàÉâíÉå=Ö~Ä=Éë=ÇìêÅÜïÉÖ=Ç~ë=pí~åÇ~êÇJ bêÉáÖåáë=ìåÇ=îáÉäÉ=~åÇÉêÉ=káÅÜíJpí~åÇ~êÇJbêÉáÖåáëëÉK==

NMU= =

SKO== báåêáÅÜíìåÖ=ìåÇ=pí~êíÉáåëíÉääìåÖ= táê=ãìëëíÉå=àÉïÉáäë=ÖÉå~ì=ΩÄÉêäÉÖÉåI=ÑΩê=ïÉäÅÜÉ=bêÉáÖåáëJ^êí=ÇÉê=o~ÜãÉå=ÇÉê= bêÉáÖåáëéêçòÉÇìê=ÄÉëÅÜ~ÑÑí=ïÉêÇÉå=ëçääíÉK== _Éáã= qáãÉê= ÖáÄí= Éë= åìê= Éáå= ÉáåòáÖÉë= bêÉáÖåáëI= ÑΩê= Ç~ë= ÉáåÉ= oÉ~âíáçå= éêçÖê~ãJ ãáÉêí= ïÉêÇÉå= â~åå= Ó= ÇáÉ= ÇáÉëÄÉòΩÖäáÅÜÉ= iáëíÉ= áã= lÄàÉâíáåëéÉâíçê= E_áäÇ= SKUF= ëÅÜêìãéÑí=ÑçäÖäáÅÜ=~ìÑ=ÉáåÉå=ÉáåòáÖÉå=báåíê~Ö=òìë~ããÉåK==

== _áäÇ=SKUW=iáëíÉ=ÇÉê=ã∏ÖäáÅÜÉå=bêÉáÖåáëëÉ=ÄÉáã=qáãÉê== báå=açééÉäâäáÅâ=áå=Ç~ë=äÉÉêÉ=cÉäÇ=åÉÄÉå= OnTimer=çÇÉê=Éáå=açééÉäâäáÅâ=~ìÑ=Ç~ë= qáãÉêJpóãÄçä=~ìÑ=ÇÉã=cçêãìä~ê=äáÉÑÉêí=ìåë=Ç~åå=ëçÑçêí=ÇÉå=o~ÜãÉå=ÑΩê=ÇáÉ=bêJ ÉáÖåáëéêçòÉÇìê=òìã=bêÉáÖåáë=qáãÉê=âçããí=EqáãÉêJbêÉáÖåáëFW== procedure TForm1.Timer1Timer(Sender: TObject); begin .............

//Inhalt der Ereignisprozedur

end;

hÉÜêÉå= ïáê= òì= ìåëÉêÉã= _ÉáëéáÉä= òìêΩÅâW= tÉåå= Ç~ë= àÉïÉáäáÖÉ= qáãÉêJbêÉáÖåáë= ÉáåíêáííI=ëçää=ëáÅÜ=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=áå=ÇÉê=òìÖÉÜ∏êáÖÉå=pÅêçääÄ~ê=ìã=òÉÜå= báåÜÉáíÉå=å~ÅÜ=êÉÅÜíë=îÉêëÅÜáÉÄÉåW== procedure TForm1.Timer1Timer(Sender: TObject); begin ScrollBar1.Position:=ScrollBar1.Position+10 end; procedure TForm1.Timer2Timer(Sender: TObject); begin ScrollBar2.Position:=ScrollBar2.Position+10 end; procedure TForm1.Timer3Timer(Sender: TObject); begin ScrollBar3.Position:=ScrollBar3.Position+10 end;

få= ÇÉå= _áäÇÉêå= SKV= Äáë= SKNO= â∏ååÉå= ïáê= ïìåÇÉêÄ~ê= îÉêÑçäÖÉåI= ï~åå= ëáÅÜ= ïÉäJ ÅÜÉê=qáãÉê=ãÉäÇÉíW=t®ÜêÉåÇ=ÇÉê=oÉÖäÉê=ÇÉê=çÄÉêëíÉå= ScrollBar1=å~ÅÜ=àÉÇÉê=pÉJ âìåÇÉ= ïÉáíÉêêΩÅâí= ìåÇ= áå= ÇÉå= ÄÉíê~ÅÜíÉíÉå= ëáÉÄÉå= pÉâìåÇÉå= ëáÉÄÉåã~ä= å~ÅÜ= êÉÅÜíë=ÖÉï~åÇÉêí=áëíI=Ü~í=Éë=ÇÉê=oÉÖäÉê=ÇÉê=ìåíÉêëíÉå= ScrollBar3=~ìÑ=ÖÉê~ÇÉ=ÉáåÉ= sÉê®åÇÉêìåÖ= ÖÉÄê~ÅÜíX= Éê= ïΩêÇÉ= ëáÅÜ= Éêëí= ÄÉá= pÉâìåÇÉ= ~ÅÜí= òìã= òïÉáíÉå= j~ä= ÄÉïÉÖÉåK= = NMV =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= =

= _áäÇ=SKVW=pí~êí=ìåÇ=páíì~íáçå=å~ÅÜ=ÉáåÉê=pÉâìåÇÉ=

= _áäÇ=SKNMW=k~ÅÜ=òïÉá=ìåÇ=ÇêÉá=pÉâìåÇÉå=

=== _áäÇ=SKNNW=k~ÅÜ=îáÉê=ìåÇ=ÑΩåÑ=pÉâìåÇÉå=

== _áäÇ=SKNOW=k~ÅÜ=ëÉÅÜë=ìåÇ=ëáÉÄÉå=pÉâìåÇÉå=

6.3

Arbeit mit Timern

6.3.1 ==

Start und Selbst-Stopp

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_631.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_631.bdsproj=~ìëòìï®ÜäÉåK== == jáí=_ÉÖáåå=ÇÉê=i~ìÑòÉáí=ëçää=Éêëí=Éáåã~ä=ÑΩåÑ=pÉâìåÇÉå=ä~åÖ=ΩÄÉêÜ~ìéí=åáÅÜíë=é~ëJ ëáÉêÉåK=a~åå=ëçää=ÖÉå~ì=Éáåã~ä=Ç~ë=qáãÉêJbêÉáÖåáë=ëí~ííÑáåÇÉåI=ÄÉá=ÇÉã=Éáå=oÉÖJ äÉê=ÉáåÉê=pÅêçääÄ~ê=òÉÜå=báåÜÉáíÉå=å~ÅÜ=êÉÅÜíë=ëéêáåÖíI=~åëÅÜäáÉ≈ÉåÇ=åáÉ=ïáÉÇÉêK== NNM= =

SKP== ^êÄÉáí=ãáí=qáãÉêå= i∏ëìåÖW= táê= ÄÉíê~ÅÜíÉå= òìê= aÉãçåëíê~íáçå= ÇáÉëã~ä= åìê= ÉáåÉå= qáãÉê= ìåÇ= ÉáåÉ= pÅêçääÄ~êK=fã=lÄàÉâíáåëéÉâíçê=ïáêÇ=ÇÉê=qáãÉê=~ìÑ=~âíáî=ìåÇ=~ìÑ=Éáå=fåíÉêî~ää=îçå= RMMM=ãë=îçêÄÉêÉáíÉí=E_áäÇ=SKNPFK=

= _áäÇ=SKNPW=cÉëíäÉÖìåÖÉå=ÑΩê=ÇÉå=_ÉÖáåå=ÇÉê=i~ìÑòÉáí== aáÉ=bêÉáÖåáëéêçòÉÇìê=ÄÉëÅÜêÉáÄí=Ç~åå=ÇÉå=oÉëí=ÇÉê=i∏ëìåÖ=ÇÉê=^ìÑÖ~ÄÉW= procedure TForm1.Timer1Timer(Sender: TObject); begin ScrollBar1.Position:=ScrollBar1.Position+10;

//Semikolon nötig

Timer1.Enabled:=False end;

jáí= ÇÉê= éêçéÉêíó= Enabled= â~åå= ~ìë= àÉÇÉê= bêÉáÖåáëéêçòÉÇìê= ~ìÑ= ÇÉå= a~íÉåâÉêå= ÇÉë= lÄàÉâíë= Timer1= òìÖÉÖêáÑÑÉå= ïÉêÇÉåK= a~ë= ïìêÇÉ= ÜáÉê= ÖÉåìíòíX= ÇÉê= qáãÉê= ëÅÜ~äíÉí=ëáÅÜ=ëÉäÄÉê=~ìëK=pç=ÉáåÑ~ÅÜ=áëí=Ç~ëK=

6.3.2 ==

Halt und Weitermachen

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_632.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_632.bdsproj=~ìëòìï®ÜäÉåK== == ^ìÑÖ~ÄÉW= wìë®íòäáÅÜ= òì= qáãÉê= ìåÇ= pÅêçääÄ~ê= ëçää= ëáÅÜ= åçÅÜ= Éáå= _ìííçå= ãáí= ÇÉê= ^åÑ~åÖëÄÉëÅÜêáÑíìåÖ= Halt= ~ìÑ= ÇÉã= cçêãìä~ê= ÄÉÑáåÇÉå= E_áäÇ= SKNQFK= aÉê= qáãÉêI= ÜáÉê=~ìÑ=ÉáåÉ=Ü~äÄÉ=pÉâìåÇÉ=ÉáåÖÉëíÉääíI=ëçää=ïáÉ=çÄÉå=äÉÇáÖäáÅÜ=ÇáÉ=mçëáíáçå=îÉêJ ëÅÜáÉÄÉåI=ïÉáíÉê=åáÅÜíëK==

== _áäÇ=SKNQW=e~äÄëÉâìåÇÉåJqáãÉêI=pÅêçääÄ~ê=ìåÇ=_ìííçå== _Éáã=ÉêëíÉå=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ëçää=ÇÉê=qáãÉê=~ìëÖÉëÅÜ~äíÉí=ïÉêÇÉå=ìåÇ=ÇáÉ= _ÉëÅÜêáÑíìåÖ=ÇÉë=_ìííçåë=ëçää=ïÉÅÜëÉäå=áå= WeiterK=_Éáã=å®ÅÜëíÉå=häáÅâ=~ìÑ=ÇÉå= _ìííçå= ëçää= ÇÉê= qáãÉê= ïáÉÇÉê= ÉáåÖÉëÅÜ~äíÉí= ïÉêÇÉåI= ÇáÉ= _ÉëÅÜêáÑíìåÖ= ïÉÅÜëÉäí= òì=Halt=ìåÇ=ëç=ïÉáíÉê=E_áäÇ=SKNRFK== NNN =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= táê=ïçääÉå=ÇÉã=kìíòÉê=Ç~ãáí=ÇáÉ=j∏ÖäáÅÜâÉáí=ÖÉÄÉåI=Ç~ëë=Éê=ÇÉå=qáãÉê=ÄÉäáÉJ ÄáÖ=~åÜ~äíÉå=ìåÇ=ëé®íÉê=ïáÉÇÉê=ïÉáíÉêä~ìÑÉå=ä~ëëÉå=â~ååK==

== _áäÇ=SKNRW=pí~êíI=píçéé=ãáí=ÉêëíÉã=häáÅâI=ïÉáíÉê=ãáí=òïÉáíÉã=häáÅâ== pÉÜÉå=ïáê=ìåë=òìÉêëí=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=qáãÉêJbêÉáÖåáë=~åW= procedure TForm1.Timer1Timer(Sender: TObject); begin ScrollBar1.Position:=ScrollBar1.Position+10 end;

sáÉä=áåíÉêÉëë~åíÉê=Ç~ÖÉÖÉå=áëí=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=bêÉáÖåáë=häáÅâ=~ìÑ=ÇÉå= _ìííçå=Ó=áå=áÜê=ïáêÇ=ÇáÉ=^äíÉêå~íáîÉ=~ìë=ÇÉã=łk~ÅÜííáëÅÜä~ãéÉåJmêçÖê~ãã=~ìë= ^ÄëÅÜåáíí=RKOKN=ïáÉÇÉêÜçäí=ìåÇ=~ìëÖÉÄ~ìíK= §ÄÉê= ÇáÉ= ^ÄÑê~ÖÉ= ÇÉê= _ÉëÅÜêáÑíìåÖ= ÇÉë= _ìííçåë= ëíÉääí= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ÑÉëíI= ïÉäÅÜÉ=páíì~íáçå=ÖÉê~ÇÉ=îçêäáÉÖíK=píÉÜí=ÇáÉ=_ÉëÅÜêáÑíìåÖ=~ìÑ= Halt=EÇ~åå=ä®ìÑí=ÇÉê= qáãÉêFI= ïÉêÇÉå= ÇáÉ= _ÉÑÉÜäÉ= ÇÉë= g~JwïÉáÖÉë= ~ìëÖÉÑΩÜêíW= aáÉ= _ÉëÅÜêáÑíìåÖ= ïÉÅÜJ ëÉäíI=ÇÉê=qáãÉê=ïáêÇ=~ìëÖÉëÅÜ~äíÉíK== procedure TForm1.Button1Click(Sender: TObject); begin if Button1.Caption='Halt' then begin

// JA-Zweig

Button1.Caption:='Weiter'; Timer1.Enabled:=False end else begin

// NEIN-Zweig

Button1.Caption:='Halt'; Timer1.Enabled:=True end end;

^åÇÉêåÑ~ääë= ïÉêÇÉå= ÇáÉ= ÄÉáÇÉå= _ÉÑÉÜäÉ= ÇÉë= kÉáåJwïÉáÖÉë= ~ìëÖÉÑΩÜêíW= aáÉ= _ÉJ ëÅÜêáÑíìåÖ=ïÉÅÜëÉäí=ÉêåÉìíI=ÇÉê=qáãÉê=ïáêÇ=ïáÉÇÉê=~åÖÉëÅÜ~äíÉíK== aáÉ= ^ìëå~ÜãÉêÉÖÉä= â~åå= ÜáÉê= åáÅÜí= áå= ^åëéêìÅÜ= ÖÉåçããÉå= ïÉêÇÉåI= Ç~= ëçJ ïçÜä=áã=g~JwïÉáÖ=~äë=~ìÅÜ=áã=kÉáåJwïÉáÖ=àÉ=òïÉá=_ÉÑÉÜäÉ=ëíÉÜÉåK== wì= ÄÉ~ÅÜíÉå= ëáåÇ= ÇÉëÜ~äÄ= ÇáÉ= ÄÉáÇÉå= íêÉååÉåÇÉå= pÉãáâçäçåë= òïáëÅÜÉå= ÇÉå= ÄÉáÇÉå=_ÉÑÉÜäÉå=áå=g~J=ìåÇ=kÉáåJwïÉáÖK= NNO= =

SKP== ^êÄÉáí=ãáí=qáãÉêå=

6.3.3 ==

Blinkende Schrift

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_633.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_633.bdsproj=~ìëòìï®ÜäÉåK== == ^ìÑÖ~ÄÉW= báå= i~ÄÉä= ãáí= ÇÉê= pí~êíÄÉëÅÜêáÑíìåÖ= ^ÅÜíìåÖ>= ïáêÇ= ~ìÑ= ÇÉã= cçêãìä~ê= éä~íòáÉêíK=aáÉ=pÅÜêáÑí=â~åå=ëÅÜ∏å=Öêç≈=ëÉáåI=òìã=_ÉáëéáÉä=OQéí=ìåÇ=ÑÉííK=k~ÅÜ=òïÉá= pÉâìåÇÉå=ëçää=ÇáÉ=pÅÜêáÑí=ÑΩê=ÉáåÉ=pÉâìåÇÉ=îÉêëÅÜïáåÇÉåI=Ç~åå=ïáÉÇÉê=òïÉá=pÉJ âìåÇÉå= òì= äÉëÉå= ëÉáåI= Ç~åå= ïáÉÇÉê= ÑΩê= ÉáåÉ= pÉâìåÇÉ= îÉêëÅÜïáåÇÉåI= ìåÇ= ëç= ïÉáíÉêK=táÉ=ÇáÉ=§ÄÉêëÅÜêáÑí=ëÅÜçå=ë~Öí=Ó=ÖÉëìÅÜí=áëí=ÉáåÉ=ÄäáåâÉåÇÉ=pÅÜêáÑíK==

== _áäÇ=SKNSW=i~ÄÉä=ìåÇ=òïÉá=qáãÉê= táÉ= â~åå= ã~å= ÇáÉëÉ= ^ìÑÖ~ÄÉ= ä∏ëÉå\= _áäÇ= SKNS= òÉáÖí= ÉáåÉå= i∏ëìåÖë~åë~íòW= táê= ~êÄÉáíÉå= ãáí= òïÉá=qáãÉêåI=ÇáÉ=ëáÅÜ= ÖÉÖÉåëÉáíáÖ=ÉáåJ= ìåÇ=~ìëëÅÜ~äíÉåK= aÉê=ÉêëíÉ= qáãÉê=áëí=~åÑ~åÖë=~âíáîI=âçããí=å~ÅÜ=OMMM=jáääáëÉâìåÇÉå=E_áäÇ=SKNTFK== aÉê=òïÉáíÉ=qáãÉê=áëí=~åÑ~åÖë=~ìëÖÉëÅÜ~äíÉíX=ïÉåå=Éê=ÉáåÖÉëÅÜ~äíÉí=áëíI=ãÉäÇÉí=Éê= ëáÅÜ=å~ÅÜ=àÉïÉáäë=NMMM=jáääáëÉâìåÇÉåK==

== _áäÇ=SKNTW=wïÉá=qáãÉê= aáÉ=ÄÉáÇÉå=bêÉáÖåáëéêçòÉÇìêÉå=ä~ëëÉå=Ç~ë=sçêÖÉÜÉå=ÉêâÉååÉåW== procedure TForm1.Timer1Timer(Sender: TObject); begin Label1.Caption:=''; Timer1.Enabled:=False; Timer2.Enabled:=True end; procedure TForm1.Timer2Timer(Sender: TObject); begin Label1.Caption:='Achtung!'; Timer1.Enabled:=True; Timer2.Enabled:=False end;

NNP =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= k~ÅÜ=ÇÉã=pí~êí=ï~êíÉí= Timer1I=Éë=îÉêÖÉÜÉå=òïÉá=pÉâìåÇÉåK=a~åå=âçããí= ëÉáå= qáãÉêJbêÉáÖåáëI= Timer1= ä∏ëÅÜí= ÇÉå= fåÜ~äí= ÇÉë= i~ÄÉäI= ëÅÜ~äíÉí= ëáÅÜ= ëÉäÄÉê= ~ìëI= ëÅÜ~äíÉí=Ç~ÑΩê=Timer2=~åK== kìå= îÉêÖÉÜí= ÉáåÉ= pÉâìåÇÉI= áå= ÇÉê= áã= i~ÄÉä= åáÅÜíë= ëíÉÜíI= Ç~åå= âçããí= ÇÉê= Timer2K=bê=ëÅÜêÉáÄí=ÉêåÉìí=áåë=i~ÄÉäI=ëÅÜ~äíÉí=ëáÅÜ=Ç~åå=ëÉäÄÉê=~ìëI=ëÅÜ~äíÉí= Timer1= ÉáåK= Timer1=ï~êíÉí=ïáÉÇÉê=ëÉáåÉ=òïÉá=pÉâìåÇÉåI=Ç~åå=âçããí=ëÉáå=bêÉáÖåáë=ìåÇ= ëç=ïÉáíÉêK== §ÄêáÖÉåë=Ó=ëç=Éáå=i~ÄÉä=Ü~í=ÉáåÉ=ÄÉëçåÇÉêÉ=báÖÉåëÅÜ~ÑíW=bë=é~ëëí=ëáÅÜ=áå=ëÉáåÉê= dê∏≈É=ÇÉã=fåÜ~äí=~åK=a~ë=ÄÉÇÉìíÉí=áå=ìåëÉêÉã=c~ää=E_áäÇ=SKNUFI=Ç~ëë=Ç~ë=i~ÄÉä= ÉñíêÉã=âäÉáå=ïáêÇI=ïÉåå=åáÅÜíë=Çêáå=ëíÉÜíK=tçääÉå=ïáê=Ç~ë\=

== _áäÇ=SKNUW=táêâìåÖ=îçå=Autosize=True= tÉåå=åáÅÜí=ãΩëëÉå=ïáê=áã=lÄàÉâíáåëéÉâíçê=ÇÉë=i~ÄÉäë=ÇáÉ=báÖÉåëÅÜ~Ñí=EéêçéÉêíóF= AutoSize=~ìÑ= False=ëÉíòÉå=Ó=Ç~åå=ÄÉÜ®äí=Ç~ë=i~ÄÉä=ëÉáåÉ=cçêãI=~ìÅÜ=ïÉåå=ÇÉê= fåÜ~äí=ëáÅÜ=®åÇÉêíK==

6.4

Permanente Prüfung im Hintergrund tÉÅÜëÉäå= ïáê= ÇçÅÜ= ëÅÜåÉää= Éáåã~ä= òì= ìåëÉêÉã= ÖìíÉå= ~äíÉå= qÉñíîÉê~êÄÉáíìåÖëJ éêçÖê~ãã= tloa= ìåÇ= ë~ÖÉå= a^qbfaor`hbkK= pÅÜçå= ÉêëÅÜÉáåí= Ç~ë= ÉåíëéêÉJ ÅÜÉåÇÉ= aá~äçÖÑÉåëíÉêI= ìåÇ= äáåâë= ìåíÉå= ïÉêÇÉå= ïáê= ÖÉÑê~ÖíI= ï~ë= ïáê= ÇÉåå= ëç= ÇêìÅâÉå= ïçääÉå= E_áäÇ= SKNVFK= pí~åÇ~êÇã®≈áÖ= áëí= Alles= îçêÉáåÖÉëíÉääíK= qêáÑÑí= ~ìÅÜ= ãÉáëí=òìK==

== _áäÇ=SKNVW=tloaJaá~äçÖÑÉåëíÉê=òìã=pÉáíÉåÄÉêÉáÅÜ=ÄÉáã=aêìÅâÉå= j~åÅÜã~ä= ~ääÉêÇáåÖë= ã∏ÅÜíÉ= ã~å= åìê= ÉáåÉ= ÄÉëíáããíÉ= pÉáíÉ= ~ìë= ÇÉã= aêìÅâÉê= âçããÉå= ä~ëëÉåK= cçäÖäáÅÜ= ïÉÅÜëÉäí= ã~å= áå= Ç~ë= qÉñíÑÉåëíÉê= åÉÄÉå= ÇÉã= o~ÇáçJ Äìííçå=ãáí=ÇÉê=_ÉëÅÜêáÑíìåÖ=Seiten=ìåÇ=íê®Öí=ÇáÉ=ÖÉïΩåëÅÜíÉå=pÉáíÉåò~ÜäÉå=ÉáåK== t~ë=é~ëëáÉêí=~ÄÉê=ÖäÉáÅÜòÉáíáÖI=ïáÉ=ÇìêÅÜ=Éáå=tìåÇÉê\=^ìÅÜ=ïÉåå=ïáê=~äë=kìíJ òÉê= ÇÉå= o~ÇáçÄìííçå= ãáí= ÇÉê= _ÉëÅÜêáÑíìåÖ= Seiten= ΩÄÉêÜ~ìéí= åáÅÜí= ÄÉÇáÉåí= Ü~J ÄÉå=Ó=Éê=ÉêÜ®äíI=î∏ääáÖ=çÜåÉ=ìåëÉê=wìíìåI=~ìíçã~íáëÅÜI=éä∏íòäáÅÜ=ÇáÉ=åìå=òìíêÉÑJ ÑÉåÇÉ=j~êâáÉêìåÖ=E_áäÇ=SKOMFK== NNQ= =

SKQ== mÉêã~åÉåíÉ=mêΩÑìåÖ=áã=eáåíÉêÖêìåÇ= =

= _áäÇ=SKOMW=báåÖÉíê~ÖÉåÉ=pÉáíÉåò~ÜäÉå= tÉê=~ÄÉê=í~í=Ç~ë\=gÉíòí=ïáëëÉå=ïáê=Éë=ìåÇ=â∏ååÉå=Éë=ëÉäÄëí=éêçÖê~ããáÉêÉåW=fã= eáåíÉêÖêìåÇ=ä®ìÑí=çÑÑÉåëáÅÜíäáÅÜ=Éáå=qáãÉêI=ÇÉê=ëç=çÑí=ïáÉ=ã∏ÖäáÅÜ=Ç~ë=qÉñíÑÉåJ ëíÉê= íÉëíÉíK= táêÇ= Ç~ÄÉá= éä∏íòäáÅÜ= Éáå= fåÜ~äí= ÑÉëíÖÉëíÉääí= ïáêÇ= ÉÄÉå= ÇÉê= é~ëëÉåÇÉ= o~ÇáçÄìííçå=òìÖÉëÅÜ~äíÉíK== mêΩÑÉå=ïáê=âçåëíêìâíáî=å~ÅÜI=çÄ=ìåëÉêÉ=sÉêãìíìåÖ=ëíáããíK=mä~íòáÉêÉå=ïáê=òìÉêëí= ~ìÑ=ÇÉã=cçêãìä~ê=ÉáåÉ=ÉåíëéêÉÅÜÉåÇÉ=o~ÇáçÖêìééÉ=ãáí=qÉñíÑÉåëíÉê=ìåÇ=qáãÉêK= == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_64.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_64.bdsproj=~ìëòìï®ÜäÉåK== = få=áÜê=ëçêÖÉå=ïáê=ΩÄÉê=ÇáÉ=báÖÉåëÅÜ~Ñí= Items=ãáí=ÇÉã=píêáåÖäáëíÉåJbÇáíçê=ÑΩê=ÇÉå= ~åÑ®åÖäáÅÜÉå= fåÜ~äíK= a~ë= wÉáÅÜÉå= &= âÉååòÉáÅÜåÉí= Ç~ÄÉá= ÇÉå= pÅÜåÉääï~ÜäÄìÅÜJ ëí~ÄÉå=EëáÉÜÉ=^ÄëÅÜåáíí=PKQFK=

== _áäÇ=SKONW=o~ÇáçÖêçìé=ìåÇ=píêáåÖäáëíÉåJbÇáíçêI=pí~êíã~êâáÉêìåÖ= aÉê= ItemIndex=ÇÉê=o~ÇáçÖêìééÉ=ãáí=ÇÉã=k~ãÉå= RadioGroup1=ïáêÇ=~ìÑ=kìää=ÖÉJ ëÉíòí=Ó=ÇáÉ=j~êâáÉêìåÖ=ëçää=~åÑ~åÖë=å~íΩêäáÅÜ=~ìÑ=ÇÉê=ÉêëíÉå=wÉáäÉI=~ìÑ= Alles=ëíÉJ ÜÉåK== a~ë=qáãÉêJpóãÄçä=ïáêÇ=áêÖÉåÇïçÜáå=~ìÑ=Ç~ë=cçêãìä~ê=ÖÉòçÖÉåX=ÇÉê=qáãÉê=ïáêÇ= ~ìÑ=ÉáåÉ=ÜçÜÉ=cêÉèìÉåò=EòK_K=RR=ãëF=ÉáåÖÉëíÉääíI=ìåÇ=å~íΩêäáÅÜ=ëçää=Éê=îçã=pí~êí= ïÉÖ=~êÄÉáíÉå=E_áäÇ=SKOOFK= NNR =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= kìå=Äê~ìÅÜÉå=ïáê=åìê=åçÅÜ=ÉáåÉ=ÉáåòáÖÉ=bêÉáÖåáëéêçòÉÇìê=ãáí=fåÜ~äí=òì=îÉêëÉJ ÜÉåI=å®ãäáÅÜ=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=qáãÉêJbêÉáÖåáëW== procedure TForm1.Timer1Timer(Sender: TObject); begin if Edit1.Text'' then RadioGroup1.ItemIndex:=2 end;

= _áäÇ=SKOOW=pí~êíÉáåëíÉääìåÖ=ÑΩê=ÇÉå=qáãÉê= pç=ÉáåÑ~ÅÜ=áëí=Ç~ëW=tÉåå=ÇÉê=qáãÉê=áå=ëÉáåÉê=~åÇ~ìÉêåÇÉå=mêΩÑí®íáÖâÉáíI=ìåÖÉJ Ñ®Üê= ~ÅÜíòÉÜå= j~ä= éêç= pÉâìåÇÉI= éä∏íòäáÅÜ= ÉáåÉ= åáÅÜíäÉÉêÉ= qÉñíÄçñ= ÄÉãÉêâíI= ëÅÜ~äíÉí=Éê=ÉÄÉå=áå=ÇÉê=o~ÇáçÖêìééÉ=~ìÑ=ÇÉå=ÇêáííÉå=o~ÇáçÄìííçå=ìãK== ^ääÉêÇáåÖë= Ü~ÄÉå= ïáê= åìê= ÇáÉ= e®äÑíÉ= éêçÖê~ããáÉêíK= t~ë= ïáêÇI= ïÉåå= ÇÉê= kìíòÉê= ëáÅÜ= éä∏íòäáÅÜ= ~åÇÉêë= ÄÉëáååí= ìåÇ= ÇáÉ= pÉáíÉåò~Üä= ïáÉÇÉê= ÜÉê~ìë= ëíêÉáÅÜí\= t~ë= ã~ÅÜí=tloa=Ç~åå\=tloa=ëÅÜ~äíÉí=Ç~åå=~ìÑ=Alles=òìêΩÅâK=a~ë=â∏ååÉå=ïáê=~ìÅÜW== procedure TForm1.Timer1Timer(Sender: TObject); begin if Edit1.Text'' then RadioGroup1.ItemIndex:=2 else RadioGroup1.ItemIndex:=0 end;

a~ë=dÉÜÉáãåáë=áëí=ÖÉäΩÑíÉíW== • pÅÜÉáåÄ~ê=~ìíçã~íáëÅÜÉë=wìJ=çÇÉê=^ÄëÅÜ~äíÉå=îçå=píÉìÉêÉäÉãÉåíÉå=áå=tçêÇ= çÇÉê= bñÅÉä= çÇÉê= mçïÉêmçáåí= çÇÉê= àÉÇÉê= ~åÇÉêÉå= táåÇçïëJ^åïÉåÇìåÖ= Ä~J ëáÉêí=~ìÑ=åáÅÜíë=~åÇÉêÉã=~äë=~ìÑ=ãáíä~ìÑÉåÇÉå=mêΩÑJqáãÉêåI=ÇáÉ=áå=pÉâìåÇÉåJ ÄêìÅÜíÉáäÉå=ÇáÉ=páíì~íáçå=~å=ÇÉå=ëáÅÜíÄ~êÉå=qÉáäÉå=~ääÉê=áåíÉêÉëëáÉêÉåÇÉå=îáëìJ ÉääÉå=lÄàÉâíÉ=ÄÉçÄ~ÅÜíÉå=ìåÇ=ëçÑçêí=é~ëëÉåÇ=êÉ~ÖáÉêÉåK=

6.5

Rot-Gelb-Grün: Die Ampel an der Kreuzung

6.5.1

Ganze Zahlen in wiederholter Folge

c~åÖÉå=ïáê=âäÉáå=~åW=báå=qáãÉê=ìåÇ=ÉáåÉ=pÅêçääÄ~ê=ïÉêÇÉå=~ìÑ=ÉáåÉã=cçêãìä~ê= éä~íòáÉêíK=aÉê=qáãÉê=ãáí=ÇÉã=k~ãÉå= Timer1=ëçää=ëçÑçêí=~âíáî=ëÉáåI=ÇáÉ=cêÉèìÉåò= ëçää= ÉáåÉ= pÉâìåÇÉ= ÄÉíê~ÖÉå= E_áäÇ= SKOPFK= aáÉ= pÅêçääÄ~ê= ãáí= ÇÉã= k~ãÉå= ScrollBar1=ïáêÇ=îçêÉáåÖÉëíÉääí=ãáí=jáåáãìã=1I=j~ñáãìã=4I=mçëáíáçå=1K== NNS= =

SKR== oçíJdÉäÄJdêΩåW=aáÉ=^ãéÉä=~å=ÇÉê=hêÉìòìåÖ= tÉåå=Ç~ë=qáãÉêJbêÉáÖåáë=Éáåíêáíí=ëçää=ëáÅÜ=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=ìã=ÉáåÉ=báåJ ÜÉáí= å~ÅÜ= êÉÅÜíë= îÉêëÅÜáÉÄÉåK= pçääíÉ= ÇáÉ= mçëáíáçå= àÉÇçÅÜ= ~ìÑ= ÇÉå= tÉêí= 4= âçãJ ãÉå= áëí= ëáÉ= ïáÉÇÉê= ~ìÑ= 1= òì= ëÉíòÉåK= a~ë= ÜÉá≈íI= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ëçää= Ç~ÑΩê= ëçêÖÉåI= Ç~ëë= ÇÉê= oÉÖäÉê= ÇÉê= pÅêçääÄ~ê= é~ìëÉåäçë= ÇáÉ= w~ÜäÉåÑçäÖÉ= 1234 123412...=ÇìêÅÜä®ìÑíK==

== _áäÇ=SKOPW=pí~êíÉáåëíÉääìåÖÉå= aÉê=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ãìëë=çÑÑÉåëáÅÜíäáÅÜ=ãáí=eáäÑÉ=îçå=qÉëíë=çÇÉê=ÉáJ åÉê=^äíÉêå~íáîÉ=Ç~ÑΩê=ëçêÖÉåI=Ç~ëë=ÇÉê=oÉÖäÉê=åáÅÜí=êÉÅÜíë=ÜÉê~ìëï~åÇÉêíW= procedure TForm1.Timer1Timer(Sender: TObject); begin if Scrollbar1.Position < 4 then Scrollbar1.Position:=Scrollbar1.Position+1 else Scrollbar1.Position:=1 end;

sÉêëìÅÜÉå=ïáêI=ÇáÉëÉäÄÉ=táêâìåÖ=ãáí=òïÉá=ÉáåÑ~ÅÜÉå=qÉëíë=òì=ÉêòáÉäÉåW= procedure TForm1.Timer1Timer(Sender: TObject); begin if Scrollbar1.Position== cçäÖäáÅÜ=ëÉíòí=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=å~ÅÜ=ÇÉê= 3=ëçÑçêí=~ìÑ=ÇáÉ= 1=òìêΩÅâK=aáÉ=4=ïáêÇ= åáÉ=ÉêêÉáÅÜíK=táÉÇÉê=Éáå=_ÉáëéáÉä=Ç~ÑΩêI=Ç~ëë=ÇáÉ=^äíÉêå~íáîÉ=ÖÉÄê~ìÅÜí=ïáêÇK=

NNT =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ=

6.5.2 ==

Die Verkehrsampel

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_652.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_652.bdsproj=~ìëòìï®ÜäÉåK== = wìÉêëí=òÉáÖí=ÇáÉ=^ãéÉä=ÖÉäÄ=Ó=cêΩÜ~ìÑëíÉÜÉê=ïáëëÉå=Ç~ëK=a~åå=âçããí=oçíI=Ç~åå= oçí=éäìë=dÉäÄI=Ç~åå=dêΩåI=Ç~å~ÅÜ=ïáÉÇÉê=dÉäÄK=a~ë=áëí=ÇÉê=wóâäìëI=ÇÉå=ïáê=~ìÑ= ÉáåÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=å~ÅÜÄáäÇÉå=ïçääÉåK== aÉê=wóâäìë=ÄÉëíÉÜí=~ìë=îáÉê=mÜ~ëÉåI=ÇáÉ=ëáÅÜ=ïáÉÇÉêÜçäÉåK=hìêòÉë=k~ÅÜÇÉåâÉå= Ó=Ç~ë=Ü~ííÉå=ïáê=ÇçÅÜ=ÉÄÉå=ëÅÜçå=Éáåã~äI=Ç~=ï~êÉå=Éë=ÇáÉ=îáÉê=píÉääìåÖÉå=ÇÉë= oÉÖäÉêëI=ÇáÉ=áããÉê=ïáÉÇÉêâÉÜêíÉåK== a~=Ü~ÄÉå=ïáê=ÇçÅÜ=ÇáÉ=êáÅÜíáÖÉ=fÇÉÉW=táê=îÉêâåΩéÑÉå=ÇáÉ=píÉääìåÖÉå=ÇÉë=oÉÖJ äÉêë=ãáí=ÉåíëéêÉÅÜÉåÇÉê=^ãéÉä~åòÉáÖÉW== píÉääìåÖ=NW=dÉäÄ= píÉääìåÖ=OW=oçí= píÉääìåÖ=PW=oçí=éäìë=dÉäÄ= píÉääìåÖ=QW=dêΩå= pÉíòÉå= ïáê= ÇáÉ= fÇÉÉ= ìãW= wìÉêëí= Äê~ìÅÜÉå= ïáê= ÉáåÉ= ^ãéÉäK= aáÉ= ÇêÉá= i~ãéÉå= ãΩëëÉå=~ìÑ=ÉáåÉê=dêìåÇéä~ííÉ=ÄÉÑÉëíáÖí=ïÉêÇÉåK=a~ÑΩê=ÄáÉíÉí=ëáÅÜ=Éáå=m~åÉä=~å= E_áäÇ= SKOQFI= Ç~ë= ëáÅÜ= áå= aÉäéÜá= T= ~ìÑ= ÇÉã= oÉÖáëíÉêÄä~íí= pq^ka^oa= ÇÉê= hçãéçJ åÉåíÉåé~äÉííÉ= ìåÇ= áå= aÉäéÜá= ULOMMR= áå= ÇÉê= ÖäÉáÅÜå~ãáÖÉå= h~íÉÖçêáÉ= ÇÉê= qççäJ m~äÉííÉ=ÄÉÑáåÇÉíK==

== _áäÇ=SKOQ=píÉìÉêÉäÉãÉåí=Panel=áå=aÉäéÜá=T=ìåÇ=aÉäéÜá=ULOMMR= fã=lÄàÉâíáåëéÉâíçê=ï®ÜäÉå=ïáê=~äë=pí~êíÑ~êÄÉ=ÑΩê=Ç~ë=m~åÉä=ÉáåÉ=åÉìíê~äÉ=c~êÄÉ= EbáÖÉåëÅÜ~Ñí= Color=ÉåíëéêÉÅÜÉåÇ=îçêï®ÜäÉåFI=ÇáÉ=_ÉëÅÜêáÑíìåÖ=EbáÖÉåëÅÜ~Ñí= CaptionF=ä∏ëÅÜÉå=ïáêK= a~åå=ïÉêÇÉå=ÇêÉá=i~ÄÉäë=ìåíÉêÉáå~åÇÉê=~ìÑ=Ç~ë=m~åÉä=ÖÉòçÖÉå=E_áäÇ=SKORFK=fÜêÉ= báÖÉåëÅÜ~Ñí=AutoSize=ïáêÇ=~ìÑ=False=ÖÉëÉíòíX=Ç~ãáí=îÉêÜáåÇÉêå=ïáê=Ç~ë=pÅÜêìãéJ ÑÉå= ÇÉê= i~ÄÉäë= ÄÉá= ÑÉÜäÉåÇÉê= _ÉëÅÜêáÑíìåÖK= aáÉ= c~êÄÉå= ÇÉê= i~ÄÉäë= ïÉêÇÉå= îçå= çÄÉå=å~ÅÜ=ìåíÉå=ãáí=êçíI=ÖÉäÄ=ìåÇ=ÖêΩå=ÉáåÖÉëíÉääíK= t~ë=ëçää=òìÉêëí=òì=ëÉÜÉå=ëÉáå=Ó=~ÅÜ=à~I=Ç~ë=dÉäÄ=áå=ÇÉê=jáííÉK=cçäÖäáÅÜ=ï®ÜäÉå= ïáê=ÑΩê=ÇáÉ=pí~êíÉáåëíÉääìåÖ=ÇÉë=çÄÉêÉå=i~ÄÉäë=áå=ÇÉê=báÖÉåëÅÜ~Ñí= Visible=ÇáÉ=_ÉJ äÉÖìåÖ=FalseI=ÉÄÉåëç=False=ÑΩê=ÇáÉ=páÅÜíÄ~êâÉáí=ÇÉë=ìåíÉêÉå=i~ÄÉäëK= _Éá=_ÉÖáåå=ÇÉê=i~ìÑòÉáíI=_áäÇ=SKOS=òÉáÖí=ÉëI=áëí=åìê=Ç~ë=ãáííäÉêÉ=i~ÄÉä=dÉäÄ=òì=ëÉJ ÜÉåI=ÇáÉ=pÅêçääÄ~ê=ëíÉÜí=~ìÑ=ÇÉã=Epí~êíJFtÉêí=báåëI=ÇÉê=qáãÉê=ÄÉÖáååí=ëÉáå=tÉêâK== == = NNU= =

SKR== oçíJdÉäÄJdêΩåW=aáÉ=^ãéÉä=~å=ÇÉê=hêÉìòìåÖ= =

= _áäÇ=SKORW=sçêÄÉêÉáíìåÖ=ÇÉê=^ãéÉäëáãìä~íáçå=

= _áäÇ=SKOSW=_ÉÖáåå=ÇÉê=i~ìÑòÉáí= t~ë= áëí= òì= íìå\= tÉåå= ÇÉê= qáãÉê= å~ÅÜ= ÉáåÉê= pÉâìåÇÉ= Ç~ë= ÉêëíÉ= j~ä= âçããíI= ïÉåå=ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=~ìÑ=ÇáÉ=2=ëéêáåÖí=áëí=oçí=ëáÅÜíÄ~ê=òì=ã~ÅÜÉåI=dÉäÄ= ïáêÇ=ìåëáÅÜíÄ~ê=ìåÇ=dêΩå=ÄäÉáÄí=ìåëáÅÜíÄ~êW== if Scrollbar1.Position=2 then begin Label1.Visible:=True;Label2.Visible:=False;Label3.Visible:=False end;

c~ääë= ÄÉáã= báåíêÉíÉå= ÇÉë= qáãÉêJbêÉáÖåáëëÉë= ÇáÉ= mçëáíáçå= ÇÉë= oÉÖäÉêë= ~ìÑ= ÇÉê= 3= ëÉáå=ëçääíÉ=ëçää=łoçí=ìåÇ=łdÉäÄ=ÖÉãÉáåë~ã=ÉêëÅÜÉáåÉåW= if Scrollbar1.Position=3 then begin Label1.Visible:=True;Label2.Visible:=True;Label3.Visible:=False end;

pç= ÖÉÜí= Éë= ïÉáíÉêX= ëÉÜÉå= ïáê= ìåë= ÇÉå= oÉëí= ÖäÉáÅÜ= áå= ÇÉê= âçãéäÉííÉå= bêÉáÖåáëJ éêçòÉÇìê=òìã=qáãÉêJbêÉáÖåáë=~åK=fã=_áäÇ=SKOT=â~åå=Ç~ë=tÉÅÜëÉäëéáÉä=òïáëÅÜÉå= ÇÉê=mçëáíáçå=ÇÉë=oÉÖäÉêëI=ÇáÉ=ÇìêÅÜ=ÇÉå=qáãÉê=ÖÉëíÉìÉêí=ïáêÇI=ìåÇ=ÇÉê=ÉåíëéêÉJ ÅÜÉåÇÉå= ^ãéÉäJ^åòÉáÖÉ= ÑΩê= ÇÉå= pí~êí= ÇÉê= i~ìÑòÉáí= ìåÇ= ÇáÉ= ÉêëíÉå= îáÉê= pÉâìåJ ÇÉå=Ç~å~ÅÜ=ÄÉçÄ~ÅÜíÉí=ïÉêÇÉåK= NNV =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= procedure TForm1.Timer1Timer(Sender: TObject); begin if Scrollbar1.Position=aêÉáã~ä=Ñ~äëÅÜ>=k~íΩêäáÅÜ=ÄÉå∏íáÖÉå=ïáê=ëáÉ=åçÅÜ=Ó=~ÄÉê=ïáê=ãΩëëÉå=ëáÉ= åáÅÜí= ãÉÜê= ëÉÜÉåK= a~ë= áëí= Éáå= ÉåíëÅÜÉáÇÉåÇÉê= råíÉêëÅÜáÉÇK= pÉíòÉå= ïáê= ÑΩê= ÇáÉ= Scrollbar1=ÇáÉ=pí~êíÉáÖÉåëÅÜ~Ñí= Visible=~ìÑ= FalseI=â∏ååÉå=ïáê=àÉÇÉã=kìíòÉê=ïáÉ= áå=_áäÇ=SKOU=ÉáåÉ=éÉêÑÉâíÉ=^ãéÉä=îçêëéáÉäÉåI=ÇáÉ=áã=pÉâìåÇÉåí~âí=Äê~î=ÇáÉ=c~êJ ÄÉå=ïÉÅÜëÉäíK== = NOM= =

SK=S= aÉê=sáÉêòóäáåÇÉêJjçíçê= =

= _áäÇ=SKOUW=råëáÅÜíÄ~êÉI=~ÄÉê=ïáêâëÉåÇÉ=pÅêçääÄ~ê== tÉê=ïÉáíÉê= ÇÉå=tìåëÅÜ=îÉêëéΩêíI= ãáí=eáäÑÉ=îçå= òïÉá=^ãéÉäå= ÇáÉ=páíì~íáçå=~å= ÉáåÉê=êáÅÜíáÖÉå=hêÉìòìåÖ=òì=ëáãìäáÉêÉåI=ÇÉê=ãìëë=ëáÅÜ=òìÉêëí=âä~ê=ã~ÅÜÉåI=ïáÉ= îáÉäÉ=ìåÇ=ïÉäÅÜÉ=mÜ~ëÉå=ÇÉê=wóâäìë=Ç~åå=Ü~íK=== = mÜ~ëÉ= ^ãéÉä=N= ^ãéÉä=O= 1

Rot

Grün

2

Rot + Gelb

Gelb

3

Grün

Rot

4

Gelb

Rot + Gelb

5: wie 1

Rot

Grün

sáÉê=mÜ~ëÉå=ïΩêÇÉå=~ìÅÜ=ÜáÉê=êÉáÅÜÉå=Ó=ïÉê=~ÄÉê=ãÉáåíI=Ç~ëë=ÉáåÉ=oçíJ^ãéÉä= Éêëí=Ç~åå=~ìÑ=oçíJdÉäÄ=ìãëéêáåÖíI=ïÉåå=ÇáÉ=~åÇÉêÉ=pÉáíÉ=ëÅÜçå=êáÅÜíáÖ=oçí=Ü~íI= ÇÉê=ãΩëëíÉ=ïçÜä=ãáí=ÑΩåÑ=çÇÉê=ëÉÅÜë=mÜ~ëÉå=~êÄÉáíÉåK== oìåÇÉ= ^ãéÉä~ìÖÉåI= ÇáÉ= åáÅÜí= ìåëáÅÜíÄ~ê= ïÉêÇÉåI= ëçåÇÉêå= ÉåíïÉÇÉê= åÉìíê~äÉë= Öä~ëJÖê~ì= çÇÉê= áÜêÉ= c~êÄÉ= ~åòÉáÖÉåI= ï®êÉå= ÉÄÉåÑ~ääë= ïΩåëÅÜÉåëïÉêíK= a~ë= âçããí=~ääÉë=åçÅÜ=Ó=ïÉåå=ïáê=áå=^ÄëÅÜåáíí=NMKNKO=Ç~ë=píÉìÉêÉäÉãÉåí=pÜ~éÉ=ìåÇ= ëÉáåÉ=c®êÄìåÖ=ãáí=ÇÉê=RGBJcìåâíáçå=ÄÉÜ~åÇÉäå=ïÉêÇÉåK=bíï~ë=dÉÇìäÇI=ÄáííÉK====

6. 6

Der Vierzylinder-Motor

c~åÖÉå=ïáê=ïáÉÇÉê=Ö~åò=ÉáåÑ~ÅÜ=~åW=báåÉ=ëÉåâêÉÅÜíÉ=pÅêçääÄ~êI=Éáå=qáãÉêI=ÉáåÉ= `ÜÉÅâÄçñ= ãáí= ÇÉê= _ÉëÅÜêáÑíìåÖ= RunterK= pí~êíÉáåëíÉääìåÖ= ÇÉê= pÅêçääÄ~êW= jáåáãìã= 0I=j~ñáãìã= 1000I=mçëáíáçå= 0K=aÉê=~âíáîÉ=qáãÉê=ëçää=ëÅÜåÉää=ä~ìÑÉåI=òìã=_ÉáëéáÉä= ~ääÉê=RR=jáääáëÉâìåÇÉå=ëÉáå=bêÉáÖåáë=~ìëëÉåÇÉåK== aáÉ= `ÜÉÅâÄçñ= ëçää= òì= _ÉÖáåå= ÇÉê= i~ìÑòÉáí= ÉáåÉå= e~âÉå= ÄÉëáíòÉå= EbáÖÉåëÅÜ~Ñí= Checked=~ìÑ=True=îçêÉáåëíÉääÉåFK= táÉ=áå=_áäÇ=SKOV=òì=ëÉÜÉåI=ÉêÜ®äí=ã~å=ÉáåÉ=ëÉåâêÉÅÜíÉ=pÅêçääÄ~ê=ÇìêÅÜ=báåëíÉäJ äìåÖ=ÇÉê=báÖÉåëÅÜ~Ñí=Kind=~ìÑ=sbVerticalK= sáÉê=^ìÑÖ~ÄÉå=ÉêÖÉÄÉå=ëáÅÜ=ÑΩê=ÇÉå=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=òìã=qáãÉêJbêJ ÉáÖåáëW== NON =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= • tÉåå= ÇáÉ= `ÜÉÅâÄçñ= ÇÉå= e~âÉå= Ü~í= EbáÖÉåëÅÜ~Ñí= Checked= áëí= TrueFI= ëçää= ëáÅÜ= ÇáÉ=mçëáíáçå=ÇÉë=oÉÖäÉêë=ìã=NMM=báåÜÉáíÉå=å~ÅÜ=ìåíÉå=îÉêëÅÜáÉÄÉåK== • e~í=ÇáÉ=`ÜÉÅâÄçñ=âÉáåÉå=e~âÉåI=ÖÉÜí=ÇáÉ=sÉêëÅÜáÉÄìåÖ=å~ÅÜ=çÄÉåK== • ^åëÅÜäáÉ≈ÉåÇ= áëíI= Ñ~ääë= ÇáÉ= mçëáíáçå= 1000= ÉêêÉáÅÜí= ïìêÇÉI= ÇÉê= e~âÉå= áå= ÇÉê= `ÜÉÅâÄçñ=òì=ÄÉëÉáíáÖÉåK== • tìêÇÉ=ÇáÉ=mçëáíáçå=0=ÉêêÉáÅÜíI=áëí=ÇÉê=e~âÉå=ïáÉÇÉê=òì=ëÉíòÉåK==

== _áäÇ=SKOVW=píÉìÉêÉäÉãÉåíÉ=ìåÇ=pí~êíÉáåëíÉääìåÖ=ÇÉê=pÅêçääÄ~ê= pÉÜÉå= ïáê= ìåë= ÖäÉáÅÜ= ÇáÉ= âçãéäÉííÉ= bêÉáÖåáëéêçòÉÇìê= ~åK= páÉ= áëí= ΩÄÉêê~ëÅÜÉåÇ= âìêòI=ä∏ëí=~ÄÉê=íêçíòÇÉã=~ääÉ=îáÉê=ÖÉëíÉääíÉå=^ìÑÖ~ÄÉåW= procedure TForm1.Timer1Timer(Sender: TObject); begin if CheckBox1.Checked=True then Scrollbar1.Position:=Scrollbar1.Position+100 else Scrollbar1.Position:=Scrollbar1.Position-100;

//Semikolon!

if Scrollbar1.Position=1000 then CheckBox1.Checked:=False; if Scrollbar1.Position=0 then CheckBox1.Checked:=True end;

a~ë=ÄÉëçåÇÉêë=ÜÉêîçêÖÉÜçÄÉåÉ=pÉãáâçäçå=íêÉååí=ÇáÉ=^äíÉêå~íáîÉ=îçå=ÇÉã=ÑçäJ ÖÉåÇÉå= ÉáåÑ~ÅÜÉå= qÉëíI= ~å= ÇÉëëÉå= båÇÉ= ïáÉÇÉêìã= Éáå= qêÉååòÉáÅÜÉå= ÄÉå∏íáÖí= ïáêÇI=ÇÉåå=Éë=âçããí=ÇÉê=å®ÅÜëíÉ=ÉáåÑ~ÅÜÉ=qÉëíK=pçïçÜä=áå=ÇÉê=^äíÉêå~íáîÉ=~äë= ~ìÅÜ=áå=ÇÉå=ÉáåÑ~ÅÜÉå=qÉëíë=ïìêÇÉ=îçå=ÇÉê=^ìëå~ÜãÉêÉÖÉäìåÖ=dÉÄê~ìÅÜ=ÖÉJ ã~ÅÜíK=== t~ê=áå=ÇÉê=§ÄÉêëÅÜêáÑí=åáÅÜí=îçå=ÉáåÉã=sáÉêòóäáåÇÉêJjçíçê=ÇáÉ=oÉÇÉ\== hÉáå=mêçÄäÉãI=ïáê=ëÉíòÉå=ëÅÜåÉää=ÇêÉá=ïÉáíÉêÉ=ëÉåâêÉÅÜíÉ=pÅêçääÄ~êë=ãáí=Ç~êΩÄÉê= ÄÉÑáåÇäáÅÜÉå=`ÜÉÅâÄçñÉå=~ìÑ=Ç~ë=cçêãìä~êK=aáÉ=pí~êíÉáåëíÉääìåÖÉå=â∏ååÉå=~ìë= _áäÇ=SKPM=~ÄÖÉäÉëÉå=ïÉêÇÉåK==

NOO= =

SK=T= pí®ÇíÉJo~íÉå= k~íΩêäáÅÜ= ÄäÉáÄí= Éë= ÄÉá= ÇÉê= ÉáåÉå= bêÉáÖåáëéêçòÉÇìêK= páÉ= ãìëë= áã= fåÜ~äí= åìê= ÉêJ ïÉáíÉêí=ïÉêÇÉå=ÇìêÅÜ=ÇáÉ=àÉïÉáäáÖÉå=i∏ëìåÖÉå=ÇÉê=îáÉê=^ìÑÖ~ÄÉå=ÑΩê=ÇáÉ=òïÉáJ íÉI=ÇêáííÉ=ÄòïK=îáÉêíÉ=pÅêçääÄ~êK=a~ë=ëÅÜ~ÑÑí=ã~å=ÇìêÅÜ=ÑäÉá≈áÖÉë=hçéáÉêÉåKKK=

==

= _áäÇ=SKPMW=páãìä~íáçå=ÉáåÉë=sáÉêòóäáåÇÉêJjçíçêëI=pí~êíëáíì~íáçå=

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_66.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_66.bdsproj=~ìëòìï®ÜäÉåK== == aáÉ=`ÜÉÅâÄçñÉå=â∏ååíÉå=ëçÖ~ê=~äë=póãÄçäÉ=ÑΩê=ÇáÉ=wΩåÇâÉêòÉå=ÖÉÇÉìíÉí=ïÉêJ ÇÉå=Ó=ïÉåå=Éë=ëáÅÜ=ìã=ÉáåÉå=wïÉáí~âíÉê=Ü~åÇÉäíK=sáÉêí~âíÉê=ëáåÇ=ëÅÜïáÉêáÖK=

6. 7

Städte-Raten

báå=âäÉáåÉëI=ÉáåÑ~ÅÜÉë=o~íÉëéáÉä=ëçää=Éáå=ïÉáíÉêÉë=j~ä=òÉáÖÉåI=ïáÉ=ëáÅÜ=Ç~ë=píÉìJ ÉêÉäÉãÉåí=qáãÉê=~ííê~âíáî=~åïÉåÇÉå=ä®ëëíK== aÉê= ê~íÉåÇÉ= kìíòÉê= ëáÉÜí= ~ìÑ= ÉáåÉã= cçêãìä~ê= E_áäÇ= SKPNF= äáåâë= ÇáÉ= iáëíÉ= ~ääÉê= ëÉÅÜòÉÜå=_ìåÇÉëä®åÇÉêI=êÉÅÜíë=ÉáåÉ=pí®ÇíÉäáëíÉI=ÇáÉ=òìë®íòäáÅÜ=òì=~ääÉå=i~åÇÉëJ Ü~ìéíëí®ÇíÉå=ïÉáíÉêÉ=pí®ÇíÉ=ÉåíÜ®äíK== == ========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 6= ÇáÉ= zipJa~íÉá= DKap06.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap06= ÇáÉ= mêçàÉâíJa~íÉá= proj_67.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap06=ÇáÉ=a~íÉá=proj_67.bdsproj=~ìëòìï®ÜäÉåK== == häáÅâí=ÇÉê=kìíòÉê=~ìÑ=ÇÉå=_ìííçå=StartI=ëçää=ÇÉëëÉå=_ÉëÅÜêáÑíìåÖ=áå=Stopp=ïÉÅÜJ ëÉäåK= däÉáÅÜòÉáíáÖ= ëçää= ÇáÉ= j~êâáÉêìåÖ= ëÅÜåÉää= ìåÇ= é~ìëÉåäçë= îçå= çÄÉå= å~ÅÜ= ìåíÉå=ìåÇ=ïáÉÇÉê=îçå=çÄÉå=å~ÅÜ=ìåíÉå=ìëïK=ΩÄÉê=ÇáÉ=i®åÇÉêäáëíÉ=ä~ìÑÉåK==

NOP =

S= qáãÉê=ìåÇ=qáãÉêJbêÉáÖåáëëÉ= píçééí= ÇÉê= kìíòÉê= ÇìêÅÜ= å~ÅÜÑçäÖÉåÇÉå= häáÅâ= ~ìÑ= ÇÉå= _ìííçåI= ÄäÉáÄí= ÇáÉ= j~êJ âáÉêìåÖ= ~ìÑ= áêÖÉåÇÉáåÉã= i~åÇ= ëíÉÜÉåI= ÇáÉ= _ÉëÅÜêáÑíìåÖ= ÇÉë= _ìííçåë= ïÉÅÜëÉäí= ïáÉÇÉê=áå=StartK= gÉíòí= ÄÉâçããí= ÇÉê= kìíòÉê= ÇáÉ= j∏ÖäáÅÜâÉáíI= ÇáÉ= ÇáÉ= êáÅÜíáÖÉ= e~ìéíëí~Çí= áå= ÇÉê= Öêç≈Éå=iáëíÉ=~ìëòìï®ÜäÉåK=pçä~åÖÉ=ëçää=ÇÉê=qáãÉê=ï~êíÉåK=

== _áäÇ=SKPNW=e~ìéíëí®ÇíÉ=ê~íÉå= häáÅâí= ÇÉê= kìíòÉê= áå= ÇÉê= pí®ÇíÉäáëíÉ= ÉáåÉ= pí~Çí= ~åI= ëçää= Éê= ÉáåÉ= fåÑçêã~íáçå= ÄÉJ âçããÉåI=çÄ=Éê=êáÅÜíáÖ=çÇÉê=Ñ~äëÅÜ=ÖÉï®Üäí=Ü~í=E_áäÇ=SKPNI=êÉÅÜíëFK== tÉåå=Éê=ÇáÉ=fåÑçêã~íáçåI=çÄ=ÇáÉ=îçå=áÜã=~ìëÖÉï®ÜäíÉ=i~åÇÉëÜ~ìéíëí~Çí=êáÅÜíáÖ= çÇÉê= Ñ~äëÅÜ= áëíI= ÄÉëí®íáÖí= Ü~íI= îÉêëÅÜïáåÇÉå= ÄÉáÇÉ= j~êâáÉêìåÖÉå= áå= ÇÉå= iáëíÉåI= ÇÉê=kìíòÉê=â~åå=ÉêåÉìí=ëí~êíÉå=ìåÇ=ëÉáå=táëëÉå=ïáÉÇÉê=ìåíÉê=_ÉïÉáë=ëíÉääÉåK= táÉ= ïáêÇ= ÇáÉëÉ= ^ìÑÖ~ÄÉ= éêçÖê~ããíÉÅÜåáëÅÜ= ÖÉä∏ëí\= táÉ= â~åå= ÇÉê= oÉÅÜåÉê= ΩÄÉêÜ~ìéí=ïáëëÉåI=ïÉäÅÜÉ=i~åÇÉëÜ~ìéíëí~Çí=ÇáÉ=êáÅÜíáÖÉ=áëí\== bê= â~åå= Éë= åáÅÜí= ïáëëÉåI= ïáê= ãΩëëÉå= Éë= áÜã= ãáííÉáäÉåK= aÉå= qêáÅâ= Ç~òì= îÉêê®í= _áäÇ= SKPOW= bë= ÖáÄí= å®ãäáÅÜ= ÉáåÉ= ÇêáííÉ= iáëíÉI= ÇáÉ= ÇáÉ= êáÅÜíáÖÉå= e~ìéíëí~Çíå~ãÉå= ~å=ÇÉå=êáÅÜíáÖÉå=mçëáíáçåÉå=ÉåíÜ®äíK=aáÉëÉ=iáëíÉ=ïáêÇ=ÇÉã=kìíòÉê=~ÄÉê=åáÅÜí=ÖÉJ òÉáÖíX=ïÉáä=ëáÉ=îçå=^åÑ~åÖ=~å=~ìÑ=ìåëáÅÜíÄ~ê=ÉáåÖÉëíÉääí=ïáêÇK== a~ãáí=â∏ååÉå=ïáê=ãáí=ÇÉê=mêçÖê~ããáÉêìåÖ=ÇÉê=ÇêÉá=bêÉáÖåáëéêçòÉÇìêÉå=ÄÉÖáåJ åÉåK== _Éá=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ëçää=ÇáÉ=_ÉëÅÜêáÑíìåÖ=ïÉÅÜëÉäå=ìåÇ=ÇÉê=qáãÉê=ëí~êíÉå= ÄòïK=~åÜ~äíÉåW= NOQ= =

SK=T= pí®ÇíÉJo~íÉå= procedure TForm1.Button1Click(Sender: TObject); begin if Button1.Caption='Start' then begin Button1.Caption:='Stopp';Timer1.Enabled:=True end else begin Button1.Caption:='Start';Timer1.Enabled:=False end end;

== _áäÇ=SKPOW=båíïìêÑ=ãáí=_ìííçåI=ÇêÉá=iáëíÉå=ìåÇ=qáãÉê= _Éá= àÉÇÉã= qáãÉêJbêÉáÖåáë= ëçää= áå= ÇÉê= ÉêëíÉå= ìåÇ= ÇêáííÉå= iáëíÉ= ÇáÉ= j~êâáÉêìåÖ= å~ÅÜ=ìåíÉå=ï~åÇÉêåK=tÉåå=ëáÉ=ÇáÉ=ìåíÉêëíÉ=mçëáíáçå= 15=ÉêêÉáÅÜí=Ü~íI=ëçää=çÄÉå= áå=ÇÉê=ÉêëíÉå=wÉáäÉ=ãáí=mçëáíáçå=0=ïáÉÇÉê=ÄÉÖçååÉå=ïÉêÇÉåW== procedure TForm1.Timer1Timer(Sender: TObject); begin if Listbox1.ItemIndex== tÉåå= áå= ÉáåÉê= bêÉáÖåáëéêçòÉÇìê= ÉáåÉê= çÇÉê= ãÉÜêÉêÉ= péÉáÅÜÉêéä®íòÉ= îÉêïÉåÇÉí= ïÉêÇÉå=ÄÉâçããí=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=ÇêÉá=_Éëí~åÇíÉáäÉW== • ÇáÉ=hçéÑòÉáäÉW=páÉ=ÄÉÖáååí=ãáí=ÇÉã=pÅÜäΩëëÉäïçêí=procedure= • ÇÉå=sÉêÉáåÄ~êìåÖëíÉáäW=bê=ÄÉÖáååí=ãáí=ÇÉã=pÅÜäΩëëÉäïçêí=var= • ÇÉå= ^ìëÑΩÜêìåÖëíÉáäW= bê= ÄÉÖáååí= ãáí= ÇÉã= ÉêëíÉå= begin= ìåÇ= ÉåÇÉí= ãáí= ÇÉã= äÉíòíÉå=end;= NQM= =

TKP== sÉêÉáåÄ~êìåÖÉå=îçå=Ö~åòò~ÜäáÖÉå=péÉáÅÜÉêéä®íòÉå= fã=sÉêÉáåÄ~êìåÖëíÉáä=ãΩëëÉå=ìåÄÉÇáåÖí=~ääÉ=péÉáÅÜÉêéä®íòÉ=~ìÑÖÉäáëíÉí=ïÉêÇÉåI= ÇáÉ= ëé®íÉê= áã= ^ìëÑΩÜêìåÖëíÉáä= îÉêïÉåÇÉí= ïÉêÇÉåK= táêÇ= Éáå= îÉêÉáåÄ~êíÉê= péÉáJ ÅÜÉêéä~íò=åáÅÜí=îÉêïÉåÇÉíI=ëç=ÖáÄí=Éë=âÉáåÉ=cÉÜäÉêãÉäÇìåÖI=ëçåÇÉêå=åìê=ÉáåÉå= eáåïÉáë=áå=ÇÉê=^êí=îçå=_áäÇ=TKNQW= [Hinweis] proj_72u.pas(35): Variable 'x' wurde deklariert, aber in 'TForm1.Button1Click' nicht verwendet

_áäÇ=TKNQW=péÉáÅÜÉêéä~íò=îÉêÉáåÄ~êíI=~ÄÉê=åáÅÜí=îÉêïÉåÇÉí= aáÉ=pÅÜ∏éÑÉê=îçå=aÉäéÜá=ëáåÇ=å®ãäáÅÜ=îçå=ÑçäÖÉåÇÉê=§ÄÉêäÉÖìåÖ=~ìëÖÉÖ~åÖÉåW= tÉåå= Éáå= mêçÖê~ããáÉêÉê= ÉáåÉå= îÉêÉáåÄ~êíÉå= péÉáÅÜÉêéä~íò= ëé®íÉê= åáÅÜí= îÉêJ ïÉåÇÉíI=Ü~í=Éê=ã∏ÖäáÅÜÉêïÉáëÉ=ÉáåÉå=_ÉÑÉÜä=îÉêÖÉëëÉå=çÇÉê=ëáÅÜ=îÉêíáééíK=tçäJ äÉå=ïáê=áÜå=Ç~ê~ìÑ=ÜáåïÉáëÉåI=Ç~ãáí=Éê=ëáÅÜ=ëÉáåÉå=^ìëÑΩÜêìåÖëíÉáä=åçÅÜ=Éáåã~ä= âêáíáëÅÜ=~åëÉÜÉK=== táêÇ=Éáå=péÉáÅÜÉêéä~íò=Ç~ÖÉÖÉå=îÉêïÉåÇÉíI=çÜåÉ=îçêÜÉê=îÉêÉáåÄ~êí=òì=ëÉáå=ÖáÄí= Éë=áããÉê=ÉáåÉ=cÉÜäÉêãÉäÇìåÖ=E_áäÇ=TKNRFW= [Fehler] proj_72u.pas(37): Undefinierter Bezeichner: 'sum'

_áäÇ=TKNRW=cÉÜäÉêW=sum=áëí=åáÅÜí=îÉêÉáåÄ~êí== pé®íÉê=ïÉêÇÉå=ïáê=åçÅÜ=~åÇÉêÉ=łaáåÖÉ=âÉååÉå=äÉêåÉåI=ÇáÉ=ÉÄÉåÑ~ääë=îÉêÉáåÄ~êí= ïÉêÇÉå= ãΩëëÉå= Ó= ÇÉëÜ~äÄ= ÇáÉ= åÉìíê~äÉ= sçâ~ÄÉä= _ÉòÉáÅÜåÉê= áå= ÇÉê= cÉÜäÉêãÉäJ ÇìåÖK=_ÉëçåÇÉêë=ïÉêíîçää=áëí=Ç~ÄÉáW=táêÇ=ãáí=ÇÉê=äáåâÉå=j~ìëí~ëíÉ=ÇçééÉäí=~ìÑ= ÇáÉ= cÉÜäÉêãÉäÇìåÖ= ÖÉâäáÅâíI= ïáêÇ= áã= qÉñí= ÇÉê= bêÉáÖåáëéêçòÉÇìê= ÇáÉ= wÉáäÉ= ÜÉêJ îçêÖÉÜçÄÉåI=áå=ÇÉê=ÇÉê=cÉÜäÉê=Éêâ~ååí=ïìêÇÉ=E_áäÇ=TKNSFK=

=== _áäÇ=TKNSW=eÉêîçêÜÉÄìåÖ=ÇÉê=wÉáäÉ=ãáí=cÉÜäÉêâçåëÉèìÉåò= aáÉëÉ= ÜÉêîçêÖÉÜçÄÉåÉ= wÉáäÉ= ÄÉÑáåÇÉí= ëáÅÜ= áããÉê= ìåíÉêÜ~äÄ= ÇÉë= cÉÜäÉêëI= ïÉáä= ÇÉê=qÉñí=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=ëíÉíë=îçå=çÄÉå=å~ÅÜ=ìåíÉå=~å~äóëáÉêí=ïáêÇK=

7.3

Vereinbarungen von ganzzahligen Speicherplätzen

7.3.1

Bit und Byte

hÉÜêÉå=ïáê=òì=ìåëÉêÉã=_ÉáëéáÉä=òìêΩÅâK=_áäÇ=TKNT=òÉáÖí=ìåëI=Ç~ëë=ïáê=ãáí= îáÉê= `ÜÉÅâÄçñÉå=~ääÉ=Ö~åòÉå=w~ÜäÉå=îçå=0=Äáë=15=Ç~êëíÉääÉå=â∏ååÉåK== bêïÉáíÉêå=ïáê=ìåëÉêÉ=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=ìã=ïÉáíÉêÉ=îáÉê=`ÜÉÅâÄçñÉå=ìåÇ=ÇáÉ= bêÉáÖåáëéêçòÉÇìê=ÉåíëéêÉÅÜÉåÇI=ëç=ëÉÜÉå=ïáê=áå=_áäÇ=TKNUI=Ç~ëë=ãáí=~ÅÜí=`ÜÉÅâJ ÄçñÉå=~ääÉ=Ö~åòÉå=w~ÜäÉå=îçå=0=Äáë=255=Ç~êëíÉääÄ~ê=ëáåÇW= NQN =

T= d~åòÉ=w~ÜäÉå= báåÉ=âäÉáåÉ=cäÉá≈~ìÑÖ~ÄÉ=áëí=Éë=ëÅÜçå=Ó=~ÄÉê=åáÅÜí=ìåä∏ëÄ~êW=jáí=NS=`ÜÉÅâÄçñÉå= ìåÇ= ÇÉê= ïÉáíÉêÉå= _ÉëÅÜêáÑíìåÖ= 256, 512, 1024= ìëïK= â~åå= ã~å= áå= ÇÉê= q~í= ~ääÉ= Ö~åòÉå=w~ÜäÉå=îçå=0=Äáë=65535=Ç~êëíÉääÉåK==

= _áäÇ=TKNTW=j~ñáã~äÄÉäÉÖìåÖ=ÄÉá=îáÉê=`ÜÉÅâÄçñÉå====

= _áäÇ=TKNUW=j~ñáã~äÄÉäÉÖìåÖ=ÄÉá=~ÅÜí=`ÜÉÅâÄçñÉå= jáí=OQ=`ÜÉÅâÄçñÉå=ÖÉÜí=Éë=îçå= 0=Äáë= 16777215I=ìåÇ=ãáí=PO=`ÜÉÅâÄçñÉå=â∏ååÉå= ïáê=ÇÉå=êáÉëáÖÉå=w~ÜäÉåÄÉêÉáÅÜ=ÇÉê=Ö~åòÉå=w~ÜäÉå=îçå= 0=Äáë= 4294967295=ΩÄÉêJ ëíêÉáÅÜÉå>== pçI=ìåÇ=åìå=ÉêëÉíòÉå=ïáê=ÇáÉ=sçâ~ÄÉä=`ÜÉÅâÄçñ=ÇìêÅÜ=ÇáÉ=sçâ~ÄÉä=_áíK=a~åå= ëáåÇ= ïáê= å®ãäáÅÜ= áã= fååÉêÉå= àÉÇÉë= `çãéìíÉêëI= ïç= ÇáÉ= w~ÜäÉå= ÉÄÉå= áå= ÖÉå~ì= ÇÉê=^êí=ÖÉëéÉáÅÜÉêí=ïÉêÇÉåI=ïáÉ=Éë=ìåëÉêÉ=`ÜÉÅâÄçñÉå=îçêã~ÅÜÉåK=báå=_áí=áëí= ÇáÉ=âäÉáåëíÉ=péÉáÅÜÉêÉáåÜÉáí=áã=oÉÅÜåÉêI=ìåÇ=ëáÉ=â~åå=åìê=ÇáÉ=tÉêíÉ=0=EäÉÉêF=ìåÇ= 1=EÄÉäÉÖíF=~ååÉÜãÉåK= tÉåå= ïáê= ïáëëÉåI= Ç~ëë= áå= ÉáåÉã= péÉáÅÜÉêéä~íò= ãáí= páÅÜÉêÜÉáí= åìê= w~ÜäÉå= òïáJ ëÅÜÉå= 0= ìåÇ= 255= ~ÄòìëéÉáÅÜÉêå= ëáåÇ= êÉáÅÜí= Éë= ~ìëI= ÇáÉëÉå= péÉáÅÜÉêéä~íò= ~äë= UJ _áíJpéÉáÅÜÉêéä~íò= ~åòìÑçêÇÉêåK= táëëÉå= ïáêI= Ç~ëë= ÇáÉ= ~ÄòìëéÉáÅÜÉêåÇÉå= w~ÜäÉå= Öê∏≈Éê=ïÉêÇÉåI=òïáëÅÜÉå= 0=ìåÇ= 65535=äáÉÖÉå=ïÉêÇÉå=ãΩëëÉå=ïáê=ëÅÜçå=ÉáåÉå= NSJ_áíJpéÉáÅÜÉêéä~íò=~åÑçêÇÉêåK== tÉêÇÉå=ÇáÉ=w~ÜäÉå=åìê=òïáëÅÜÉå= 0=ìåÇ=15=äáÉÖÉåI=ïΩêÇÉå=ïáê=ãáí=ÉáåÉã=QJ_áíJ péÉáÅÜÉêéä~íò=~ìëâçããÉåK=aÉå=ÖáÄí=Éë=~ÄÉê=áå=aÉäéÜá=åáÅÜí>== • cΩê= Ö~åòÉ= w~ÜäÉå= ÖáÄí= Éë= áå= aÉäéÜáJm~ëÅ~ä= åìê= UJ_áíJI= NSJ_áíJ= ìåÇ= POJ_áíJ péÉáÅÜÉêéä®íòÉK=a~ë=ïìêÇÉ=ëç=ÑÉëíÖÉäÉÖíK= råÇ=ïÉáä=U=_áí=ÖäÉáÅÜ=N=_óíÉ=áëíI=ÖáÄí=Éë=ÑçäÖäáÅÜ=áå== • aÉäéÜáJm~ëÅ~ä=ÑΩê=Ö~åòÉ=w~ÜäÉå=NJ_óíÉI=OJ_óíÉ=ìåÇ=QJ_óíÉJpéÉáÅÜÉêéä®íòÉK= _Éîçê= ïáê= ìåë= áå= ÉáåÉê= §ÄÉêëáÅÜí= åçÅÜ= Éáåã~ä= ÇáÉ= w~ÜäÉåÄÉêÉáÅÜÉ= ~åëÉÜÉåI= ïçääÉå= ïáê= ìåë= òìë®íòäáÅÜ= âä~êã~ÅÜÉåI= Ç~ëë= Éáå= NSJ_áíJpéÉáÅÜÉêéä~íò= EO= _óíÉF= ÉáåÉêëÉáíë= ~ääÉ= Ö~åòÉå= w~ÜäÉå= îçå= 0= Äáë= 65535= ìåÇ= ~åÇÉêÉêëÉáíë= ~ääÉ= Ö~åòÉå= w~ÜäÉå=îçå=-32768=Äáë=32767=~ìÑåÉÜãÉå=â~ååK== fã=òïÉáíÉå=c~ää=ïáêÇ=Ç~ë=ÉêëíÉ=_áí=~äë=ëç=ÖÉå~ååíÉë=sçêòÉáÅÜÉåJ_áí=ÄÉíê~ÅÜíÉíK= NQO= =

TKQ== ^åïÉåÇìåÖÉå=îçå=Ö~åòò~ÜäáÖÉå=péÉáÅÜÉêéä®íòÉå=

7.3.2

Integer-Datentypen

• tÉåå=ïáê=áå=ÉáåÉê=bêÉáÖåáëéêçòÉÇìê=ÉáåÉå=péÉáÅÜÉêéä~íò=òìê=^ìÑå~ÜãÉ=Ö~åJ òÉê= w~ÜäÉå= îÉêïÉåÇÉå= ïçääÉåI= ãΩëëÉå= ïáê= áÜå= îÉêÉáåÄ~êÉåK= aáÉ= sÉêÉáåÄ~J êìåÖ=ÄÉëíÉÜí=Ç~êáåI=Ç~ëë=ã~å=ÇìêÅÜ=^åÖ~ÄÉ=ÇÉë=òìíêÉÑÑÉåÇÉå=aÉäéÜáJm~ëÅ~äJ pÅÜäΩëëÉäïçêíÉë=ãáííÉáäíI=ïÉäÅÜÉå=w~ÜäÉåÄÉêÉáÅÜ=ÇÉê=fåÜ~äí=ΩÄÉêëíêÉáÅÜÉå=ëçääW= var x: Byte

1 Byte

Der Speicherplatz kann ganze Zahlen zwischen 0 und 255 aufnehmen.

var x: ShortInt

1 Byte

Der Speicherplatz kann ganze Zahlen zwischen -128 und 127 aufneh¬men.

var x: Word

2 Byte

Der Speicherplatz kann ganze Zahlen zwischen 0 und 65.535 aufneh¬men.

var x: Cardinal

4 Byte

Der Speicherplatz kann ganze Zahlen zwischen 0 und 4.294.967.295 aufnehmen.

var x: Integer

4 Byte

Der Speicherplatz kann ganze Zahlen zwischen -2.147.483.648 und 2.147.483.647 aufnehmen.

var x: Long

4 Byte

Der Speicherplatz kann ganze Zahlen zwischen -2.147.483.648 und 2.147.483.647 aufnehmen.

tÉåå= ïáê= ìåë= âêáíáëÅÜ= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ~ìë= ÇÉã= ^ÄëÅÜåáíí= TKOKO= ~åëÉÜÉåI= ãΩëëÉå=ïáê=ÑÉëíëíÉääÉåI=Ç~ëë=ïáê=Ççêí=ãáí=ÑìêÅÜíÄ~ê=Öêç≈Éå=h~åçåÉå=~ìÑ=âäÉáåÉ= pé~íòÉå=ÖÉëÅÜçëëÉå=Ü~ÄÉåK=jáí= var sum: Integer;=Ü~ÄÉå=ïáê=ÉáåÉå=QJ_óíÉJpéÉáJ ÅÜÉêéä~íò=~åÖÉÑçêÇÉêíX=ÇáÉ=Öê∏≈íÉ=w~ÜäI=ÇáÉ=Ççêí=àÉã~äë=ÜáåÉáå=âçããÉå=âçååíÉI= ï~ê= ~ÄÉê= ÇáÉ= 15K= bë= Ü®ííÉ= Ççêí= îçääâçããÉå= ~ìëÖÉêÉáÅÜíI= var sum: Byte;= òì= ëÅÜêÉáÄÉåK====

7.4

Anwendungen von ganzzahligen Speicherplätzen

7.4.1

Grundsätze, Namensgebung

tÉêÇÉå= áå= ÉáåÉê= bêÉáÖåáëéêçòÉÇìê= péÉáÅÜÉêéä®íòÉ= îÉêïÉåÇÉíI= â~åå= ëáÅÜ= ÇáÉ= §ÄÉêëáÅÜíäáÅÜâÉáí= ìåÇ= sÉêëí®åÇäáÅÜâÉáí= ÇÉê= bêÉáÖåáëéêçòÉÇìê= ìã= Éáå= sáÉäÑ~ÅÜÉë= ÉêÜ∏ÜÉåK=a~òì=íê®Öí=ÇáÉ=k~ãÉåëÖÉÄìåÖ=ÇÉê=péÉáÅÜÉêéä®íòÉ=îáÉä=ÄÉáW== • báå=péÉáÅÜÉêéä~íò=ëçääíÉ=ëíÉíë=ÉáåÉå=ëéêÉÅÜÉåÇÉå=k~ãÉå=Ü~ÄÉåK=a~ë=ÜÉá≈íI=ÇÉê= k~ãÉ=ÉáåÉë=péÉáÅÜÉêéä~íòÉë=ëçääíÉ=~ìÑ=ÇáÉ=_ÉÇÉìíìåÖ=ÇÉë=fåÜ~äíë=ÜáåïÉáëÉåK== cΩê=ÇáÉ=k~ãÉåëÖÉÄìåÖ=ÖáÄí=Éë=ëíêÉåÖÉ=sçêëÅÜêáÑíÉåW== • báå= k~ãÉ= ÉáåÉë= péÉáÅÜÉêéä~íòÉë= Ç~êÑ= åìê= ãáí= ÉáåÉã= _ìÅÜëí~ÄÉå= çÇÉê= ÇÉã= råíÉêëíêáÅÜ= |= ÄÉÖáååÉåK= ^åëÅÜäáÉ≈ÉåÇ= â∏ååÉå= _ìÅÜëí~ÄÉå= ìåÇLçÇÉê= wáÑÑÉêå= ÑçäÖÉåK= sÉêÄçíÉå= ëáåÇ= iÉÉêòÉáÅÜÉå= ìåÇ= pçåÇÉêòÉáÅÜÉåK= k~ãÉå= ëçääíÉå= åáÅÜí= òì=ä~åÖ=ëÉáåK= NQP =

T= d~åòÉ=w~ÜäÉå=

7.4.2 ==

Erhöhung der Übersichtlichkeit

========================tÉê= Ç~ë= ÑçäÖÉåÇÉ= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 7= ÇáÉ= zipJa~íÉá= DKap07.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap07= ÇáÉ= mêçàÉâíJa~íÉá= proj_742.dpr=~ìëòìï®ÜäÉåK=táêÇ=ãáí=aÉäéÜá=ULOMMR=ÖÉ~êÄÉáíÉíI=áëí=å~ÅÜ=a^qbf= = molgbhq=£cckbk=áã=lêÇåÉê=D8Kap07=ÇáÉ=a~íÉá=proj_742.bdsproj=~ìëòìï®ÜäÉåK== == hçããÉå=ïáê=ïáÉÇÉê=Éáåã~ä=òì=ÉáåÉã=a~íÉåÄÉëí~åÇI=ÇÉê=ëáÅÜ=áå=ÉáåÉê=iáëíÉ=ÄÉJ ÑáåÇÉí=E_áäÇ=TKNVFK=báÖÉåíäáÅÜ=ëçää=ÇáÉ=iáëíÉ=ìåëáÅÜíÄ~ê=ëÉáå=Ó=Äáë=ÇáÉ=^ìÑÖ~ÄÉ=ÖÉJ ä∏ëí=áëíI=ä~ëëÉå=ïáê=ëáÉ=~ÄÉê=ëáÅÜíÄ~êK== wìã= pí~êí= ÇÉê= i~ìÑòÉáí= ëçää= ÇÉê= çÄÉêëíÉ= báåíê~Ö= EbêëíÉ= wÉáäÉI= mçëáíáçå= 0F= áå= ÇÉê= iáëíÉ=ÇáÉ=j~êâáÉêìåÖ=ÄÉëáíòÉåI=ÖäÉáÅÜòÉáíáÖ=ëçää=Éê=áã=i~ÄÉä=òì=ëÉÜÉå=ëÉáåK=aáÉëÉ= ^ìÑÖ~ÄÉ=ä∏ëÉå=ïáê=ïáÉÇÉê=ãáí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=òìã=bêÉáÖåáë= Create=Ó=eÉêJ ëíÉääìåÖ=ÇÉë=cçêãìä~êë=EëK=^ÄëÅÜåáíí=QKTKRFK=páÉ=áëí=ëç=ÉáåÑ~ÅÜI=Ç~ëë=ïáê=ãáí=ÇÉå= éêçéÉêíáÉë=ItemIndex=ìåÇ=Items[..]=ÇÉê=iáëí_çñ=ìåÇ=ÇÉê=éêçéÉêíó=Caption=ÇÉë=i~J ÄÉäë=~ìëâçããÉåW== procedure TForm1.FormCreate(Sender: TObject); begin ListBox1.ItemIndex:=0; Label1.Caption:=ListBox1.Items[0] end;

aáÉ=å®ÅÜëíÉ=^ìÑÖ~ÄÉ=ÉêÖáÄí=ëáÅÜ=~ìë=ÇÉê=_ÉëÅÜêáÑíìåÖ=ÇÉë=k~îáÖ~íáçåëJ_ìííçåëK= táêÇ= Éê= ÖÉâäáÅâíI= ëçää= ÇáÉ= j~êâáÉêìåÖ= áå= ÇÉê= iáëíÉ= ìã= ÉáåÉ= wÉáäÉ= å~ÅÜ= ìåíÉå= ï~åÇÉêåI=ÄÉá=ÖäÉáÅÜòÉáíáÖÉê=^åòÉáÖÉ=áã=i~ÄÉäK=fëí=ÇáÉ=ìåíÉêëíÉ=wÉáäÉ=ÉêêÉáÅÜíI=ëç= ëçää=ãáí=ÇÉê=ÉêëíÉå=wÉáäÉ=ïáÉÇÉê=ÄÉÖçååÉå=ïÉêÇÉåI=Éë=áëí=Éáå=łoìåÇìãä~ìÑ=òì= éêçÖê~ããáÉêÉåK=

== _áäÇ=TKNVW=a~íÉåÄÉëí~åÇI=^åòÉáÖÉJi~ÄÉä=ìåÇ=k~îáÖ~íáçåëJ_ìííçå=== NQQ= =

TKQ== ^åïÉåÇìåÖÉå=îçå=Ö~åòò~ÜäáÖÉå=péÉáÅÜÉêéä®íòÉå= pÉÜÉå=ïáê=ìåë=~åI=ïáÉ=éêçÖê~ããáÉêí=ïÉêÇÉå=â~ååI=ïÉåå=òïÉá=péÉáÅÜÉêéä®íòÉ=pos= EÑΩê=PosáíáçåF=ìåÇ=lepos=EÑΩê=leíòíÉ=PosáíáçåF=îÉêïÉåÇÉí=ïÉêÇÉåW== procedure TForm1.Button1Click(Sender: TObject); var pos,lepos: Byte;

//Vereinbarungen

begin //Eingangsdaten werden in Speicherplätze geholt lepos:=ListBox1.Items.Count-1; pos:=ListBox1.ItemIndex; //nun wird "gerechnet" if pos=

== _áäÇ=TKOVW=páååäçëÉ=báåÖ~ÄÉ== t~ë=ï®êÉ=ÜáÉê=òì=íìå\=bë=ÖáÄí=ãÉÜêÉêÉ=j∏ÖäáÅÜâÉáíÉåK== aáÉ=ÉêëíÉ=j∏ÖäáÅÜâÉáí=ÄÉëíÉÜí=Ç~êáåI=Ç~≈=ã~å=~ääÉë=ëç=ä®ëëíI=ïáÉ=Éë=áëíK=fëí=åáÅÜí= ~Äëçäìí=Ñ~äëÅÜI=ÇáÉëÉ=^ìëâìåÑíK== aáÉ=òïÉáíÉ=j∏ÖäáÅÜâÉáíW=píÉÜí=çÄÉå=ïÉåáÖÉê=~äë=ìåíÉåI=ïáêÇ=ÇÉê=ÖÉë~ãíÉ=fåÜ~äí= ÇÉê=_ìííçåJhäáÅâJbêÉáÖåáëéêçòÉÇìê=ÉáåÑ~ÅÜ=åáÅÜí=~ìëÖÉÑΩÜêíW= procedure TForm1.Button1Click(Sender: TObject); var gross_zahl, klein_zahl: Integer;

//Vereinbarungen

begin

//Ausführungsteil

gross_zahl:=StrToInt(Edit1.Text);

//Transport in Speicherplätze

klein_zahl:=StrToInt(Edit2.Text); if gross_zahl>klein_zahl then

//Nur bei sinnvoller Belegung

begin if gross_zahl mod klein_zahl = 0 then ShowMessage('Die Zahl '+

//mod liefert den Rest //Ja-Zweig für die Teilbarkeit

IntToStr(gross_zahl)+ ' ist durch '+ IntToStr(klein_zahl)+ ' ohne Rest teilbar' )

NRP =

T= d~åòÉ=w~ÜäÉå= else //Nein-zweig, falls nicht teilbar ShowMessage('Die Zahl '+ IntToStr(gross_zahl)+ ' ist nicht durch '+ IntToStr(klein_zahl)+ ' teilbar' ) end end;

aáÉ= ÇêáííÉ= j∏ÖäáÅÜâÉáíW= j~å= ÉêÖ®åòí= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìã= qáãÉêJbêÉáÖåáë= ëçI=Ç~ëë=ÇÉê=_ìííçå=~ìÅÜ=åìê=Ç~åå=~âíáîáÉêí=ïáêÇI=ïÉåå=ÇáÉ=çÄÉêÉ=w~Üä=Öê∏≈Éê= çÇÉê=ÖäÉáÅÜ=ÇÉê=ìåíÉêÉå=w~Üä=áëíK=tÉäÅÜÉå=fåÜ~äí=ÄÉâçããí=Ç~åå=ÇáÉ=qáãÉêJbêJ ÉáÖåáëéêçòÉÇìê\== procedure TForm1.Timer1Timer(Sender: TObject); begin if (Edit1.Text'') and (Edit2.Text'') and (StrToInt(Edit1.Text)>StrToInt(Edit2.Text)) then Button1.Enabled:=True else Button1.Enabled:=False end;

sáÉêíÉåëW= j~å= â~åå= ~ìÅÜ= ÖìíïáääáÖ= ëÉáåI= ìåÇ= áå= ÇÉê= _ìííçåJhäáÅâJ bêÉáÖåáëéêçòÉÇìê=òìÉêëí=Ñê~ÖÉå=ä~ëëÉåI=ïç=ÇáÉ=Öê∏≈ÉêÉ=w~Üä=ëíÉÜíK=aáÉëÉ=âçããí= áå= ÇÉå= péÉáÅÜÉêéä~íò= gross_zahlK= aáÉ= ~åÇÉêÉ= áå= ÇÉå= péÉáÅÜÉêéä~íò= klein_zahlK= a~åå=ïáêÇ=ìåíÉêëìÅÜíK=^ìÅÜ=Ç~ë=áëí=ã∏ÖäáÅÜK== tÉåå= ÇáÉ= ^ìÑÖ~ÄÉåëíÉääìåÖ= åáÅÜí= Ö~åò= âä~ê= ìåÇ= ÉáåÇÉìíáÖ= ÑçêãìäáÉêí= áëí= ëáåÇ= ΩÄêáÖÉåë=~ääÉ=îçêÖÉëÅÜä~ÖÉåÉå=i∏ëìåÖÉå=êáÅÜíáÖK==== =

NRQ= =

==

8 8.1

Grafikprogrammierung Grundbegriffe ^ìëÖ~åÖëéìåâí= ÑΩê= ìåëÉêÉ= àÉíòáÖÉå= §ÄÉêäÉÖìåÖÉå= áëí= ÉáåÉ= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= ãáí= ÉáåÉã= ÉáåòáÖÉå= Öêç≈Éå= _áäÇÉêê~ÜãÉåK= få= ^ÄëÅÜåáíí= TKQKQ= Ü~ííÉå= ïáê= Ó= Ç~J ã~äë= òìê= eÉêëíÉääìåÖ= ÇÉê= päçíJj~ëÅÜáåÉ= ÑΩê= häÉáåâáåÇÉê= Ó= ÄÉêÉáíë= âÉååÉå= ÖÉJ äÉêåíI=ïáÉ=Éáå=_áäÇÉêJo~ÜãÉå=~åÖÉÑçêÇÉêí=ïáêÇK==

= _áäÇ=UKNW=sáëìÉääÉë=lÄàÉâí=Image=áå=aÉäéÜá=T=ÄòïK=aÉäéÜá=ULOMMR== a~ë=òìÖÉÜ∏êáÖÉ=póãÄçä=E_áäÇ=UKNF=ÑáåÇÉå=ïáê=áã=oÉÖáëíÉêÄä~íí=çÇÉê=ÇÉê=h~íÉÖçJ êáÉ=wrpûqwif`e=îçå=hçãéçåÉåíÉåJ=çÇÉê=qççäJm~äÉííÉK== tÉåå= ÇÉê= _áäÇÉêê~ÜãÉå= ~ìÑ= ÇÉê= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= éä~íòáÉêí= áëíI= ÄÉâçããí= Éê= îçå= aÉäéÜá= ÇÉå= k~ãÉå= Image1K= a~ë= _áäÇÉêê~ÜãÉåJlÄàÉâí= áëí= ~åÑ~åÖë= åìê= áã= båíïìêÑ=ÇìêÅÜ=ÇáÉ=ÖÉëíêáÅÜÉäíÉ=o~åÇäáåáÉ=òì=ÉêâÉååÉåX=ïáêÇ=ÇáÉ=_ÉåìíòÉêçÄÉêJ Ñä®ÅÜÉ=ÜÉêÖÉëíÉääíI=áëí=Ç~åå=EëÅÜÉáåÄ~êF=ΩÄÉêÜ~ìéí=åáÅÜíë=òì=ëÉÜÉå=E_áäÇ=UKOFK==

= _áäÇ=UKOW=_áäÇÉêê~ÜãÉå=áã=båíïìêÑ=ìåÇ=å~ÅÜ=pí~êí=== táê=ïçääÉå=~ÄÉê=åáÅÜíI=ïáÉ=áã=ÖÉå~ååíÉå=^ÄëÅÜåáííI=ÑΩê=ÉáåÉå=ÄÉëíáããíÉå=_áäÇJ fåÜ~äí= ÇáÉëÉë= o~ÜãÉåë= ëçêÖÉåI= ëçåÇÉêå= Ç~ë= _áäÇJfååÉêÉ= ~äë= ìåëÉêÉ= j~äÑä®ÅÜÉ= ÄÉíê~ÅÜíÉåK== • aÉäéÜá=ÖáÄí=ìåë=ÇáÉ=j∏ÖäáÅÜâÉáíI=àÉÇÉå=ÉáåòÉäåÉå=_áäÇéìåâí=EmáñÉäF=ÉáåÉë=ImageJlÄàÉâíë= ïáÉ= ~ìÑ= ÉáåÉê= j~äÑä®ÅÜÉ= ÇáÑÑÉêÉåòáÉêí= ÄÉ~êÄÉáíÉå= òì= â∏ååÉåK= a~ë= ÄÉÇÉìíÉíI=ïáê=â∏ååÉå=ãáí=aÉäéÜá=ã~äÉåK=== tÉåå=Éáå=j~äÉê=ëÉáåÉ=sçêÄÉêÉáíìåÖÉå=ÑΩê=Éáå=åÉìÉë=_áäÇ=ÄÉÖáååí=ëé~ååí=Éê=òìÉêëí= ~äë= j~äÑä®ÅÜÉ= ÉáåÉ= iÉáåï~åÇ= ~ìÑK= a~ë= ÉåÖäáëÅÜÉ= tçêí= ÑΩê= iÉáåï~åÇ= áëí= canvasK= aáÉëÉë=tçêí=canvas=ïáêÇ=ÇáÉ=ïáÅÜíáÖëíÉ=sçâ~ÄÉä=ÇáÉëÉë=^ÄëÅÜåáííë=ïÉêÇÉåK=== NRR =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= a~ë=pÅÜÉã~=îçå=_áäÇ=UKP=Éêâä®êí=ÇáÉ=åÉìÉ=páíì~íáçåW=táê=ëçääíÉå=ìåë===îçêëíÉääÉåI= Ç~ëë=ëáÅÜ=áã=a~íÉåâÉêå=ÇÉë=_áäÇÉêê~ÜãÉåJlÄàÉâíÉë=ãáí=ÇÉã=k~ãÉå= Image1=Éáå= ïáÉÇÉêìã=~ÄÖÉëÉíòíÉê=_ÉêÉáÅÜ=ãáí=ÇÉã=k~ãÉå=Canvas=ÄÉÑáåÇÉíK== aáÉëÉê=áååÉêÉ=_ÉêÉáÅÜ= Canvas=ÉåíÜ®äí=~ääÉ=^åÖ~ÄÉå=òì=ÇÉå=ÉáåòÉäåÉå=_áäÇéìåâíÉå= ÇÉë= _áäÇÉêê~ÜãÉåJlÄàÉâíëI= ìåÇ= ãáí= eáäÑÉ= îçå= îáÉäÉå= ÄÉêÉáíÖÉëíÉääíÉå= báÖÉåëÅÜ~ÑJ íÉå= ìåÇ= jÉíÜçÇÉå= â~åå= ÉåíïÉÇÉê= àÉÇÉê= ÉáåòÉäåÉ= _áäÇéìåâí= ÉáåÖÉÑ®êÄí= ïÉêÇÉå= çÇÉê=Éë=â∏ååÉå=ãáí=áÜåÉå=~ìÅÜ=ÖäÉáÅÜòÉáíáÖ=ãÉÜêÉêÉ=_áäÇéìåâíÉ=ÖÉÑ®êÄí=ïÉêÇÉåK==

= _áäÇ=UKPW=lÄàÉâí=Image1=ìåÇ=_ÉêÉáÅÜ=Canvas=ëÉáåÉë=a~íÉåâÉêåë== fã= _áäÇ= UKP= ëáåÇ= ÇáÉ= k~ãÉå= îçå= ÉáåáÖÉå= ÇÉê= ïáÅÜíáÖëíÉå= c®êÄÉJjÉÅÜ~åáëãÉå= ÑΩê=_áäÇéìåâíÉ=ÉáåÖÉíê~ÖÉåX=ëáÉ=ïÉêÇÉå=ÄÉêÉáíë=áã=å®ÅÜëíÉå=^ÄëÅÜåáíí=ÄÉå∏íáÖíK== • §ÄÉê~ìë= ïáÅÜíáÖ= áëí= ÇáÉ= sçêëíÉääìåÖI= Ç~ëë= ãáí= ÇÉå= ~åÖÉÖÉÄÉåÉå= wìÖêáÑÑëJjÉJ ÅÜ~åáëãÉå=~ìÑ= Canvas=åáÅÜí=ÖÉã~äíI= ëçåÇÉêå=ÉáåÖÉÑ®êÄí= ïáêÇK=bë=áëí=Ç~åå= ïáÉ= ÄÉá= ÉáåÉã= j~äÉêW= tÉåå= ÇáÉ=c~êÄÉ=íêçÅâÉå=áëí= â~åå= Ç~ë= dÉã~äíÉ= åìê=Ç~ÇìêÅÜ= ïáÉÇÉê=ÄÉëÉáíáÖí=ïÉêÇÉåI=Ç~ëë=ã~å=Éë=ãáí=ÇÉê=eáåíÉêÖêìåÇÑ~êÄÉ=ΩÄÉêã~äíK== bë= ïáêÇ= ÇÉëÜ~äÄ= áå= ÇÉå= ÑçäÖÉåÇÉå= ^ÄëÅÜåáííÉå= ÇáÉ= sçâ~ÄÉä= i∏ëÅÜÉå= åìê= ëÉäíÉå== ÖÉÄÉåK=pçåÇÉêå=ãÉáëí=ÇáÉ=òìíêÉÑÑÉåÇÉêÉå=sçâ~ÄÉäå=Ñ®êÄÉå=ìåÇ=ΩÄÉêã~äÉåK==

8.2

Geometrische Gebilde erzeugen

8.2.1

Das Koordinatensystem

_áäÇ=UKQ=òÉáÖíI=Ç~ëë=áã=fååÉêÉå=àÉÇÉë=_áäÇÉêê~ÜãÉåë=äáåâë=çÄÉå=ãáí=ÇÉê=w®ÜäìåÖ= ÄÉÖçååÉå=ïáêÇK== • aáÉ=äáåâÉ=çÄÉêÉ=bÅâÉ=àÉÇÉë=canvasJlÄàÉâíë=ÄÉëáíòí=ëíÉíë=ÇÉå=Pixel[0,0].

NRS= =

UKO== dÉçãÉíêáëÅÜÉ=dÉÄáäÇÉ=ÉêòÉìÖÉå= == ========================tÉê= ÇáÉ= ÑçäÖÉåÇÉå= aÉäéÜáJmêçàÉâí= åáÅÜí= ëÉäÄëí= ÉåíïáÅâÉäå= ã∏ÅÜíÉI= â~åå= îçå= http://www.w-g-m.de/delphi.htm= ΩÄÉê= Dateien für Kapitel 8= ÇáÉ= zipJa~íÉá= DKap08.zip=ãáí=òïÉá=lêÇåÉêå=ÜÉêìåíÉêä~ÇÉåK=táêÇ=ãáí=aÉäéÜá=T=ÖÉJ ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbfmolgbhq= £cckbk= áã= lêÇåÉê= D7Kap08= ÇáÉ= mêçàÉâíJa~íÉá= proj_8?.dpr= ~ìëòìï®ÜäÉåK= táêÇ= ãáí= aÉäéÜá= ULOMMR= ÖÉ~êÄÉáíÉíI= áëí= å~ÅÜ= a^qbf= = molgbhq= £cckbk= áã= lêÇåÉê= D8Kap07= ÇáÉ= a~íÉá= proj_8?.bdsproj= ~ìëòìï®ÜäÉåK= a~ë= cê~ÖÉòÉáÅÜÉå=ëíÉÜí=Ç~ÄÉá=ÑΩê=ÇáÉ=kìããÉê=ÇÉë=råíÉê~ÄëÅÜåáííëK= = oÉÅÜíë= åÉÄÉå= ÇÉã= _áäÇéìåâí= áå= ÇÉê= äáåâÉå= çÄÉêÉå= bÅâÉ= ÇÉë= _áäÇÉêê~ÜãÉåJfåJ Ü~äíë= ÄÉÑáåÇÉí= ëáÅÜ= Ç~åå= ÇÉê= Pixel[1,0]= Äáë= Ó= ëéÉòáÉää= áå= _áäÇ= UKQ= Ó= ìåÖÉÑ®Üê= òìã= Pixel[750,0]K= aáÉ= òïÉáíÉ= máñÉäêÉáÜÉ= ÄÉÖáååí= äáåâë= ãáí= ÇÉã= Pixel[0,1]= âçããí=êÉÅÜíë=Ç~åÉÄÉå=ÇÉê=Pixel[1,1]=ìåÇ=ëç=ïÉáíÉêK== bêëíêÉÅâí= ëáÅÜ= ÇÉê= _áäÇÉêê~ÜãÉå= ~ÄÉê= ΩÄÉê= ÇÉå= Ö~åòÉå= _áäÇëÅÜáêã= â~åå= Éë= çÄÉå=å~ÅÜ=êÉÅÜíë=Äáë=òìã=Pixel[1150,0]=ÖÉÜÉå=Ó=àÉ=å~ÅÜ=^ìÑä∏ëìåÖK=^ã=äáåâÉå= _áäÇëÅÜáêãê~åÇ= â~åå= Éë= Ç~åå= å~ÅÜ= ìåíÉå= Äáë= òìã= Pixel[0,815]= ÖÉÜÉå= Ó= àÉ= å~ÅÜ= ^ìÑä∏ëìåÖK= _Éá= îçääÉã= _áäÇëÅÜáêã= Ü®ííÉ= Ç~åå= ÇÉê= äÉíòíÉ= _áäÇéìåâí= êÉÅÜíë= ìåíÉå= ÇáÉ= _ÉòÉáÅÜåìåÖ= Pixel[1150,815]= Eáå= ÇÉã= _áäÇÉêê~ÜãÉå= îçå= _áäÇ= UKQ= ëÅÜ~ÑÑÉå=ïáê=ÉëI=ïáÉ=òì=ëÉÜÉåI=~ÄÉê=åìê=Äáë=ìåÖÉÑ®Üê=òìã=Pixel[750,800]=FK===

= _áäÇ=UKQW=hççêÇáå~íÉåëóëíÉãI=w®ÜäìåÖ=ÄÉÖáååí=äáåâë=çÄÉå== NRT =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= táÉ=ÖÉÜÉå=ïáê=ïÉáíÉê=îçê\=fã=_áäÇ=UKR=ëáåÇ=~ÅÜí=ÖÉçãÉíêáëÅÜÉ=cáÖìêÉå=ëçïáÉ=Éáå= qÉñí= òì= ëÉÜÉåK= páÉ= ~ääÉ= ëáåÇ= àÉïÉáäë= ãáííÉäë= häáÅâ= ~ìÑ= ÉáåÉå= ÇÉê= _ìííçåë= ÇìêÅÜ= ÖÉÉáÖåÉíÉë=c®êÄÉå=îçå=máñÉäå=Éåíëí~åÇÉåK== fåÇÉã= ïáê= ìåë= ÇáÉ= fåÜ~äíÉ= ÇÉê= åÉìå= bêÉáÖåáëéêçòÉÇìêÉå= ~åëÉÜÉåI= äÉêåÉå= ïáê= ÇáÉ=àÉïÉáäáÖÉ=sçêÖÉÜÉåëïÉáëÉ=òìã=é~ëëÉåÇÉå=báåÑ®êÄÉå=âÉååÉåK===

= _áäÇ=UKRW=bêòÉìÖíÉ=EÉáåÖÉÑ®êÄíÉF=ÖÉçãÉíêáëÅÜÉ=cáÖìêÉå=

8.2.2

Einzelner Pixel

aáÉ=_ÉëÅÜêáÑíìåÖ=================================================================ÇÉë=ÉêëíÉå=_ìíJ= íçåë=ÑçêãìäáÉêí=ÇáÉ=^ìÑÖ~ÄÉK=páÉ=áëí=ÉáåÑ~ÅÜ=òì=ä∏ëÉåW== procedure TForm1.Button1Click(Sender: TObject); var x1,y1: Integer; begin x1:=100;y1:=100; image1.canvas.Pixels[x1,y1]:=RGB(0,0,0) end;

NRU= =

UKO== dÉçãÉíêáëÅÜÉ=dÉÄáäÇÉ=ÉêòÉìÖÉå= lÑÑÉåëáÅÜíäáÅÜ=ïáêÇ=Éáå=ÄÉëíáããíÉê=máñÉäI=Éáå=ÉáåòáÖÉêI=ãáí=ÇÉã=^ìÖÉ=â~ìã=ÉêJ âÉååÄ~êÉê= _áäÇéìåâíI= Ç~ÇìêÅÜ= ÉáåÖÉÑ®êÄíI= Ç~ëë= òìÉêëí= ~ìÑ= ÇÉê= äáåâÉå= pÉáíÉ= ÇÉê= nìÉääÉJwáÉäJ^åïÉáëìåÖ= áå= ÇáÉ= ÉÅâáÖÉå= hä~ããÉêå= ÇÉëëÉå= mçëáíáçåI= ÑçäÖäáÅÜ= ÇÉê= ^Äëí~åÇ=îçã=äáåâÉå=ìåÇ=îçã=çÄÉêÉå=_áäÇê~åÇI=ÉáåÖÉíê~ÖÉå=ïáêÇK== ^ìÑ=ÇÉê=êÉÅÜíÉå=pÉáíÉ=ÇÉê=nìÉääÉJwáÉäJ^åïÉáëìåÖ=ïÉêÇÉå=áå=ÇÉå=êìåÇÉå=hä~ãJ ãÉêå=ÇÉê=RGBJcìåâíáçå=Ç~òì=ÇáÉ=ÇêÉá=c~êÄ~åíÉáäëïÉêíÉ=EàÉïÉáäë=M=Äáë=ORRF=ÑΩê=êçíI= ÖêΩå=ìåÇ=Ää~ì=ÉáåÖÉíê~ÖÉåK=kìää=ÑΩê=oçíI=kìää=ÑΩê=dêΩåI=kìää=ÑΩê=_ä~ì=Ó=Ç~ë=äáÉJ ÑÉêí=Ç~ë=îÉêä~åÖíÉ=pÅÜï~êòK== få= _áäÇ= UKR= òÉáÖí= ÇÉê= j~ìëòÉáÖÉê= ~ìÑ= ÇÉå= ÄÉáã= häáÅâ= ÉêëÅÜÉáåÉåÇÉå= ÉáåòÉäåÉå= _áäÇéìåâíX=ÇÉåå=Éê=áëíI=ïáÉ=ÖÉë~ÖíI=ãáí=Ääç≈Éã=^ìÖÉ=åìê=ãáí=jΩÜÉ=òì=ÉêâÉååÉåK===

8.2.3

Gerade Linie

aáÉ=_ÉëÅÜêáÑíìåÖ=====================================================================ÇÉë=òïÉáíÉå== _ìííçåë=ÑçêãìäáÉêí=ÇáÉ=å®ÅÜëíÉ=^ìÑÖ~ÄÉK=páÉ=ïáêÇ=ãáí=ÇÉê=ÑçäÖÉåÇÉå=bêÉáÖåáëéêçJ òÉÇìê=ÖÉä∏ëíW== procedure TForm1.Button2Click(Sender: TObject); var x1,y1,x2,y2: Integer; begin x1:=300;y1:=250; image1.canvas.moveTo(x1,y1); x2:=600;y2:=300; image1.canvas.Pen.Color:=RGB(0,255,0); image1.canvas.Pen.Width:=10; image1.canvas.LineTo(x2,y2)

//Anfangspunkt festlegen //Sprung zum Anfangspunkt //Endpunkt festlegen //Linienfarbe //Linienstärke //Gerade zeichnen

end;

aáÉ= å~ÅÜ= ÇÉå= ÄÉáÇÉå= pÅÜê®ÖëíêáÅÜÉå= // ëíÉÜÉåÇÉå= hçããÉåí~êÉ= Éêâä®êÉå= Ç~ë= sçêÖÉÜÉåW= wìÉêëí= ãìëë= ÇÉê= ^åÑ~åÖëéìåâí= ÇÉê= dÉê~ÇÉå= ÑÉëíÖÉäÉÖí= ïÉêÇÉåI= ÇÉê= moveToJ_ÉÑÉÜä=îÉê~åä~ëëí=ÇÉå=péêìåÖ=ÇçêíÜáåK=k~ÅÜÇÉã=ÇÉê=båÇéìåâí=ÑÉëíÖÉäÉÖí= áëíI=ëçääíÉ=îçê=ÇÉã=báåÑ®êÄÉå=ÇÉê=dÉê~ÇÉå=EÜáÉê=ãáí=ÇÉã=tçêí= zeichnen=ÉáÖÉåíJ äáÅÜ=Ñ~äëÅÜ=ÄÉëÅÜêáÉÄÉåF=òìÉêëí=ÇáÉ= iáåáÉåÑ~êÄÉ=ìåÇ=Jëí®êâÉ=ãáí=ÇÉå= CanvasJjÉJ íÜçÇÉå=Pen.Color=ìåÇ=Pen.Width=ÑÉëíÖÉäÉÖí=ïÉêÇÉåK====

8.2.4

Offenes Rechteck

_Éáã=häáÅâ=~ìÑ=ÇÉå=ÇêáííÉå=_ìííçå== ëçää= ÇÉê= oÉÅÜíÉÅâìãêáëë= ÉáåÖÉÑ®êÄí= ïÉêÇÉåI= ÇÉëëÉå= äáåâÉ= çÄÉêÉ= bÅâÉ= ëáÅÜ= áã= mìåâí=(100,150)=ÄÉÑáåÇÉí=ìåÇ=ÇÉëëÉå=êÉÅÜíÉ=ìåíÉêÉ=bÅâÉ=ÄÉá=(250,350)=áëíK== ^ìÅÜ=ÜáÉê=â∏ååÉå=ïáê=~ìë=ÇÉå=hçããÉåí~êÉå=áå=ÇÉê=òìÖÉÜ∏êáÖÉå=bêÉáÖåáëéêçJ òÉÇìê=Ç~ë=sçêÖÉÜÉå=ÉåíåÉÜãÉåW== NRV =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= procedure TForm1.Button3Click(Sender: TObject); var x1,y1,x2,y2: Integer; begin x1:=100;y1:=150;

//Ecke links oben festlegen

x2:=250;y2:=350;

//Ecke rechts unten festlegen

image1.canvas.Pen.Color:=RGB(0,0,0); image1.canvas.Pen.Width:=3; image1.Canvas.Brush.Color:=RGB(255,255,255); image1.canvas.Rectangle(x1,y1,x2,y2)

//Umriss-Farbe //Umriss-Stärke //Füll-Farbe //Rechteck zeichnen

end;==

_ÉãÉêâÉåëïÉêí=áëí=ÜáÉêI=Ç~ëë=ìåÄÉÇáåÖí=ÉáåÉ=cΩääJc~êÄÉ=~åÖÉÖÉÄÉå=ïÉêÇÉå=ãìëëK== a~ãáí= ~ÄÉê= åìê= ÇÉê= oÉÅâíÉÅâJrãêáëë= òì= ëÉÜÉå= áëíI= ãìëë= ~äë= cΩääJc~êÄÉ= ~ìÑ= ÇÉê= êÉÅÜíÉå=pÉáíÉ=ÇÉê=báÖÉåëÅÜ~Ñí= Brush.Color=Éñ~âí=ÇáÉ=eáåíÉêÖêìåÇÑ~êÄÉ=ÇÉê=j~äJ Ñä®ÅÜÉ=EÜáÉê=áëí=Éë=ïÉá≈F=~åÖÉÖÉÄÉå=ïÉêÇÉåK== bë=ïáêÇ=áå=táêâäáÅÜâÉáí=Éáå=âçãéäÉííÉë=oÉÅÜíÉÅâI=ÄÉëíÉÜÉåÇ=~ìë=rãêáëë= Pen=ìåÇ= fåÜ~äí= BrushI=ÉáåÖÉÑ®êÄíK=a~=ÇÉê=fåÜ~äí=~ÄÉê=ÇáÉëÉäÄÉ=c~êÄÉ=ïáÉ=ÇÉê=eáåíÉêÖêìåÇ= Ü~íI=ãÉêâí=Éë=ÇÉê=_Éíê~ÅÜíÉê=åáÅÜí=ìåÇ=ëáÉÜí=åìê=ÇÉå=oÉÅÜíÉÅâJo~ÜãÉåK==

8.2.5

Rechteckfläche

kìå=ïçääÉå=ïáê=ÇÉå=îáÉêíÉå=_ìííçå== ìåÇ= ÇáÉ= òìÖÉÜ∏êáÖÉ= bêÉáÖåáëéêçòÉÇìê= ÄÉíê~ÅÜíÉåK= fÜê= fåÜ~äí= ìåíÉêëÅÜÉáÇÉí= ëáÅÜ= îçã=fåÜ~äí=ÇÉê=îçêáÖÉå=bêÉáÖåáëéêçòÉÇìê=åìê=Ç~ÇìêÅÜI=Ç~ëë=ëçïçÜä=ÑΩê=ÇÉå=rãJ êáëë= Pen= ~äë= ~ìÅÜ= ÑΩê= ÇÉå= fåÜ~äí= Brush= ÇÉë= oÉÅÜíÉÅâë= ÇáÉëÉäÄÉ= c~êÄÉ= ÉáåÖÉëíÉääí= ïáêÇI=ÇáÉ=ëáÅÜ=îçå=ÇÉê=efåíÉêÖêìåÇÑ~êÄÉ=ÇÉê=iÉáåï~åÇ=ìåíÉêëÅÜÉáÇÉí=EÜáÉêW=Ää~ìFW=== procedure TForm1.Button4Click(Sender: TObject); var x1,y1,x2,y2: Integer; begin x1:=300;y1:=150;

//Anfangspunkt festlegen

x2:=500;y2:=200;

//Endpunkt festlegen

image1.canvas.Pen.Color:=RGB(0,0,255); image1.canvas.Pen.Width:=1; image1.Canvas.Brush.Color:=RGB(0,0,255); image1.canvas.Rectangle(x1,y1,x2,y2) end;

NSM= =

//Umriss-Farbe blau //Umriss-Stärke //Füll-Farbe blau //Rechteck zeichnen

UKO== dÉçãÉíêáëÅÜÉ=dÉÄáäÇÉ=ÉêòÉìÖÉå=

8.2.6

Quadratfläche

aÉê=ÑΩåÑíÉ=_ìííçå===================================================================îÉêä~åÖí=ëçäÅÜÉ= _ÉÑÉÜäÉ=áååÉêÜ~äÄ=ÇÉê=bêÉáÖåáëéêçòÉÇìêI=ÇáÉ=òìê=báåÑ®êÄìåÖ=ÉáåÉë=nì~Çê~íë=ãáí= îçêÖÉÖÉÄÉåÉã=jáííÉäéìåâí=ìåÇ=îçêÖÉÖÉÄÉåÉê=pÉáíÉåä®åÖÉ=ÑΩÜêÉå=ëçääÉåW= procedure TForm1.Button5Click(Sender: TObject); var x,y,seite,x1,y1,x2,y2: Integer; begin x:=400;y:=400;seite:=100;

//vorgegebene Daten

x1:=x-seite div 2;y1:=y-seite div 2;

//Anfangspunkt festlegen

x2:=x+seite div 2;y2:=y+seite div 2;

//Endpunkt festlegen

image1.canvas.Pen.Color:=RGB(255,255,0); image1.canvas.Pen.Width:=1; image1.Canvas.Brush.Color:=RGB(255,255,0); image1.canvas.Rectangle(x1,y1,x2,y2)

//Umriss-Farbe gelb //Umriss-Stärke //Füll-Farbe gelb //Rechteck zeichnen

end;===

aÉê=äÉíòíÉ=hçããÉåí~ê=ä®ëëí=Éë=ÉêâÉååÉå=Ó=Éáå=nì~Çê~í=ïáêÇ=ÉêòÉìÖíI=áåÇÉã=Éë= ~äë=oÉÅÜíÉÅâ=ãáí=ÖäÉáÅÜÉå=pÉáíÉåä®åÖÉå=îçêÄÉêÉáíÉí=ïáêÇW== a~òì= ãΩëëÉåI= ~ìëÖÉÜÉåÇ= îçã= ÖÉÖÉÄÉåÉå= jáííÉäéìåâí= ìåÇ= ÖÉÖÉÄÉåÉê= pÉáíÉåJ ä®åÖÉI= òìÉêëí= ÇáÉ= mçëáíáçåÉå= ÇÉê= äáåâÉå= çÄÉêÉå= ìåÇ= êÉÅÜíÉå= ìåíÉêÉå= bÅâÉ= ÄÉJ êÉÅÜåÉí=ïÉêÇÉåK=^åëíÉääÉ=ÇÉë=ΩÄäáÅÜÉå=aáîáëáçåëòÉáÅÜÉå= /=ãìëë=ÜáÉêI=Ç~=Éë=ëáÅÜ= ìã= Ö~åòò~ÜäáÖÉ= aáîáëáçå= Ü~åÇÉäíI= Ç~ë= pÅÜäΩëëÉäïçêí= div= îÉêïÉåÇÉí= ïÉêÇÉåK= aÉê=oÉëí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=ëéêáÅÜí=Ç~åå=ÑΩê=ëáÅÜK==

8.2.7

Ellipsen-Umriss

pçääÉå=ÇáÉ=_áäÇéìåâíÉ=ÉáåÉë=_áäÇÉêê~ÜãÉåJfåÜ~äíë= Canvas=ëç=ÉáåÖÉÑ®êÄí=ïÉêÇÉåI= Ç~ëë=ÉáåÉ=çÑÑÉåÉ=çÇÉê=ÖÉÑΩääíÉ=bääáéëÉ=ÉåíëíÉÜí=îÉêä~åÖí=aÉäéÜáI=Ç~ÑΩê=ÇÉå=äáåâÉå= çÄÉêÉå=ìåÇ=ÇÉå=êÉÅÜíÉå=ìåíÉêÉå=bÅâéìåâí=ÇÉëàÉåáÖÉå=oÉÅÜíÉÅâë=~åòìÖÉÄÉåI=áå= Ç~ë=ÇáÉ=bääáéëÉ=ÉáåÄÉëÅÜêáÉÄÉå=ïáêÇK=pç=áëí=~ìÅÜ=ÇáÉ=_ÉëÅÜêáÑíìåÖ=ÇÉë=ëÉÅÜëíÉå== _ìííçåë=============================================================òì=îÉêëíÉÜÉåK= aÉãòìÑçäÖÉ=ëíáããí=ÇÉê=fåÜ~äí=ÇÉê=òìÖÉÜ∏êáÖÉå=bêÉáÖåáëéêçòÉÇìê=Ó=ãáí=^ìëå~ÜJ ãÉ= ÇÉë= äÉíòíÉå= _ÉÑÉÜäë= image1.canvas.Ellipse(x1,y1,x2,y2)= Ó= ãáí= ÇÉê= bêÉáÖåáëJ éêçòÉÇìê=òìã=bêòÉìÖÉå=ÉáåÉë=oÉÅÜíÉÅâê~ÜãÉåë=î∏ääáÖ=ΩÄÉêÉáåW== procedure TForm1.Button6Click(Sender: TObject); var x1,y1,x2,y2: Integer; begin

NSN =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= x1:=550;y1:=550; x2:=600;y2:=700; image1.canvas.Pen.Color:=RGB(0,0,0); image1.canvas.Pen.Width:=3; image1.Canvas.Brush.Color:=RGB(255,255,255); image1.canvas.Ellipse(x1,y1,x2,y2)

//Anfangspunkt festlegen //Endpunkt festlegen //Umriss-Farbe schwarz //Umriss-Stärke //Füll-Farbe weiß //Ellipse zeichnen

end;

8.2.8

Ellipsen-Fläche

bÄÉåëç=Öáäí=ÑΩê=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=òìã=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ãáí=ÇÉê=^ìÑëÅÜêáÑí= = ÇáÉ= ÉåÖÉ= sÉêï~åÇíëÅÜ~Ñí= ãáí= ÇÉã= fåÜ~äí= ÇÉêàÉåáÖÉå= bêÉáÖåáëéêçòÉÇìêI= ãáí= ÇÉê= Éáå=ÖÉÑΩääíÉë=oÉÅÜíÉÅâ=ãáí=ÖäÉáÅÜÉê=rãêáëëJ=ìåÇ=fåÜ~äíëÑ~êÄÉ=ÉêòÉìÖí=ïáêÇW== procedure TForm1.Button7Click(Sender: TObject); var x1,y1,x2,y2: Integer; begin x1:=100;y1:=400;

//Anfangspunkt festlegen

x2:=300;y2:=500;

//Endpunkt festlegen

image1.canvas.Pen.Color:=RGB(255,0,0); image1.canvas.Pen.Width:=3; image1.Canvas.Brush.Color:=RGB(255,0,0); image1.canvas.Ellipse(x1,y1,x2,y2)

//Umriss-Farbe rot //Umriss-Stärke //Füll-Farbe rot //Ellipse zeichnen

end;==

8.2.9

Kreisfläche

fëí=ëéÉòáÉää=ÉáåÉ=jÉåÖÉ=îçå=_áäÇéìåâíÉå=ëç=ÉáåòìÑ®êÄÉåI=Ç~ëë=ÇáÉ=ãáí=ÇÉã=~ÅÜíÉå== _ìííçå============================================================ÖÉÖÉÄÉåÉ=^ìÑÖ~ÄÉ=ÖÉä∏ëí=ïáêÇI= Ç~åå= ãΩëëÉå= ~ìë= ÇÉå= ÖÉã~ÅÜíÉå= ^åÖ~ÄÉå= ÑΩê= jáííÉäéìåâí= ìåÇ= o~Çáìë= òìÉêëí= ÇáÉ= bÅâéìåâíÉ= Eäáåâë= çÄÉå= ìåÇ= êÉÅÜíë= ìåíÉåF= ÉáåÉë= é~ëëÉåÇÉå= nì~Çê~íë= ÄÉJ êÉÅÜåÉí=ïÉêÇÉåK== a~åå= ïáêÇ= ÇáÉ= áå= Ç~ë= nì~Çê~í= ÉáåÄÉëÅÜêáÉÄÉåÉ= bääáéëÉ= å®ãäáÅÜ= òì= ÇÉã= ÖÉJ ïΩåëÅÜíÉå=hêÉáëW== procedure TForm1.Button8Click(Sender: TObject); var x,y,radius,x1,y1,x2,y2: Integer;

NSO= =

UKO== dÉçãÉíêáëÅÜÉ=dÉÄáäÇÉ=ÉêòÉìÖÉå= begin x:=150;y:=600;radius:=100;

//Daten der Aufgabenstellung

x1:=x-radius div 2;y1:=y-radius div 2;

//Quadratecke links oben

x2:=x+radius div 2;y2:=y+radius div 2;

//Quadratecke rechts unten

image1.canvas.Pen.Color:=RGB(0,255,255); image1.canvas.Pen.Width:=1; image1.Canvas.Brush.Color:=RGB(0,255,255); image1.canvas.Ellipse(x1,y1,x2,y2)

//Umriss-Farbe lila //Umriss-Stärke //Füll-Farbe lila //Kreis zeichnen

end;

8.2.10

Text

aáÉ=_ÉëÅÜêáÑíìåÖ=====================================================================ÇÉë=îçêäÉíòíÉå= íÉå= _ìííçåë= îÉêä~åÖíI= ÉáåÉ= jÉåÖÉ= îçå= _áäÇéìåâíÉå= ëç= ÉáåòìÑ®êÄÉåI= Ç~ëë= Éáå= îçêÖÉÖÉÄÉåÉê= qÉñí= ãáí= îçêÖÉÖÉÄÉåÉê= pÅÜêáÑíÖê∏≈É= ìåÇ= ÓÑ~êÄÉ= êÉÅÜíë= ìåíÉê= ÇÉê= ÖÉå~ååíÉå=mçëáíáçå=ÉêëÅÜÉáåíK=aáÉ=òìÖÉÜ∏êáÖÉ=bêÉáÖåáëéêçòÉÇìê=Éêâä®êí=Ç~ë=sçêJ ÖÉÜÉåW=== procedure TForm1.Button9Click(Sender: TObject); var x1,y1: Integer;tx: String; begin x1:=300;y1:=600; image1.Canvas.Brush.Color:=RGB(255,255,255);

//Bezugspunkt festlegen //Füll-Farbe weiß

tx:='Vieweg';

//Vorgegebener Text

image1.canvas.Font.Color:=RGB(255,0,0);

//Schrift-Farbe rot

image1.canvas.Font.Size:=24; image1.canvas.TextOut(x1,y1,tx)

//Schrift-Stärke //Schrift einfärben

end;

8.2.11

Löschen

tÉåå=~ìÅÜ=~ìÑ=ÇÉã=_ìííçå== ëíÉÜíI=ëç=ïáÇÉêëéêáÅÜí=Ç~ë=åáÅÜí=ÇÉê=ÉáåÖ~åÖë=ÖÉã~ÅÜíÉå=^ìëë~ÖÉI=Ç~ëë=ÖêìåÇJ ë®íòäáÅÜ=åáÅÜí=ÖÉä∏ëÅÜí=ïÉêÇÉå=â∏ååÉK== bë= â~åå= åìê= åÉì= ÉáåÖÉÑ®êÄí= ïÉêÇÉåI= ìåÇ= ïÉåå= ~ääÉë= îÉêëÅÜïáåÇÉå= ëçääK= aáÉ= ÉáåÑ~ÅÜëíÉ= sçêÖÉÜÉåëïÉáëÉ= ÄÉëíÉÜí= Ç~êáåI= Éáå= oÉÅÜíÉÅâ= îçã= _áäÇéìåâí= Pixel[0,0]= EçÄÉå= äáåâëF= ΩÄÉê= ÇáÉ= ÖÉë~ãíÉ= j~äÑä®ÅÜÉ= òì= äÉÖÉå= ìåÇ= åÉì= ãáí= ÇÉê= eáåíÉêÖêìåÇÑ~êÄÉ=ÉáåòìÑ®êÄÉåK== dêç≈òΩÖáÖÉ=^åÖ~ÄÉå=ÑΩê=ÇáÉ=bÅâÉ=êÉÅÜíë=ìåíÉå=ëÅÜ~ÇÉå=Ç~ÄÉá=åáÅÜíW== NSP =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= procedure TForm1.Button10Click(Sender: TObject); begin image1.Canvas.Pen.Color:=RGB(255,255,255);

//Rand weiß

image1.Canvas.Brush.Color:=RGB(255,255,255);

//Inhalt weiß

image1.Canvas.Rectangle(0,0,2000,2000)

//Färbe neu

end;==

8.2.12

Achsenkreuz

táÉ=~ÄÉê=ÉåíëíÉÜí=Ç~ë=^ÅÜëÉåâêÉìòI=ãáí=ÇÉëëÉå=eáäÑÉ=ïáê=âçåíêçääáÉêÉå=â∏ååÉåI= çÄ=í~íë®ÅÜäáÅÜ=~å=ÇÉê=êáÅÜíáÖÉå=mçëáíáçå=áå=ÇÉê=êáÅÜíáÖÉ=dê∏≈É=Ç~ë=êáÅÜíáÖÉ=dê~J ÑáâÉäÉãÉåí=ÉêëÅÜÉáåí=E_áäÇ=UKSF\===

= _áäÇ=UKSW=pçÑçêí=ëáÅÜíÄ~êÉë=^ÅÜëÉåâêÉìò= a~= Éë= âÉáåÉå= _ìííçå= òìê= báåÑ®êÄìåÖ= ÇáÉëÉë= ^ÅÜëÉåâêÉìòÉë= ÖáÄíI= ãΩëëÉå= ÇáÉ= _ÉÑÉÜäÉ=òì=ÇÉëëÉå=báåÑ®êÄìåÖ=áå=ÉáåÉê=~åÇÉêÉå=bêÉáÖåáëéêçòÉÇìê=ÉåíÜ~äíÉå=ëÉáåK== oáÅÜíáÖW= bêáååÉêå= ïáê= ìåë= ~å= ÇáÉ= ^ÄëÅÜåáííÉ= OKOKT= ìåÇ= QKTKRK= açêí= äÉêåíÉå= ïáêI= Ç~ëë= ÄÉáã= häáÅâ= ÇÉë= kìíòÉêë= ~ìÑ= Ç~ë= å~ÅÜ= êÉÅÜíë= ÖÉêáÅÜíÉíÉ= ÖêΩåÉ= aêÉáÉÅâI= ïÉåå= ÇáÉ= i~ìÑòÉáí= ÄÉÖáååí= ìåÇ= ÇáÉ= _ÉåìíòÉêçÄÉêÑä®ÅÜÉ= í~íë®ÅÜäáÅÜ= ÜÉêÖÉëíÉääí= ïáêÇI=Ç~ë=cçêãìä~êJpí~åÇ~êÇÉêÉáÖåáë=Create=ëí~ííÑáåÇÉíK== NSQ= =

UKO== dÉçãÉíêáëÅÜÉ=dÉÄáäÇÉ=ÉêòÉìÖÉå= aÉå= o~ÜãÉå= ÑΩê= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= ÑΩê= ÇáÉëÉë= bêÉáÖåáë= ÉêÜ~äíÉå= ïáê= ÑçäÖäáÅÜ= ëçÑçêí=å~ÅÜ=açééÉäâäáÅâ=~ìÑ=Ç~ë=cçêãìä~ê=EÇáÉ=^êÄÉáíëÑä®ÅÜÉFW== procedure TForm1.FormCreate(Sender: TObject); begin end;

cΩê=ÇÉå=fåÜ~äí=ÇáÉëÉê=bêÉáÖåáëéêçòÉÇìê=ãΩëëÉå=ïáê=ìåë=~ääÉ=_ÉÑÉÜäÉ=ΩÄÉêäÉÖÉåI= ãáí=ÇÉêÉå=eáäÑÉ=å~ÅÜÉáå~åÇÉê== • • • •

ÇáÉ=^ÅÜëÉ=çÄÉå=îçå=äáåâë=å~ÅÜ=êÉÅÜíë=EñJ^ÅÜëÉF== ÇáÉ=mÑÉáäÉ=~ã=êÉÅÜíÉå=båÇÉ=ÇÉê=çÄÉêÉå=^ÅÜëÉ= ÇáÉ=ëÉåâêÉÅÜíÉå=qÉáäëíêáÅÜÉ=ÇÉê=çÄÉêÉå=^ÅÜëÉ= ÇáÉ=_ÉëÅÜêáÑíìåÖÉå=ÇÉê=çÄÉêÉå=^ÅÜëÉ=

• • • •

ÇáÉ=^ÅÜëÉ=äáåâë=îçå=çÄÉå=å~ÅÜ=ìåíÉå=EóJ^ÅÜëÉF= ÇáÉ=mÑÉáäÉ=~ã=ìåíÉêÉå=båÇÉ=ÇÉê=äáåâÉå=^ÅÜëÉ= ÇáÉ=ï~~ÖÉêÉÅÜíÉå=qÉáäëíêáÅÜÉ=ÇÉê=äáåâÉå=^ÅÜëÉ= ÇáÉ=_ÉëÅÜêáÑíìåÖÉå=ÇÉê=äáåâÉå=^ÅÜëÉ=

ëÅÜï~êò=ÉáåÖÉÑ®êÄí=ïÉêÇÉåK=bë=áëí=òì=ëÉÜÉå=Ó=ÜáÉê=ãìëë=îáÉä=^ìÑï~åÇ=ÖÉíêáÉÄÉå= ïÉêÇÉåI=ïáÉ=òìãÉáëí=ÄÉá=dê~ÑáâJmêçÖê~ããáÉêìåÖK== cΩê=ÇáÉ=qÉáäëíêáÅÜÉ=ìåÇ=ÇáÉ=_ÉëÅÜêáÑíìåÖÉå=ïáêÇ=ÄÉêÉáíë=ÇáÉ=w®ÜäëÅÜäÉáÑÉ=~äë=~ÄâΩêJ òÉåÇÉ= pÅÜêÉáÄïÉáëÉ= ãÉÜêÉêÉê= ÖäÉáÅÜ~êíáÖÉê= _ÉÑÉÜäÉ= îÉêïÉåÇÉíI= Éáå= sçêÖêáÑÑ= ~ìÑ= Ç~ë=âçããÉåÇÉ=h~éáíÉäI=áå=ÇÉã=ëáÉ=Ç~åå=~ìëÑΩÜêäáÅÜ=îçêÖÉëíÉääí=ìåÇ=Éêâä®êí=ïáêÇW== procedure TForm1.FormCreate(Sender: TObject); var i: Integer; tx: String; begin image1.Canvas.Pen.color:=RGB(0,0,0); image1.Canvas.Brush.color:=RGB(255,255,255);

//Linienfarbe schwarz //Hintergrundfarbe weiß

image1.canvas.moveTo(40,15);image1.canvas.LineTo(650,15); for i:=0 to 11 do

//x- Achse

//senkrechte Teil-Striche

begin image1.canvas.MoveTo(50+50*i,25); image1.canvas.LineTo(50+50*i,5); end; image1.canvas.moveTo(625,5);

//Pfeil rechts

image1.canvas.LineTo(650,15); image1.canvas.moveTo(625,25); image1.canvas.LineTo(650,15);

NSR =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= for i:=0 to 11 do

//Beschriftung x-Achse

begin Str(50+i*50,tx); image1.Canvas.TextOut(50+i*50-Canvas.TextWidth(tx) div 2,25,tx) end; image1.canvas.moveTo(15,40); image1.canvas.LineTo(15,750); for i:=0 to 13 do

//y-Achse

// waagerechte Teil-Striche

begin image1.canvas.MoveTo(25,50+50*i);image1.canvas.LineTo(5,50+50*i) end; image1.canvas.moveTo(5,725);

//Pfeil unten

image1.canvas.LineTo(15,750); image1.canvas.moveTo(25,725); image1.canvas.LineTo(15,750); for i:=0 to 13 do

//Beschriftung y-Achse

begin Str(50+i*50,tx); image1.Canvas.TextOut(25, 50+i*50-Canvas.TextHeight(tx) div 2,tx) end end;==

8.3

Text verändern _áäÇ= UKT= òÉáÖí= ÇáÉ= åÉìÉ= ^ìÑÖ~ÄÉW= _Éá= häáÅâ= ~ìÑ= ÇÉå= çÄÉêÉå= _ìííçå= ëçää= êÉÅÜíë= ìåíÉê= ÇÉê= ~åÖÉÖÉÄÉåÉå= mçëáíáçå= EÇçêí= ÇìêÅÜ= Éáå= âäÉáåÉë= ^ÅÜëÉåâêÉìò= ÇÉìíäáÅÜ= ÖÉã~ÅÜíF=ÇÉê=qÉñí=sáÉïÉÖ=ÉêëÅÜÉáåÉåK==

= _áäÇ=UKTW=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ= aáÉ=bêÉáÖåáëéêçòÉÇìê=ÑΩê=ÇÉå=çÄÉêÉå=_ìííçå=ïìêÇÉ=áã=îçêáÖÉå=^ÄëÅÜåáíí=ëÅÜçå= Éêâä®êíI=ëáÉ=â~åå=ÜáÉê=ëÅÜåÉää=ïáÉÇÉêÜçäí=ïÉêÇÉåW== NSS= =

UKP== qÉñí=îÉê®åÇÉêå= procedure TForm1.Button1Click(Sender: TObject); var x1,y1: Integer;tx: String; begin x1:=100;y1:=200; image1.canvas.Pen.color:=RGB(0,0,0);

//Bezugspunkt festlegen //Farbe f. Achsenkreuz schwarz //Kleines Achsenkreuz einfärben

image1.Canvas.moveto(x1-1,y1-1);image1.canvas.lineTo(x1+50,y1-1); image1.Canvas.moveto(x1-1,y1-1);image1.canvas.lineTo(x1-1,y1+50); image1.Canvas.Brush.Color:=RGB(255,255,255); //Hintergrundfarbe weiß tx:='Vieweg';

//Text festlegen

image1.canvas.Font.Color:=RGB(255,0,0);

//Schrift-Farbe rot

image1.canvas.Font.Size:=24;

//Schrift-Stärke

image1.canvas.TextOut(x1,y1,tx) //Schrift positionieren und ausgeben end;

t~ë=~ÄÉê=áëí=òì=íìåI=ïÉåå=ÇÉê=ãáííäÉêÉ=_ìííçå=ÑçêÇÉêí=Ändere den Text in “Teubner”=\=bêáååÉêå=ïáê=ìåë=~å=ìåëÉêÉå=j~äÉêW=tÉåå=ÇáÉ=c~êÄÉ=íêçÅâÉå=áëíI=â~åå=Éê= åáÅÜí=ãÉÜê=âçêêáÖáÉêÉåI=ëçåÇÉêå=åìê=ΩÄÉêã~äÉåK== cçäÖäáÅÜ=Ü~ÄÉå=ïáê=òïÉá=j∏ÖäáÅÜâÉáíÉåW== • aáÉ= ÖÉë~ãíÉ= iÉáåï~åÇ= ïáêÇ= åÉì= ÉáåÖÉÑ®êÄí= EëáÉÜÉ= ^ÄëÅÜåáíí= UKOKNNFK= a~åå= ïΩêÇÉå=~ÄÉê=~ìÅÜ=~ääÉ=~åÇÉêÉå=j~äÉêÖÉÄåáëëÉ=îÉêëÅÜïáåÇÉåK=tçääÉå=ïáê=Ç~ë\== • aáÉ=òïÉáíÉ=j∏ÖäáÅÜâÉáí=ÄÉëíÉÜí=Ç~êáåI=ÇÉå=qÉñí=Vieweg=ãáí=ÇÉê=c~êÄÉ=ÇÉë=eáåJ íÉêÖêìåÇÉë= åçÅÜ= Éáåã~ä= å~ÅÜòìòÉáÅÜåÉå= Ó= Ç~åå= áëí= ÇáÉëÉê= qÉñí= åáÅÜí= ãÉÜê= òì=ëÉÜÉåK== ^åëÅÜäáÉ≈ÉåÇ=â~åå=Ç~åå=îÉê~åä~ëëí=ïÉêÇÉåI=Ç~ëë=ÇáÉ=_áäÇéìåâíÉ=ëç=ÉáåÖÉÑ®êÄí= ïÉêÇÉåI=Ç~ëë=ÇÉê=åÉìÉ=qÉñí=~å=ÖÉïΩåëÅÜíÉê=píÉääÉ=ÉêâÉååÄ~ê=ïáêÇK== aáÉ=ïáÉÇÉêÖÉÖÉÄÉåÉ=bêÉáÖåáëéêçòÉÇìê=ÑçäÖí=ÇÉê=òïÉáíÉå=j∏ÖäáÅÜâÉáíW== procedure TForm1.Button2Click(Sender: TObject); var x1,y1: Integer;tx1,tx2: String; begin x1:=100;y1:=200;

//Bezugspunkt festlegen

image1.Canvas.Brush.Color:=RGB(255,255,255); //Hintergund-Farbe weiß tx1:='Vieweg';

//Alter Text wird wiederholt

image1.canvas.Font.Color:=RGB(255,255,255);

//Schrift-Farbe weiß

image1.canvas.Font.Size:=24;

//Schrift-Stärke wie vorher

image1.canvas.TextOut(x1,y1,tx1);

//Schrift weiß nachzeichnen

NST =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= tx2:='Teubner'; image1.canvas.Font.Color:=RGB(0,255,0); image1.canvas.Font.Size:=24; image1.canvas.TextOut(x1,y1,tx2)

//Neuer Text //Schrift-Farbe neu: grün //Schrift-Stärke neu //neue Schrift ausgeben

end;

§ÄêáÖÉåë= ÉåíÜ®äí= ÇáÉ= bêÉáÖåáëéêçòÉÇìê= òìã= ÉêëíÉå= _ìííçå= åáÅÜí= ÉáåÉå= ëçäÅÜÉå= qÉáä= i∏ëÅÜÉå= ÇìêÅÜ= k~ÅÜòÉáÅÜåÉå= ãáí= ÇÉê= eáåíÉêÖêìåÇÑ~êÄÉI= ìåÇ= ÑçäÖÉêáÅÜíáÖ= ïáêÇ= ÇÉê= qÉñí= Teubner= ÄÉá= å~ÅÜÑçäÖÉåÇÉã= häáÅâ= ~ìÑ= ÇÉå= çÄÉêÉå= _ìííçå= åáÅÜí= ÄÉëÉáíáÖíI= ëçåÇÉêå= åìê= íÉáäïÉáëÉ= ΩÄÉêã~äí= îçå= ÇÉã= âΩêòÉêÉå= qÉñí= ViewegK= _áäÇ= UKU=òÉáÖí=ÉëK==

= _áäÇ=UKUW=kÉìÉ=qÉñí~ìëÖ~ÄÉ=~ìÑ=îçêÜ~åÇÉåÉå=qÉñí=çÜåÉ=ÇÉëëÉå=i∏ëÅÜìåÖ==

8.4

Bildschirmschoner gÉÇÉ=_ÉëÅÜêÉáÄìåÖ=ÉáåÉë=_áäÇëÅÜáêãëÅÜçåÉêë=ÖäÉáÅÜí=ÉáåÉê=fåÑä~íáçå=ÇÉë=tçêíÉë= òìÑ®ääáÖK=pç=ëçää=ÇÉê=îçêÖÉëíÉääíÉ=ÉáåÑ~ÅÜÉ=_áäÇëÅÜáêãëÅÜçåÉê=áå=ÑçäÖÉåÇÉê=tÉáëÉ= ~êÄÉáíÉåW== • k~ÅÜ=ÇÉã=pí~êí=ÇÉê=i~ìÑòÉáí=ëçääÉå=~ìÑ=ÇÉã=_áäÇëÅÜáêã=å~ÅÜÉáå~åÇÉê=áå=òìJ Ñ®ääáÖÉå= wÉáí~Äëí®åÇÉå= áå= òìÑ®ääáÖÉê= c~êÄÉ= ãáí= òìÑ®ääáÖÉê= pí®êâÉ= ~åÉáå~åÇÉê= Ü®åÖÉåÇÉ=dÉê~ÇÉå=îçå= òìÑ®ääáÖÉå=mìåâíÉå=òì=òìÑ®ääáÖÉå=mìåâíÉå=ÇÉë=Ö~åJ òÉå=_áäÇëÅÜáêãÉë=ÉåíëíÉÜÉåK==

= _áäÇ=UKVW=táêâìåÖ=ÇÉë=_áäÇëÅÜáêãëÅÜçåÉêë=å~ÅÜ=ÉáåáÖÉå=pÉâìåÇÉå=== NSU= =

UKQ== _áäÇëÅÜáêãëÅÜçåÉê= _áäÇ= UKV= òÉáÖí= ÉáåÉ= jçãÉåí~ìÑå~ÜãÉ= ÇÉë= _áäÇëÅÜáêãëI= å~ÅÜÇÉã= ÇÉê= pÅÜçåÉê= Éáå=é~~ê=pÉâìåÇÉå=ÖÉä~ìÑÉå=ï~êK== táÉ=ëçääíÉå=ïáê=~å=ÇáÉ=i∏ëìåÖ=ÇáÉëÉê=mêçÖê~ããáÉê~ìÑÖ~ÄÉ=ÜÉê~åÖÉÜÉå\=wìÉêëí= ãìëë= ÖÉëáÅÜÉêí= ïÉêÇÉåI= Ç~ëë= ~ìÅÜ= í~íë®ÅÜäáÅÜ= ÇÉê= Ö~åòÉ= _áäÇëÅÜáêã= ÉêÑ~ëëí= ïáêÇK=a~ë=ÉêÑçäÖí=Éáåã~ä=ÇìêÅÜ=Ç~ë=báåëíÉääÉå=ÇÉê=báÖÉåëÅÜ~Ñí=wsMaximized=áå=ÇÉê= wÉáäÉ= WindowState= ÇÉë= lÄàÉâíáåëéÉâíçêë= îçã= cçêãìä~ê= E_áäÇ= UKNMI= ëáÉÜÉ= ~ìÅÜ= ^ÄëÅÜåáíí=NKOKNFK====

= _áäÇ=UKNMW=cÉåëíÉê=ã~ñáã~ä=ã~ÅÜÉå= a~åå= ãìëë= òìë®íòäáÅÜ= ÖÉëáÅÜÉêí= ïÉêÇÉåI= Ç~ëë= Ç~ë= _áäÇçÄàÉâí= Image1= ÇÉå= âçãJ éäÉííÉå=fååÉåê~ìã=ÇÉë=cçêãìä~êë= Form1=ÑΩääíK=a~ë=â~åå=Ç~ÇìêÅÜ=ÉêÑçäÖÉåI=Ç~ëë= ÇÉê=cÉåëíÉêJo~ÜãÉå=Öêç≈=ÖÉåìÖ=~ìÑÖÉòçÖÉå=ïáêÇK== aìêÅÜ=é~ëëÉåÇÉ=_ÉÑÉÜäÉ=áã=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=òìã=bêÉáÖåáë=Create=bêJ òÉìÖìåÖ=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉ=ïáêÇ=ïÉáíÉê=Ç~ÑΩê=ÖÉëçêÖíI=Ç~ëë=ÄÉá=_ÉÖáåå=ÇÉê= i~ìÑòÉáíI=ÇK=ÜK=ÄÉá=eÉêëíÉääìåÖ=ÇÉê=_ÉåìíòÉêçÄÉêÑä®ÅÜÉI=ÇÉê=_áäÇÉêê~ÜãÉå=Ö~ê~åJ íáÉêí=äáåâë=çÄÉå=éä~íòáÉêí=ïáêÇK=^ì≈ÉêÇÉã=ïáêÇ=ãáí=eáäÑÉ=ÉáåÉë=Öêç≈Éå=oÉÅÜíÉÅâë= ÇÉê=eáåíÉêÖêìåÇ=ëÅÜï~ÅÜ=Öê~ì=ÉáåÖÉÑ®êÄíW==== procedure TForm1.FormCreate(Sender: TObject); begin image1.Top:=0;image1.Left:=0;

//Rahmen beginnt links oben

image1.canvas.brush.color:=RGB(215,215,215); //Füllfarbe schwach grau image1.canvas.Pen.color:=RGB(215,215,215); //Umrissfarbe schwach grau image1.Canvas.Rectangle(0,0,2000,2000)

//Rechteck einfärben

end;

páÅÜÉê= áëí= ïÉáíÉê= ~ìÅÜI= Ç~ëë= ÇÉê= ^Ää~ìÑ= ÇÉë= báåÑ®êÄÉåë= ÇÉê= dÉê~ÇÉå= ~ìÑ= ÇÉê= iÉáåï~åÇ=ÇìêÅÜ=ÉáåÉå=qáãÉê=ÖÉëíÉìÉêí=ïÉêÇÉå=ãìëë=EëáÉÜÉ=^ÄëÅÜåáíí=SFK=^ÄÉê= ÉáåÉ=ïáÅÜíáÖÉ=cê~ÖÉ=áëí=åçÅÜ=òì=âä®êÉåW=tÉåå=ÄÉáã=báåíêÉíÉå=ÇÉë= qáãÉêJbêÉáÖJ åáëëÉë=ÇáÉ=åÉì=òì=ÉêòÉìÖÉåÇÉ=dÉê~ÇÉ=~å=ÇáÉ=äÉíòíÉ=ÉêòÉìÖíÉ=dÉê~ÇÉ=ìåãáííÉäÄ~ê= ~åëÅÜäáÉ≈Éå=ëçää=Ó=ïçÜÉê=ÉêÑ®Üêí=ã~å=Ç~åå=ÇÉêÉå=äÉíòíÉå=båÇéìåâí\== aáÉ=^åíïçêí=áëí=áå=_áäÇ=UKV=çÄÉå=~å=ÇÉê=_áäÇëÅÜáêãâ~åíÉ=òì=ëÉÜÉåW=wïÉá=i~ÄÉäë= ΩÄÉêåÉÜãÉå= îçå= qáãÉêJbêÉáÖåáë= òì= qáãÉêJbêÉáÖåáë= áå= ÑçäÖÉåÇÉê= tÉáëÉ= ÇáÉëÉ= a~íÉåW=qêáíí=Éáå=qáãÉêJbêÉáÖåáë=Éáå=ïáêÇ=ÇáÉ=mçëáíáçå=ÇÉë=äÉíòíÉå=båÇéìåâíÉë=Ççêí= ~ÄÖÉäÉëÉåI= Éáå= åÉìÉê= båÇéìåâí= ïáêÇ= ÉêòÉìÖíI= ÇáÉ= dÉê~ÇÉ= ïáêÇ= ÉáåÖÉÑ®êÄíI= ÇÉê= åÉìÉå= båÇéìåâí= ïáêÇ= ~åëÅÜäáÉ≈ÉåÇ= áå= ÇÉå= ÄÉáÇÉå= i~ÄÉäë= ~ÄÖÉäÉÖíK= _áë= òìã= å®ÅÜëíÉå=qáãÉêJbêÉáÖåáëK== NSV =

U= dê~ÑáâéêçÖê~ããáÉêìåÖ= a~ë= ÇêáííÉ= i~ÄÉäI= çÄÉå= áå= _áäÇ= UKVI= Ü~í= ÉáåÉ= ~åÇÉêÉ= _ÉÇÉìíìåÖW= lÑÑÉåëáÅÜíäáÅÜ= ëçää=ÇçÅÜ=ÇÉê=_áäÇëÅÜáêãëÅÜçåÉê=~ìíçã~íáëÅÜ=åÉì=ëí~êíÉåI=ïÉåå=ÇÉê=_áäÇëÅÜáêã= ÇìêÅÜ=ëÉÜê=îáÉäÉ=dÉê~ÇÉå=Ñ~ëí=ÖÉÑΩääí=áëíK=aÉëÜ~äÄ=ò®Üäí=ÇáÉëÉë=ÇêáííÉ=i~ÄÉä=ãáíI= ïáÉ=îáÉäÉ=dÉê~ÇÉå=Éë=ëÅÜçå=ÖáÄíI=ìåÇ=ÄÉá=PMM=ïáêÇ=åÉì=ÄÉÖçååÉåK== k~íΩêäáÅÜ=ïÉêÇÉå=ÇáÉëÉ=ÇêÉá=i~ÄÉäë=å~ÅÜ=cÉêíáÖëíÉääìåÖ=ÇÉë=_áäÇëÅÜáêãëÅÜçåÉêë= ëé®íÉê= îçå= ^åÑ~åÖ= ~å= ãáí= eáäÑÉ= ÇÉê= wÉáäÉ= Visible= áÜêÉê= lÄàÉâíáåëéÉâíçêÉå= ~ìÑ= ìåëáÅÜíÄ~ê=ÉáåÖÉëíÉääí=EëáÉÜÉ=^ÄëÅÜåáíí=QKSFK= a~ë= ï~ê= ëÅÜçå= ~ääÉëI= ï~ë= ÑΩê= Ç~ë= sÉêëí®åÇåáë= ÇÉê= ÑçäÖÉåÇÉå= bêÉáÖåáëéêçòÉÇìê= òìã=qáãÉêJbêÉáÖåáë=åçíïÉåÇáÖ=áëíW=== procedure TForm1.Timer1Timer(Sender: TObject); var x_alt, y_alt, x_neu, y_neu, anzahl: Integer; begin //Übernehmen aus den drei Labels x_alt:=StrToInt(Label1.Caption); y_alt:=StrToInt(Label2.Caption); anzahl:=StrToInt(Label3.Caption); Randomize; x_neu:=Random(1152); y_neu:=Random(801); //neuer Endpunkt if anzahl10) and (x10) and (yvergleich then anzahl:=anzahl+1;

//Untersuchung 1.Zeile

wert:=StrToInt(ListBox5.Items[1]); if wert> vergleich then anzahl:=anzahl+1;

//Untersuchung 2.Zeile

wert:=StrToInt(ListBox5.Items[2]); if wert> vergleich then anzahl:=anzahl+1;

//Untersuchung 3.Zeile

...

// und so weiter

wert:=StrToInt(ListBox5.Items[15]); if wert> vergleich then anzahl:=anzahl+1;

//Untersuchung 16. Zeile

ShowMessage('Es sind '+IntToStr(anzahl)+' Länder') end;

NUS= =

VKN== ^Äò®ÜäÉå=áå=iáëíÉå= ^äë=ÉêëíÉë=ïáêÇ=ÇÉê=w®ÜäïÉêâëëéÉáÅÜÉêéä~íò=anzahl=îÉêÉáåÄ~êíX=ãáí=ÉáåÉã=Öê∏≈íÉå= tÉêí=îçå=Ü∏ÅÜëíÉåë= 16=êÉáÅÜí=ÇÉê=qóé= Byte=î∏ääáÖ=~ìëK=a~åå=Äê~ìÅÜÉå=ïáê=~ÄÉê= åçÅÜ=ÉáåÉå=péÉáÅÜÉêéä~íòI=áå=ÇÉã=ïáê=ÇÉå=w~ÜäÉåïÉêí=~ìë=ÇÉê=àÉïÉáäáÖÉå=wÉáäÉ= ~ÄäÉÖÉå=ãΩëëÉåK=açêí=íêÉíÉå=jáääáçåÉå=~ìÑ=Ó=ÑçäÖäáÅÜ=qóé=IntegerK== a~ë= w®ÜäïÉêâ= ïáêÇ= ~ìÑ= kìää= ÖÉëÉíòíK= a~åå= ÄÉÖáååí= ÇáÉ= råíÉêëìÅÜìåÖK= aÉê= EqÉñíJFfåÜ~äí= ÇÉê= ÉêëíÉå= wÉáäÉ= ïáêÇ= ãáí= eáäÑÉ= ÇÉê= cìåâíáçå= StrToInt= òì= ÉáåÉã= w~ÜäÉåïÉêí=ÖÉã~ÅÜí=ìåÇ=áå=ÇÉå=péÉáÅÜÉêéä~íò= wert=ÖÉÄê~ÅÜíK=hçããí=Ççêí=ÉáåÉ= w~Üä= Öê∏≈Éê= ~äë= R= jáääáçåÉå= ~åI= ïáêÇ= ãáííÉäë= ÇÉë= _ÉÑÉÜäë= anzahl:=anzahl+1= Ç~ë= w®ÜäïÉêâ=ÖÉëÅÜ~äíÉíK=pç=ÖÉÜí=Éë=ïÉáíÉêK== cΩê=ÇÉå=ÇÉåâÉåÇÉå=jÉåëÅÜÉå=áëí=~ääÉë=âä~êI=ìåÇ=Éê=â~åå=ÇáÉ=ÇêÉá=mìåâíÉ=éêçÄJ äÉãäçë= áåíÉêéêÉíáÉêÉåW= ìåÇ= ëç= ïÉáíÉê= KKK= ÄáëK= aÉê= `çãéìíÉê= â~åå= Ç~ë= åáÅÜíK= bê= â~åå=åáÅÜí=ÇÉåâÉå>=pÅÜ~ÇÉK== pçI=ïáÉ=Éê=Äáë=àÉíòí=Ç~ëíÉÜíI=áëí=ÇÉê=fåÜ~äí=ÇÉê=bêÉáÖåáëéêçòÉÇìê=åáÅÜí=îÉê~êÄÉáíÄ~êK= jΩëëÉå=ïáê=~ääÉ=ëÉÅÜòÉÜå=qÉëíë=ÉáåòÉäå=ÜáåëÅÜêÉáÄÉå\=a~ë=â~åå=åáÅÜí=ëÉáåI=ÇÉåå= ÄÉá=í~ìëÉåÇ=wÉáäÉå=Ü®ííÉå=ïáê=Ç~åå=í~ìëÉåÇ=qÉëíë=òì=éêçÖê~ããáÉêÉåK== aáÉ= i∏ëìåÖ= ÜÉá≈í= w®ÜäëÅÜäÉáÑÉK= iÉêåÉå= ïáê= ÇáÉ= ëÉÅÜë=pÅÜêáííÉ= ~ìÑ= ÇÉã= tÉÖ= òìê= w®ÜäëÅÜäÉáÑÉ=âÉååÉåK== • pÅÜêáíí=NW= aÉê=_ÉÑÉÜä=çÇÉê=ÇáÉ=_ÉÑÉÜäëÑçäÖÉI=ÇáÉ=ëáÅÜ=ïáÉÇÉêÜçäíI=áëí=áå= begin= ìåÇ=end=ÉáåòìëÅÜäáÉ≈ÉåW== begin wert:=StrToInt(ListBox5.Items[0]); if wert>vergleich then anzahl:=anzahl+1 end

• pÅÜêáíí= OW= aÉêàÉåáÖÉ= w~ÜäÉåïÉêíI= ÇÉê= ëáÅÜ= îçå= j~ä= òì= j~ä= ®åÇÉêíI= áëí= ÇìêÅÜ= ÇÉå=k~ãÉå=ÉáåÉë=péÉáÅÜÉêéä~íòÉë=òì=ÉêëÉíòÉåI=ΩÄäáÅÜ=áëí=ÜáÉê= iK= i=ÜÉá≈í=Ç~åå= i~ìÑî~êá~ÄäÉW== begin wert:=StrToInt(ListBox5.Items[i]); if wert>vergleich then anzahl:=anzahl+1 end

• pÅÜêáíí=PW=a~êΩÄÉê=ïáêÇ=ÉáåÉ=for...to...doJwÉáäÉ=ÖÉëÅÜêáÉÄÉåW== for i:=... to ... do begin wert:=StrToInt(ListBox5.Items[i]); if wert>vergleich then anzahl:=anzahl+1 end

NUT =

V= w®ÜäëÅÜäÉáÑÉå= • pÅÜêáíí=QW=aÉê=pí~êíïÉêí=ÑΩê=ÇáÉ=i~ìÑî~êá~ÄäÉ=i=ïáêÇ=ÉáåÖÉíê~ÖÉåW= for i:=0 to ... do begin wert:=StrToInt(ListBox5.Items[i]); if wert>vergleich then anzahl:=anzahl+1 end

• pÅÜêáíí=RW=aÉê=båÇïÉêí=ÑΩê=ÇáÉ=i~ìÑî~êá~ÄäÉ=i=ïáêÇ=ÉáåÖÉíê~ÖÉåW= for i:=0 to 15 do begin wert:=StrToInt(ListBox5.Items[i]); if wert>vergleich then anzahl:=anzahl+1 end

• pÅÜêáíí=SW=aáÉ=i~ìÑî~êá~ÄäÉ=ïáêÇ=é~ëëÉåÇ=îÉêÉáåÄ~êíK=_Éá=ìåë=êÉáÅÜí=ByteK= gÉíòí=áëí=ÇáÉ=bêÉáÖåáëéêçòÉÇìê=ÑÉêíáÖI=ÄÉá=häáÅâ=~ìÑ=ÇÉå=_ìííçå=ÉêÑ~ÜêÉå=ïáêI=Ç~ëë= ÖÉê~ÇÉ=ÑΩåÑ=ÇÉìíëÅÜÉ=_ìåÇÉëä®åÇÉê=ãÉÜê=~äë=R=jáääáçåÉå=báåïçÜåÉê=Ü~ÄÉåK= procedure TForm1.Button1Click(Sender: TObject); var anzahl,i

: Byte;

//Vereinbarungen

wert, vergleich : Integer; begin anzahl:=0; vergleich:=5000000;

//Ausführungsteil //Zählwerk auf Null setzen //Vergleichswert zuweisen

for i:=0 to 15 do //Zählschleife begin wert:=StrToInt(ListBox5.Items[i]); if wert>vergleich then anzahl:=anzahl+1 end; //Semikolon nötig, da noch ein Befehl kommt ShowMessage('Es sind '+IntToStr(anzahl)+' Länder') end;

wìê=§ÄìåÖ=ëçääíÉ=ÇáÉ=cê~ÖÉ=Wie viele Länder haben weniger als 1000 Quadratkilometer?=ãáí=ÉåíëéêÉÅÜÉåÇÉê=bêÉáÖåáëéêçòÉÇìê=ÄÉ~åíïçêíÉí=ïÉêÇÉåK= pé®íÉê=â~åå=Éáå=qÉñíÑÉåëíÉê=ÉêÖ®åòí=ïÉêÇÉåI=áå=Ç~ë=ÇÉê=kìíòÉê=ëÉáåÉå=tÉêí=ÉáåJ íê®Öí=EÑ~äëÅÜÉ=q~ëíÉå=Ç~ÄÉá=ïÉÖÑ~åÖÉåFX=Ç~åå=â~åå=ÇÉê=fåÜ~äí=ÇÉë=péÉáÅÜÉêéä~íòÉë= vergleich=ãáí=eáäÑÉ=ÇÉê=StrToIntJcìåâíáçå=~ìë=ÇÉã=qÉñíÑÉåëíÉê=ÖÉÜçäí=ïÉêÇÉåK=== kìíòÉå= ïáê= ÇçÅÜ= ÖäÉáÅÜ= Éáåã~ä= ÇáÉ= åÉì= ÖÉäÉêåíÉ= w®ÜäëÅÜäÉáÑÉI= ìã= ãáííÉäë= ÇÉê= bêÉáÖåáëéêçòÉÇìê= òìã= Epí~åÇ~êÇJFbêÉáÖåáë= bêòÉìÖìåÖ= ÇÉë= cçêãìä~êë= Ç~ÑΩê= òì= ëçêÖÉåI= Ç~ëë= ÇáÉ= qÉñíÉáåíê®ÖÉ= áå= ÇÉå= iáëíÉå= îáÉê= ìåÇ= ÑΩåÑI= ÇáÉ= ïáê= ~äë= w~ÜäÉå= ëÉÜÉå=ã∏ÅÜíÉåI=êÉÅÜíëÄΩåÇáÖ=~åÖÉçêÇåÉí=ïÉêÇÉåK== NUU= =

VKN== ^Äò®ÜäÉå=áå=iáëíÉå= táÉ= ÖÉÜÉå= ïáê= îçê\= táê= éêΩÑÉå= àÉïÉáäëI= áå= ïÉäÅÜÉã= _ÉêÉáÅÜ= ëáÅÜ= ÇÉê= w~ÜäÉåJ ïÉêí= ÇÉë= báåíê~Öë= ÄÉÑáåÇÉíK= båíëéêÉÅÜÉåÇ= ïÉêÇÉå= äáåâë= ~å= ÇáÉ= wÉáäÉ= Éáå= çÇÉê= òïÉá=iÉÉêòÉáÅÜÉå=~åÖÉâÉííÉíW== procedure TForm1.FormCreate(Sender: TObject); var i

: Byte;

//Vereinbarungen

wert: Integer; begin

//Ausführungsteil

for i:=0 to 15 do begin wert:=StrToInt(ListBox4.Items[i]);

//4. Liste

if wert=1000) and (wertmax then max:=wert

lÇÉê=áå=ÇÉê=äÉíòíÉå=wÉáäÉ\== wert:=StrToInt(ListBox5.Items[15]);if wert>max then max:=wert

wáÉÜÉå=ïáê=_áä~åò=ÉêâÉååÉå=ïáêI=Ç~ëë=ÇáÉ=ëçÉÄÉå=~ìÑÖÉëÅÜêáÉÄÉåÉå=wÉáäÉå=ëáÅÜ= áå=ÉáåÉê=w®ÜäëÅÜäÉáÑÉ=òìë~ããÉåÑ~ëëÉå=ä~ëëÉåK== wìë~ããÉåÖÉÑ~ëëí=ÉêÖáÄí=ëáÅÜ=ÑçäÖÉåÇÉ=bêÉáÖåáëéêçòÉÇìêW= NVM= =

VKO== jáåáã~ñJ^ìÑÖ~ÄÉå= procedure TForm1.Button1Click(Sender: TObject); var i

: Byte;

//Vereinbarungen

max, wert: Integer; begin

//Ausführungsteil wert:=StrToInt(ListBox5.Items[0]); max:=wert;

//Kandidat

for i:=1 to 15 do

//Zählschleife

begin wert:=StrToInt(ListBox5.Items[i]); if wert>max then max:=wert; end;

//Ende der Zählschleife

ShowMessage('Das Maximum lautet:'+ IntToStr(max)); end;

== _áäÇ=VKPW=j~ñáãìãJpìÅÜÉ== báåÉ=Ö~åò=âäÉáåÉ=ûåÇÉêìåÖ=Äê~ìÅÜí=ã~å=åìêI=ìã=ÇÉå=âäÉáåëíÉå=tÉêí=òì=ÑáåÇÉåW= if wert