ΠŸΠΎΠΌΠΎΡ‰ΡŒ Π² написании студСнчСских Ρ€Π°Π±ΠΎΡ‚
АнтистрСссовый сСрвис

Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° дСмонстрационного ΠΌΠ½ΠΎΠ³ΠΎΠΏΠΎΡ‚ΠΎΡ‡Π½ΠΎΠ³ΠΎ прилоТСния с динамичСским ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ΠΌ свойств ΠΎΠΊΠ½Π° ΠΈ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚

ΠšΡƒΡ€ΡΠΎΠ²Π°ΡΠŸΠΎΠΌΠΎΡ‰ΡŒ Π² Π½Π°ΠΏΠΈΡΠ°Π½ΠΈΠΈΠ£Π·Π½Π°Ρ‚ΡŒ ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒΠΌΠΎΠ΅ΠΉ Ρ€Π°Π±ΠΎΡ‚Ρ‹

ПоявлСниС Delphi Π½Π΅ ΠΌΠΎΠ³Π»ΠΎ ΠΏΡ€ΠΎΠΉΡ‚ΠΈ Π½Π΅Π·Π°ΠΌΠ΅Ρ‡Π΅Π½Π½Ρ‹ΠΌ срСди многочислСнных ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π°. ΠžΡ†Π΅Π½ΠΊΠΈ экспСртов, ΠΈΠ·ΡƒΡ‡Π°ΡŽΡ‰ΠΈΡ… возмоТности этого ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚Π° Ρ„ΠΈΡ€ΠΌΡ‹ Borland, ΠΎΠ±Ρ‹Ρ‡Π½ΠΎ ΠΎΠΊΡ€Π°ΡˆΠ΅Π½Ρ‹ Π² Π²ΠΎΡΡ‚ΠΎΡ€ΠΆΠ΅Π½Π½Ρ‹Π΅ Ρ‚ΠΎΠ½Π°. ОсновноС достоинство Delphi состоит Π² Ρ‚ΠΎΠΌ, Ρ‡Ρ‚ΠΎ здСсь Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Π½Ρ‹ ΠΈΠ΄Π΅ΠΈ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ программирования. Π‘Ρ€Π΅Π΄Π° Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ программирования ΠΏΡ€Π΅Π²Ρ€Π°Ρ‰Π°Π΅Ρ‚ процСсс создания ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ Π² ΠΏΡ€ΠΈΡΡ‚Π½ΠΎΠ΅ ΠΈ Π»Π΅Π³ΠΊΠΎ… Π§ΠΈΡ‚Π°Ρ‚ΡŒ Π΅Ρ‰Ρ‘ >

Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° дСмонстрационного ΠΌΠ½ΠΎΠ³ΠΎΠΏΠΎΡ‚ΠΎΡ‡Π½ΠΎΠ³ΠΎ прилоТСния с динамичСским ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ΠΌ свойств ΠΎΠΊΠ½Π° ΠΈ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ (Ρ€Π΅Ρ„Π΅Ρ€Π°Ρ‚, курсовая, Π΄ΠΈΠΏΠ»ΠΎΠΌ, ΠΊΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒΠ½Π°Ρ)

ΠšΠ£Π Π‘ΠžΠ’ΠΠ― Π ΠΠ‘ΠžΠ’Π

ΠΏΠΎ Π΄ΠΈΡΡ†ΠΈΠΏΠ»ΠΈΠ½Π΅: «Π‘Ρ€Π΅Π΄Ρ‹ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ программирования»

Π’Π΅ΠΌΠ°: «Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° дСмонстрационного ΠΌΠ½ΠΎΠ³ΠΎΠΏΠΎΡ‚ΠΎΡ‡Π½ΠΎΠ³ΠΎ прилоТСния с Π΄ΠΈΠ½Π°ΠΌΠΈΡ‡Π΅ΡΠΊΠΈΠΌ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ΠΌ свойств ΠΎΠΊΠ½Π° ΠΈ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚»

  • Π’Π²Π΅Π΄Π΅Π½ΠΈΠ΅
  • 1. ΠŸΠΎΡΡ‚Π°Π½ΠΎΠ²ΠΊΠ° Π·Π°Π΄Π°Ρ‡ΠΈ
  • 2. Π’Ρ‹Π±ΠΎΡ€ срСдств Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ
  • 3. ОписаниС Π»ΠΎΠ³ΠΈΠΊΠΈ Ρ€Π°Π±ΠΎΡ‚Ρ‹ прилоТСния ΠΈ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния
  • 4. ОписаниС ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΎΠ³ΠΎ интСрфСйса
  • Π—Π°ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅
  • Бписок использованной Π»ΠΈΡ‚Π΅Ρ€Π°Ρ‚ΡƒΡ€Ρ‹
  • ΠŸΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ

Π—Π°Ρ‡Π°ΡΡ‚ΡƒΡŽ Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌΠΎ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ быстрый доступ ΠΊ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ. Всё Ρ‡Π°Ρ‰Π΅ для этого ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‚ΡΡ Ρ€Π°Π·Π»ΠΈΡ‡Π½Ρ‹Π΅ ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π½Ρ‹Π΅ прилоТСния.

Одним ΠΈΠ· Π²Π°ΠΆΠ½Π΅ΠΉΡˆΠΈΡ… Ρ€Π°Π·Π΄Π΅Π»ΠΎΠ² Π½Π°ΡƒΠΊΠΈ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ‚ΠΈΠΊΠΈ являСтся ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅. Π―Π·Ρ‹ΠΊ программирования — это Ρ„ΠΎΡ€ΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ, искусствСнно созданный язык для написания ΠΈ Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ Π°Π»Π³ΠΎΡ€ΠΈΡ‚ΠΌΠ° Π½Π° ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π΅.

Π‘Ρ€Π΅Π΄ΠΈ Π³Π»Π°Π²Π½Ρ‹Ρ… ΠΏΡ€ΠΈΡ‡ΠΈΠ½, ΠΏΡ€ΠΈΠ½Π΅ΡΡˆΠΈΡ… Π·Π°ΡΠ»ΡƒΠΆΠ΅Π½Π½ΡƒΡŽ ΠΏΠΎΠΏΡƒΠ»ΡΡ€Π½ΠΎΡΡ‚ΡŒ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π½ΠΎ-ΠΎΡ€ΠΈΠ΅Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠ³ΠΎ программирования, слСдуСт ΠΎΡ‚ΠΌΠ΅Ρ‚ΠΈΡ‚ΡŒ ΡΠ»Π΅Π΄ΡƒΡŽΡ‰ΠΈΠ΅:

Β· ΠΏΠΎΡ‡Ρ‚ΠΈ ΠΏΠΎΠ»Π½ΠΎΠ΅ Ρ€Π°Π·Ρ€Π΅ΡˆΠ΅Π½ΠΈΠ΅ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΡ‹ кризиса Π² ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠΌ обСспСчСнии, Π·Π° ΡΡ‡Π΅Ρ‚ ΡƒΠΌΠ΅Π½ΡŒΡˆΠ΅Π½ΠΈΡ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ Π½Π° Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΡƒ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚Π° ΠΈ Π²Ρ‹ΡΠΎΠΊΠΎΠΉ Ρ‚Π΅Ρ…Π½ΠΎΠ»ΠΎΠ³ΠΈΠΈ программирования;

Β· ΠΏΠ΅Ρ€Π΅Ρ…ΠΎΠ΄ ΠΎΡ‚ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΡ… языков программирования ΠΊ Π½ΠΎΠ²Ρ‹ΠΌ, прогрСссивным ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΎΠ½Π½Ρ‹ΠΌ тСхнологиям ΠΈ ΡΡ…одство ΠΈΠ΄Π΅ΠΉ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π½ΠΎ-ΠΎΡ€ΠΈΠ΅Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠ³ΠΎ программирования с ΠΈΠ΄Π΅ΡΠΌΠΈ ΠΈΠ· Π΄Ρ€ΡƒΠ³ΠΈΡ… областСй Π½Π°ΡƒΠΊΠΈ.

ΠœΠ΅Ρ‚ΠΎΠ΄Ρ‹ ООП для Ρ€Π΅ΡˆΠ΅Π½ΠΈΡ тСхничСских Π·Π°Π΄Π°Ρ‡ Π½Π΅Ρ€Π΅Π΄ΠΊΠΎ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‚ΡΡ Π² ΠΏΠΎΠ²ΡΠ΅Π΄Π½Π΅Π²Π½ΠΎΠΉ ΠΆΠΈΠ·Π½ΠΈ, поэтому, ΠΎΠ±ΡƒΡ‡Π΅Π½ΠΈΠ΅ языкам ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π½ΠΎ-ΠΎΡ€ΠΈΠ΅Π½Ρ‚ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠ³ΠΎ программирования Π½Π΅ Π²Ρ‹Π·Ρ‹Π²Π°Π΅Ρ‚ особых трудностСй.

ΠŸΡ€Π΅ΠΈΠΌΡƒΡ‰Π΅ΡΡ‚Π²ΠΎ ООП Π² Π½Π°Π³Π»ΡΠ΄Π½ΠΎΠΌ прСдставлСнии ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ² (ΠΊΠ½ΠΎΠΏΠΎΠΊ, строк для Π²Π²ΠΎΠ΄Π° ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΈ Π΄Ρ€.). ΠšΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ ΠΏΡ€ΠΈΠ½Π°Π΄Π»Π΅ΠΆΠΈΡ‚ ΠΎΠΏΡ€Π΅Π΄Π΅Π»Π΅Π½Π½ΠΎΠΌΡƒ классу. НапримСр, ΠΊΠ½ΠΎΠΏΠΊΠ° (Button1) ΠΏΡ€ΠΈΠ½Π°Π΄Π»Π΅ΠΆΠΈΡ‚ классу ΠΊΠ½ΠΎΠΏΠΎΠΊ TButton. Π’ ΠΊΠ»Π°ΡΡ Π²Ρ…ΠΎΠ΄ΠΈΡ‚ сколь ΡƒΠ³ΠΎΠ΄Π½ΠΎ ΠΌΠ½ΠΎΠ³ΠΎ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ², ΠΎΠ±ΡŠΠ΅Π΄ΠΈΠ½Π΅Π½Π½Ρ‹Ρ… Π² ΠΎΠ΄Π½Ρƒ Π³Ρ€ΡƒΠΏΠΏΡƒ согласно ΠΈΡ… ΡΠ²ΠΎΠΉΡΡ‚Π²Π°ΠΌ ΠΈ ΠΏΠΎΠ²Π΅Π΄Π΅Π½ΠΈΡŽ Π² ΡΡ€Π΅Π΄Π΅ окруТСния, Π² ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΉ ΠΎΠ½ΠΈ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‚ ΠΈ Π²Π·Π°ΠΈΠΌΠΎΠ΄Π΅ΠΉΡΡ‚Π²ΡƒΡŽΡ‚.

ПоявлСниС Delphi Π½Π΅ ΠΌΠΎΠ³Π»ΠΎ ΠΏΡ€ΠΎΠΉΡ‚ΠΈ Π½Π΅Π·Π°ΠΌΠ΅Ρ‡Π΅Π½Π½Ρ‹ΠΌ срСди многочислСнных ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π°. ΠžΡ†Π΅Π½ΠΊΠΈ экспСртов, ΠΈΠ·ΡƒΡ‡Π°ΡŽΡ‰ΠΈΡ… возмоТности этого ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚Π° Ρ„ΠΈΡ€ΠΌΡ‹ Borland, ΠΎΠ±Ρ‹Ρ‡Π½ΠΎ ΠΎΠΊΡ€Π°ΡˆΠ΅Π½Ρ‹ Π² Π²ΠΎΡΡ‚ΠΎΡ€ΠΆΠ΅Π½Π½Ρ‹Π΅ Ρ‚ΠΎΠ½Π°. ОсновноС достоинство Delphi состоит Π² Ρ‚ΠΎΠΌ, Ρ‡Ρ‚ΠΎ здСсь Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Π½Ρ‹ ΠΈΠ΄Π΅ΠΈ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ программирования. Π‘Ρ€Π΅Π΄Π° Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ программирования ΠΏΡ€Π΅Π²Ρ€Π°Ρ‰Π°Π΅Ρ‚ процСсс создания ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ Π² ΠΏΡ€ΠΈΡΡ‚Π½ΠΎΠ΅ ΠΈ Π»Π΅Π³ΠΊΠΎ ΠΏΠΎΠ½ΠΈΠΌΠ°Π΅ΠΌΠΎΠ΅ конструированиС прилоТСния ΠΈΠ· Π±ΠΎΠ»ΡŒΡˆΠΎΠ³ΠΎ Π½Π°Π±ΠΎΡ€Π° графичСских ΠΈ ΡΡ‚Ρ€ΡƒΠΊΡ‚ΡƒΡ€Π½Ρ‹Ρ… ΠΏΡ€ΠΈΠΌΠΈΡ‚ΠΈΠ²ΠΎΠ².

ΠŸΡ€Π°ΠΊΡ‚ΠΈΡ‡Π΅ΡΠΊΠΎΠΉ Ρ‡Π°ΡΡ‚ΡŒΡŽ курсового ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° являСтся Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° справочной систСмы ΠΏΠΎ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½Ρ‹ΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°ΠΌ Delphi

1. ΠŸΠΎΡΡ‚Π°Π½ΠΎΠ²ΠΊΠ° Π·Π°Π΄Π°Ρ‡ΠΈ

Π Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° справочной систСмы ΠΏΠΎ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½Ρ‹ΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°ΠΌ Delphi.

ΠžΡΠ½ΠΎΠ²Π½Ρ‹Π΅ трСбования: ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΏΠΎ ΠΎΡΠ½ΠΎΠ²Π½Ρ‹ΠΌ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½Ρ‹ΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°ΠΌ (Π½Π΅ ΠΌΠ΅Π½Π΅Π΅ 15 ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚). Визуализация ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π² ΡΠΏΠ΅Ρ†ΠΈΠ°Π»ΡŒΠ½ΠΎ ΠΎΡ‚Π²Π΅Π΄Π΅Π½Π½ΠΎΠΉ области с Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒΡŽ задания ΠΈΠΌ Ρ€Π°Π·Π½Ρ‹Ρ… свойств (Ρ€Π°Π·ΠΌΠ΅Ρ€, Ρ†Π²Π΅Ρ‚ ΠΈ Ρ‚. Π΄.). ΠžΠ±Π΅ΡΠΏΠ΅Ρ‡ΠΈΡ‚ΡŒ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΌΡ‹ΡˆΠΈ пСрСмСщСния ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ ΠΏΠΎ ΠΎΡ‚Π²Π΅Π΄Π΅Π½Π½ΠΎΠΉ области с ΠΎΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ΠΌ ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚. ОписаниС ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π΄ΠΎΠ»ΠΆΠ½ΠΎ Ρ…Ρ€Π°Π½ΠΈΡ‚ΡŒΡΡ Π² Ρ‚Скстовом Ρ„Π°ΠΉΠ»Π΅.

ΠžΠ±Ρ‰ΠΈΠ΅ трСбования:

1. ΠŸΡ€ΠΈ Π²Ρ‹Ρ…ΠΎΠ΄Π΅ ΠΈΠ· ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ ΠΎΠ±Π΅ΡΠΏΠ΅Ρ‡ΠΈΡ‚ΡŒ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ сохранСния ΠΈΠ·ΠΌΠ΅Π½Π΅Π½Π½Ρ‹Ρ… свойств ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π² Ρ„Π°ΠΉΠ»Π΅ с Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒΡŽ ΠΈΡ… Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ Π² Π±ΡƒΠ΄ΡƒΡ‰Π΅ΠΌ.

2. Π’ΠΈΠΏ прилоТСния: GUI

2. Π’Ρ‹Π±ΠΎΡ€ срСдств Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ

Для выполнСния ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° Π±Ρ‹Π» Π²Ρ‹Π±Ρ€Π°Π½ язык программирования Delphi, Ρ‚Π°ΠΊ ΠΊΠ°ΠΊ ΠΎΠ½ ΡΠΎΡ‡Π΅Ρ‚Π°Π΅Ρ‚ Π² ΡΠ΅Π±Π΅ простоту выполнСния Π·Π°Π΄Π°Ρ‡ΠΈ, построСния ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΎΠ³ΠΎ интСрфСйса, Π° Ρ‚Π°ΠΊΠΆΠ΅ ΠΎΠ±Π»Π°Π΄Π°Π΅Ρ‚ ΠΌΠΎΡ‰Π½Ρ‹ΠΌ Π½Π°Π±ΠΎΡ€ΠΎΠΌ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΉ, экономящим врСмя Π½Π° Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΡƒ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния.

Π’ Ρ€Π°Π·Ρ€Π°Π±Π°Ρ‚Ρ‹Π²Π°Π΅ΠΌΠΎΠΉ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ΅ прСдполагаСтся использованиС ΡΠ»Π΅Π΄ΡƒΡŽΡ‰ΠΈΡ… Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΉ ΠΈ ΠΌΠΎΠ΄ΡƒΠ»Π΅ΠΉ

ΠœΠΎΠ΄ΡƒΠ»ΡŒ Forms позволяСт Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ с Ρ„ΠΎΡ€ΠΌΠ°ΠΌΠΈ. Для создания GUI — прилоТСния Π±ΡƒΠ΄ΡƒΡ‚ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Π½Ρ‹ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Ρ‹ класса TForm;

ΠœΠΎΠ΄ΡƒΠ»ΠΈ StdCtrls, Buttons, ExtCtrls для создания с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΊΠ½ΠΎΠΏΠΎΠΊ интСрфСйса, ΡƒΠ΄ΠΎΠ±Π½ΠΎΠ³ΠΎ ΠΈ ΠΏΡ€ΠΈΠ²Ρ‹Ρ‡Π½ΠΎΠ³ΠΎ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŽ;

ΠœΠΎΠ΄ΡƒΠ»ΡŒ Controls для Ρ€Π°Π±ΠΎΡ‚Ρ‹ с ΠΊΠ»Π°ΡΡΠΎΠΌ TControl, Ρ‡Ρ‚ΠΎ позволяСт ΡƒΠΏΡ€ΠΎΡΡ‚ΠΈΡ‚ΡŒ написаниС ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠΎΠ² события пСрСмСщСния ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ² ΠΏΠΎ Ρ„ΠΎΡ€ΠΌΠ΅ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΌΡ‹ΡˆΠΈ;

ΠœΠΎΠ΄ΡƒΠ»ΡŒ Dialogs для Π²Ρ‹Π·ΠΎΠ²Π° модальной Ρ„ΠΎΡ€ΠΌΡ‹ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ showmessage;

ΠœΠΎΠ΄ΡƒΠ»ΡŒ Windows для создания ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π° FocusRect класса TRect, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΠΎΠ³ΠΎ для отобраТСния ΠΏΡ€ΡΠΌΠΎΡƒΠ³ΠΎΠ»ΡŒΠ½ΠΈΠΊΠ° ΠΏΡ€ΠΈ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Ρ‰Π΅Π½ΠΈΠΈ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ² ΠΏΠΎ Ρ„ΠΎΡ€ΠΌΠ΅ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΌΡ‹ΡˆΠΈ;

ΠœΠΎΠ΄ΡƒΠ»ΡŒ Graphics для Ρ€Π°Π±ΠΎΡ‚Ρ‹ с ΠΊΠ»Π°ΡΡΠΎΠΌ TColor;

ΠœΠΎΠ΄ΡƒΠ»ΠΈ ComCtrls ΠΈ Grids ΠΈΡΠΊΠ»ΡŽΡ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ для создания ΠΏΡ€ΠΈΠΌΠ΅Ρ€ΠΎΠ² ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚, ΠΎΡΡ‚Π°Π»ΡŒΠ½Ρ‹Π΅ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Ρ‹ Π΅ΡΡ‚ΡŒ Π² Ρ€Π°Π½Π΅Π΅ упомянутых модулях.

РСализация ΠΌΠ΅Ρ‚ΠΎΠ΄Π° Drag and Drop для пСрСмСщСния ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ² ΠΏΠΎ Ρ„ΠΎΡ€ΠΌΠ΅;

РСализация сохранСния ΠΈ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ состояния ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π½Π° Ρ„ΠΎΡ€ΠΌΠ΅;

ИзмСнСниС Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… свойств создаваСмых ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ²;

ΠŸΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ справочной ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎ Π²Ρ‹Π±Ρ€Π°Π½Π½ΠΎΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π΅;

ΠŸΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ΅;

Π’Ρ‹Ρ…ΠΎΠ΄ ΠΈΠ· ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹.

3. ОписаниС Π»ΠΎΠ³ΠΈΠΊΠΈ Ρ€Π°Π±ΠΎΡ‚Ρ‹ прилоТСния ΠΈ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния

Π’ Ρ€Π°Π·Ρ€Π°Π±Π°Ρ‚Ρ‹Π²Π°Π΅ΠΌΠΎΠΌ ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ рСализуСтся справочная систСма ΠΏΠΎ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½Ρ‹ΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°ΠΌ Delphi. ΠŸΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΈΠΌΠ΅Π΅Ρ‚ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ ΠΎ Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°Ρ… Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠΈ VLC Delphi, ΡƒΠ²ΠΈΠ΄Π΅Ρ‚ΡŒ ΠΏΡ€ΠΈΠΌΠ΅Ρ€ этих ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚, ΠΈΠ·ΠΌΠ΅Π½ΠΈΡ‚ΡŒ ΠΈΡ… ΡΠ²ΠΎΠΉΡΡ‚Π²Π°, Π° Ρ‚Π°ΠΊΠΆΠ΅ ΡΠΎΡ…Ρ€Π°Π½ΠΈΡ‚ΡŒ Ρ‚Π΅ΠΊΡƒΡ‰Π΅Π΅ состояниС ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ для ΠΏΠΎΡΠ»Π΅Π΄ΡƒΡŽΡ‰Π΅ΠΉ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ.

Π’ Ρ„Π°ΠΉΠ», ΠΏΡ€ΠΈ условии наличия ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π° ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Ρ‹ Π½Π° Ρ„ΠΎΡ€ΠΌΠ΅, ΡΠΎΡ…Ρ€Π°Π½ΡΡŽΡ‚ΡΡ значСния Π΅Π³ΠΎ ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚ ΠΈ Ρ€Π°Π·ΠΌΠ΅Ρ€Ρ‹ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π°. ΠŸΡ€ΠΈ отсутствии ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π° Π² Ρ„Π°ΠΉΠ» записываСтся Π½Π° ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰Π΅Π΅ мСсто ноль. Алгоритм Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠΈ производится Π² ΠΎΠ±Ρ€Π°Ρ‚Π½ΠΎΠΌ порядкС.

Листинг ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ ΠΏΡ€ΠΈΠ²Π΅Π΄Π΅Π½ Π² ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ А.

Π’ ΠΏΡ€ΠΎΡ†Π΅ΡΡΠ΅ создания ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния Π±Ρ‹Π»ΠΈ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π½Ρ‹ ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Ρ‹ ΠΈ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ, ΠΏΡ€ΠΈΠ²Π΅Π΄Ρ‘Π½Π½Ρ‹Π΅ Π² Ρ‚Π°Π±Π»ΠΈΡ†Π΅ 1.

Π’Π°Π±Π»ΠΈΡ†Π° 1.

Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΡ‹Π΅ ΠΌΠ΅Ρ‚ΠΎΠ΄Ρ‹.

ΠŸΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Π°

ОписаниС

procedure ListBox1Click

ΠŸΡ€ΠΈ Π½Π°ΠΆΠ°Ρ‚ΠΈΠΈ Π½Π° ΡΠ»Π΅ΠΌΠ΅Π½Ρ‚ списка создаётся ΠΈΠ»ΠΈ удаляСтся ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ (ΠΏΡ€ΠΈ Π°ΠΊΡ‚ΠΈΠ²ΠΈΡ€ΠΎΠ²Π°Π½Π½ΠΎΠΌ ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Ρ‚Π΅Π»Π΅ CheckBox1 Ρ‚Π°ΠΊΠΆΠ΅ показываСтся справка ΠΎ Π½Ρ‘ΠΌ).

procedure SetProperties

ΠŸΡ€ΠΈΡΠ²Π°Π΅Π²Π°Π΅Ρ‚ свойству Text ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Edit1, Edit2, Edit3, Edid4 ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠ΅ свойства Π²Ρ‹Π±Ρ€Π°Π½Π½ΠΎΠ³ΠΎ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°.

procedure ComponentMouseDown

ΠžΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊ события наТатия ΠΊΠ½ΠΎΠΏΠΊΠΎΠΉ ΠΌΡ‹ΡˆΠΈ Π½Π° ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π΅ для ΠΏΠΎΡΠ»Π΅Π΄ΡƒΡŽΡ‰Π΅Π³ΠΎ Π΅Π³ΠΎ пСрСмСщСния.

procedure ComponentMouseMove

ΠžΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊ события пСрСмСщСния ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π° ΠΏΠΎ ΠΎΠ³Ρ€Π°Π½ΠΈΡ‡Π΅Π½Π½ΠΎΠΉ области Ρ„ΠΎΡ€ΠΌΡ‹ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΌΡ‹ΡˆΠΈ.

procedure ComponentMouseUp

ΠžΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊ события прСкращСия пСрСмСщСния ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π° ΠΏΠΎ Ρ„ΠΎΡ€ΠΌΠ΅.

procedure Button1Click

ΠŸΡ€ΠΈΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ ΠΊ Π²Ρ‹Π±Ρ€Π°Π½Π½ΠΎΠΌΡƒ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Ρƒ свойств, Π·Π°Π΄Π°Π½Π½Ρ‹Ρ… Π² Edi1, Edit2, Edit3, Edid4.

procedure BitBtn4Click

Π’Ρ‹Ρ…ΠΎΠ΄ ΠΈΠ· ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹

procedure BitBtn5Click

Π’Ρ‹Π·ΠΎΠ² модальной Ρ„ΠΎΡ€ΠΌΡ‹, ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°ΡŽΡ‰Π΅ΠΉ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ ΠΎ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ΅

procedure BitBtn1Click

Π‘ΠΎΡ…Ρ€Π°Π½Π΅Π½ΠΈΠ΅ Ρ‚Π΅ΠΊΡƒΡ‰Π΅Π³ΠΎ состояния ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ Π² Ρ„Π°ΠΉΠ»

procedure BitBtn3Click

Кнопка, Π²Ρ‹Π·Ρ‹Π²Π°ΡŽΡ‰Π°Ρ ΠΏΡ€ΠΎΡ†Π΅Π΄ΡƒΡ€Ρƒ clear_all

procedure BitBtn2Click

Π£Π΄Π°Π»Π΅Π½ΠΈΠ΅ всСх созданных ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΌ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ² ΠΈ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠ° полоТСния ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π½Π° Ρ„ΠΎΡ€ΠΌΠ΅ ΠΈΠ· Ρ„Π°ΠΉΠ»Π°

procedure clear_all

УдаляСт созданныС ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΌ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Ρ‹ с Ρ„ΠΎΡ€ΠΌΡ‹.

4. ОписаниС ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΎΠ³ΠΎ интСрфСйса

Π’ ΠΈΠ½Ρ‚СрфСйсС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‚ΡΡ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Ρ‹ Delphi: Label, Button, BitBtn, Edit, ListBox, CheckBox, Shape, StatusBar.

Label — ΠΏΡ€Π΅Π΄Π½Π°Π·Π½Π°Ρ‡Π΅Π½ для отобраТСния статичСского тСкста, Ρ‚ΠΎ Π΅ΡΡ‚ΡŒ надписСй ΠΈ ΠΌΠ΅Ρ‚ΠΎΠΊ Π½Π° Ρ„ΠΎΡ€ΠΌΠ΅, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ Π½Π΅ ΠΌΠ΅Π½ΡΡŽΡ‚ся Π² Ρ‚Π΅Ρ‡Π΅Π½ΠΈΠ΅ всСго Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ Ρ€Π°Π±ΠΎΡ‚Ρ‹ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹.

Button ΠΈ BitBtn — ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ΡΡ для Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ Π² ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ΅ ΠΊΠΎΠΌΠ°Π½Π΄ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠ° события OnClick этого ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°.

Edit — ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ΡΡ для Π²Π²ΠΎΠ΄Π° — Π²Ρ‹Π²ΠΎΠ΄Π° тСкстовой ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ.

ListBox — Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌ для Π²Ρ‹Π±ΠΎΡ€Π° ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°, с ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΌ ΠΎΠ½ Ρ…ΠΎΡ‚Π΅Π» Π±Ρ‹ ΠΎΠ·Π½Π°ΠΊΠΎΠΌΠΈΡ‚ΡŒΡΡ.

CheckBox — нСзависимый ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Ρ‚Π΅Π»ΡŒ, ΠΏΡ€Π΅Π΄Π½Π°Π·Π½Π°Ρ‡Π΅Π½Π½Ρ‹ΠΉ для ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠΈ Ρ€Π΅ΡˆΠ΅Π½ΠΈΡ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ Ρ‚ΠΈΠΏΠ° Π”Π°/НСт.

Shape — Π΄Π°Π½Π½Ρ‹ΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ Π±Ρ‹Π» использован для Ρ‚ΠΎΠ³ΠΎ, Ρ‡Ρ‚ΠΎΠ±Ρ‹ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½ΠΎ ΠΎΠ³Ρ€Π°Π½ΠΈΡ‡ΠΈΡ‚ΡŒ ΠΎΠ±Π»Π°ΡΡ‚ΡŒ, Π² ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΉ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΌΠΎΠΆΠ΅Ρ‚ Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ с ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π°ΠΌΠΈ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚.

StatusBar — ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ΡΡ для отобраТСния ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚Ρ‹ курсора ΠΏΡ€ΠΈ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Ρ‰Π΅Π½ΠΈΠΈ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Ρ‹ ΠΏΠΎ Ρ„ΠΎΡ€ΠΌΠ΅.

ΠŸΡ€ΠΈ запускС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΏΠΎΠΏΠ°Π΄Π°Π΅Ρ‚ Π½Π° ΡΠ»Π΅Π΄ΡƒΡŽΡ‰ΡƒΡŽ Ρ„ΠΎΡ€ΠΌΡƒ:

Рис. 1. Запуск ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°.

Π”Π°Π»Π΅Π΅, Ссли ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ Π°ΠΊΡ‚ΠΈΠ²ΠΈΡ€ΠΎΠ²Π°Π» ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Ρ‚Π΅Π»ΡŒ «ΠŸΠΎΠΊΠ°Π·Ρ‹Π²Π°Ρ‚ΡŒ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ», ΠΏΡ€ΠΈ Π½Π°ΠΆΠ°Ρ‚ΠΈΠΈ Π½Π° ΠΎΠ΄ΠΈΠ½ ΠΈΠ· ΡΠ»Π΅ΠΌΠ΅Π½Ρ‚ΠΎΠ² списка происходит запуск модальной Ρ„ΠΎΡ€ΠΌΡ‹ с ΠΊΡ€Π°Ρ‚ΠΊΠΈΠΌ описаниСм Π²Ρ‹Π±Ρ€Π°Π½Π½ΠΎΠ³ΠΎ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°, Π° Ρ‚Π°ΠΊΠΆΠ΅ созданиС этого ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π° Π½Π° Ρ„ΠΎΡ€ΠΌΠ΅. Если ΠΏΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π°Ρ‚Π΅Π»ΡŒ Π½Π΅ Π±Ρ‹Π» Π°ΠΊΡ‚ΠΈΠ²ΠΈΡ€ΠΎΠ²Π°Π½, Ρ‚ΠΎ ΠΌΠΎΠ΄Π°Π»ΡŒΠ½Π°Ρ Ρ„ΠΎΡ€ΠΌΠ° Π½Π΅ Π·Π°ΠΏΡƒΡΠΊΠ°Π΅Ρ‚ся.

Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½Ρ‹ΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ язык ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Рис. 2. НаТатиС Π½Π° ΡΠ»Π΅ΠΌΠ΅Π½Ρ‚ списка.

ПоявившиСся ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Ρ‹ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΌΠΎΠΆΠ΅Ρ‚ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Ρ‰Π°Ρ‚ΡŒ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΌΡ‹ΡˆΠΈ ΠΏΠΎ Ρ„ΠΎΡ€ΠΌΠ΅ Π² Ρ€Π°Π·Ρ€Π΅ΡˆΠ΅Π½Π½Ρ‹Ρ… ΠΏΡ€Π΅Π΄Π΅Π»Π°Ρ…, ΠΈΠ·ΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΡ… ΡΠ²ΠΎΠΉΡΡ‚Π²Π° примСняя измСнСния Π½Π°ΠΆΠ°Ρ‚ΠΈΠ΅ΠΌ Π½Π° ΠΊΠΏΠΎΠΏΠΊΡƒ «Apply». ΠŸΡ€ΠΈ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Ρ‰Π΅Π½ΠΈΠΈ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Π°, ΠΎΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ°ΡŽΡ‚ΡΡ ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚Ρ‹ курсора Рис. 3. ИзмСнСниС свойств ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ².

ΠŸΡ€ΠΈ Ρ€Π°Π±ΠΎΡ‚Π΅ с ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΎΠΉ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ ΠΌΠΎΠΆΠ΅Ρ‚ ΡΠΎΡ…Ρ€Π°Π½ΠΈΡ‚ΡŒ ΠΈΠ»ΠΈ Π·Π°Π³Ρ€ΡƒΠ·ΠΈΡ‚ΡŒ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ ΠΈ ΡΠ²ΠΎΠΉΡΡ‚Π²Π° находящихся Π½Π° Ρ„ΠΎΡ€ΠΌΠ΅ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ² ΠΊΠ»ΠΈΠΊΠ½ΡƒΠ² Π½Π° ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΡ… ΠΊΠ½ΠΎΠΏΠΊΠ°Ρ… «Save» ΠΈ «Load». ΠŸΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ Ρ‚Π°ΠΊΠΆΠ΅ ΠΌΠΎΠΆΠ΅Ρ‚ ΠΎΡ‡ΠΈΡΡ‚ΠΈΡ‚ΡŒ ΠΏΠΎΠ»Π΅ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΊΠ½ΠΎΠΏΠΊΠΈ «Clear» ΠΎΡ‚ Π²ΡΠ΅Ρ… созданных ΠΈΠΌ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ ΠΈΠ»ΠΈ Π²Ρ€ΡƒΡ‡Π½ΡƒΡŽ ΡƒΠ΄Π°Π»ΡΡ‚ΡŒ ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΈΠ· Π½ΠΈΡ… ΠΏΠΎΠ²Ρ‚ΠΎΡ€Π½ΠΎ Π½Π°ΠΆΠ°Π² Π½Π° ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ элСмСнт списка; ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ ΠΎ ΡΠ°ΠΌΠΎΠΌ ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΊΠ½ΠΎΠΏΠΊΠΈ «About»; Π²Ρ‹ΠΉΡ‚ΠΈ ΠΈΠ· ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ Π½Π°ΠΆΠ°Π² Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡƒ «Quit» .

Рис. 4. О ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ΅.

Π—Π°ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅

ЦСлью курсовой Ρ€Π°Π±ΠΎΡ‚Ρ‹ Π±Ρ‹Π»ΠΎ ΠΈΠ·ΡƒΡ‡Π΅Π½ΠΈΠ΅ языка программирования Delphi ΠΈ ΡƒΠ»ΡƒΡ‡ΡˆΠ΅Π½ΠΈΠ΅ практичСских Π·Π°Π΄Π°Π½ΠΈΠΉ.

Π’ Ρ…ΠΎΠ΄Π΅ курсовой Ρ€Π°Π±ΠΎΡ‚Ρ‹ Π±Ρ‹Π»ΠΎ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π½ΠΎ ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅, ΠΏΠΎΠ·Π²ΠΎΠ»ΡΡŽΡ‰Π΅Π΅ ΠΏΠΎΠ»ΡƒΡ‡Π°Ρ‚ΡŒ ΡΠΏΡ€Π°Π²ΠΎΡ‡Π½ΡƒΡŽ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡŽ ΠΎ Π²ΠΈΠ·ΡƒΠ°Π»ΡŒΠ½Ρ‹Ρ… ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°Ρ… Delphi. Π’ Π½Ρ‘ΠΌ Π±Ρ‹Π» Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Π½ ΠΌΠ΅Ρ‚ΠΎΠ΄ Drag and Drop, сохранСниС ΠΈ Π·Π°Π³Ρ€ΡƒΠ·ΠΊΠ° Π΄Π°Π½Π½Ρ‹Ρ…, ΠΎΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚ курсора, ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… свойств создаваСмых ΠΎΠ±ΡŠΠ΅ΠΊΡ‚ΠΎΠ², ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Π½Ρ‹ ΠΎΠ±ΡŠΠ΅ΠΊΡ‚Ρ‹ классов TForm, TLabel, TEdit, TButton, TBitBtn, TShape, TCheckBox, TListBox, TStatusBar, TColorBox. Для отобраТСния справочной ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ использовались ΠΌΠΎΠ΄Π°Π»ΡŒΠ½Ρ‹Π΅ Ρ„ΠΎΡ€ΠΌΡ‹, информация Π² ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ загруТаСтся ΠΈΠ· ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰Π΅Π³ΠΎ Ρ„Π°ΠΉΠ»Π°.

1. ΠΡ€Ρ…Π°Π½Π³Π΅Π»ΡŒΡΠΊΠΈΠΉ А. Π―. ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π² Delphi: Π£Ρ‡Π΅Π±Π½ΠΈΠΊ ΠΏΠΎ ΠΊΠ»Π°ΡΡΠΈΡ‡Π΅ΡΠΊΠΈΠΌ вСрсиям Delphi. — Πœ.: Π‘ΠΈΠ½ΠΎΠΌ, 2011.

2. Π”ΠΌΠΈΡ‚Ρ€ΠΈΠΉ Осипов. Delphi. ΠŸΡ€ΠΎΡ„Π΅ΡΡΠΈΠΎΠ½Π°Π»ΡŒΠ½ΠΎΠ΅ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅. — 2008

3. Π€Π°Ρ€ΠΎΠ½ΠΎΠ² Π’. Π’. Delphi. ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ Π½Π° ΡΠ·Ρ‹ΠΊΠ΅ высокого уровня: Π£Ρ‡Π΅Π±Π½ΠΈΠΊ для Π²ΡƒΠ·ΠΎΠ² — Π‘ΠΏΠ±.: Π›ΠΈΠ΄Π΅Ρ€, 2010.

4. Π‘ΠΏΡ€Π°Π²ΠΎΡ‡Π½ΠΈΠΊ ΠžΡΠ½ΠΎΠ²Ρ‹ Delphi URL — http://delphibasics.ru/

5. Бвободная ΠΈΠ½Ρ‚Π΅Ρ€Π½Π΅Ρ‚-энциклопСдия Wikipedia. URL — http://ru. wikipedia.org/

ΠŸΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ

ΠŸΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅, А (ΠΎΠ±ΡΠ·Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎΠ΅)

Листинг ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹

unit main;

interface

uses

Windows, SysUtils, Graphics, Controls, Forms, Dialogs, Grids,

Buttons, StdCtrls, ComCtrls, ExtCtrls, Classes;

type

TForm1 = class (TForm)

ListBox1: TListBox;

Edit1: TEdit;

Edit2: TEdit;

Edit3: TEdit;

Edit4: TEdit;

Label1: TLabel;

Label2: TLabel;

Label3: TLabel;

Label4: TLabel;

Label5: TLabel;

Button1: TButton;

BitBtn1: TBitBtn;

BitBtn2: TBitBtn;

BitBtn3: TBitBtn;

BitBtn4: TBitBtn;

BitBtn5: TBitBtn;

Shape1: TShape;

Shape2: TShape;

CheckBox1: TCheckBox;

Label6: TLabel;

StatusBar1: TStatusBar;

ColorBox1: TColorBox;

Label7: TLabel;

procedure ListBox1Click (Sender: TObject);

procedure SetProperties (Sender: TObject);

procedure ComponentMouseDown (Sender: TObject; Button: TMouseButton;

Shift: TShiftState; X, Y: Integer);

procedure ComponentMouseMove (Sender: TObject; Shift: TShiftState; X,

Y: Integer);

procedure ComponentMouseUp (Sender: TObject; Button: TMouseButton;

Shift: TShiftState; X, Y: Integer);

procedure Button1Click (Sender: TObject);

procedure BitBtn4Click (Sender: TObject);

procedure BitBtn5Click (Sender: TObject);

procedure BitBtn1Click (Sender: TObject);

procedure BitBtn3Click (Sender: TObject);

procedure BitBtn2Click (Sender: TObject);

procedure clear_all;

private

{ Private declarations }

public

{ Public declarations }

end;

var

Form1: TForm1;

implementation

{$R *. dfm}

var

button: TButton; // 1

textBox: TEdit; // 2

checkBox: TCheckBox; // 3

radio: TRadioButton; // 4

panel: TPanel; // 5

progress: TProgressBar; // 6

bitBtn: TBitBtn; // 7

labelBox: TLabel; // 8

labeledEdit: TLabeledEdit; // 9

groupBox: TGroupBox; // 10

memoBox: TMemo; // 11

speedBtn: TSpeedButton; // 12

shape: TShape; // 13

staticText: TStaticText; // 14

stringGrid: TStringGrid; // 15

Dragg: boolean;

XOffset, YOffset: integer;

FocusRect: TRect;

Selected_Component: TControl;

last: integer;

procedure TForm1. SetProperties (Sender: TObject);

begin

Edit1. Text: = IntToStr ((Sender as TControl). Left);

Edit2. Text: = IntToStr ((Sender as TControl). Top);

Edit3. Text: = IntToStr ((Sender as TControl). Height);

Edit4. Text: = IntToStr ((Sender as TControl). Width);

case last of

1: ColorBox1. Selected: =button. Font. Color;

2: ColorBox1. Selected: =textBox. Font. Color;

// 3:

// 4:

5: ColorBox1. Selected: =panel. Font. Color;

// 6:

7: ColorBox1. Selected: =bitBtn. Font. Color;

8: ColorBox1. Selected: =labelBox. Font. Color;

9: ColorBox1. Selected: =labeledEdit. Font. Color;

10: ColorBox1. Selected: =groupBox. Font. Color;

11: ColorBox1. Selected: =memoBox. Font. Color;

// 12:

// 13:

// 14:

// 15:

end;

end;

procedure TForm1. ListBox1Click (Sender: TObject);

var x, y: integer; h: textfile; shelp: AnsiString;

begin

x: = 200;

y: = 200;

if listbox1. Selected then begin // Button

if checkbox1. Checked then begin

AssignFile (h,'h1. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (button)) then begin

button: = TButton. Create (Form1);

button. Parent: = Form1;

button. Left: = x;

button. Top: = y;

button. Visible: = True;

last: =1;

button. Height: = 30;

button. Width: = 80;

button. Name: = 'Button';

button. OnMouseDown: = ComponentMouseDown;

button. OnMouseMove: = ComponentMouseMove;

button. OnMouseUp: = ComponentMouseUp;

SetProperties (button);

end

else begin button. Destroy; button: =nil; exit; end; end;

if listbox1. Selected then begin // Edit

if checkbox1. Checked then begin

AssignFile (h,'h2. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (textBox)) then begin

textBox: = TEdit. Create (Form1);

textBox. Parent: = Form1;

textBox. Left: = x;

textBox. Top: = y;

textBox. Visible: = True;

last: =2;

textBox. Height: = 30;

textBox. Width: = 60;

textBox. Name: = 'Edit';

textBox. OnMouseDown: = ComponentMouseDown;

textBox. OnMouseMove: = ComponentMouseMove;

textBox. OnMouseUp: = ComponentMouseUp;

SetProperties (textBox);

end

else begin textBox. Destroy; textBox: =nil; exit; end; end;

if listbox1. Selected then begin // CheckBox

if checkbox1. Checked then begin

AssignFile (h,'h3. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (checkBox)) then begin

checkBox: = TCheckBox. Create (Form1);

checkBox. Parent: = Form1;

checkBox. Left: = x;

checkBox. Top: = y;

checkBox. Visible: = True;

last: =3;

checkBox. Height: = 30;

checkBox. Width: = 80;

checkBox. Name: = 'CheckBox';

checkBox. OnMouseDown: = ComponentMouseDown;

checkBox. OnMouseMove: = ComponentMouseMove;

checkBox. OnMouseUp: = ComponentMouseUp;

SetProperties (checkBox);

end

else begin checkBox. Destroy; checkBox: =nil; exit; end; end;

if listbox1. Selected then begin // RadioButton

if checkbox1. Checked then begin

AssignFile (h,'h4. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (radio)) then begin

radio: = TRadioButton. Create (Form1);

radio. Parent: = Form1;

radio. Left: = x;

radio. Top: = y;

radio. Visible: = True;

last: =4;

radio. Height: = 30;

radio. Width: = 80;

radio. Name: = 'RadioButton';

radio. OnMouseDown: = ComponentMouseDown;

radio. OnMouseMove: = ComponentMouseMove;

radio. OnMouseUp: = ComponentMouseUp;

SetProperties (radio);

end

else begin radio. Destroy; radio: =nil; exit; end; end;

if listbox1. Selected then begin // Panel

if checkbox1. Checked then begin

AssignFile (h,'h5. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (panel)) then begin

panel: = TPanel. Create (Form1);

panel. Parent: = Form1;

panel. Left: = x;

panel. Top: = y;

panel. Visible: = True;

last: =5;

panel. Height: = 30;

panel. Width: = 80;

panel. Name: = 'Panel';

panel. OnMouseDown: = ComponentMouseDown;

panel. OnMouseMove: = ComponentMouseMove;

panel. OnMouseUp: = ComponentMouseUp;

SetProperties (panel);

end

else begin panel. Destroy; panel: =nil; exit; end; end;

if listbox1. Selected then begin // ProgressBar

if checkbox1. Checked then begin

AssignFile (h,'h6. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (progress)) then begin

progress: = TProgressBar. Create (Form1);

progress. Parent: = Form1;

progress. Left: = x;

progress. Top: = y;

progress. Visible: = True;

last: =6;

progress. Height: = 30;

progress. Width: = 80;

progress. Name: = 'ProgressBar';

progress. OnMouseDown: = ComponentMouseDown;

progress. OnMouseMove: = ComponentMouseMove;

progress. OnMouseUp: = ComponentMouseUp;

SetProperties (progress);

end

else begin progress. Destroy; progress: =nil; exit; end; end;

if listbox1. Selected then begin // BitBtn

if checkbox1. Checked then begin

AssignFile (h,'h7. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (bitBtn)) then begin

bitBtn: = TBitBtn. Create (Form1);

bitBtn. Parent: = Form1;

bitBtn. Left: = x;

bitBtn. Top: = y;

bitBtn. Visible: = True;

last: =7;

bitBtn. Height: = 30;

bitBtn. Width: = 80;

bitBtn. Name: = 'BitButton';

bitBtn. OnMouseDown: = ComponentMouseDown;

bitBtn. OnMouseMove: = ComponentMouseMove;

bitBtn. OnMouseUp: = ComponentMouseUp;

SetProperties (bitBtn);

end

else begin bitBtn. Destroy; bitBtn: =nil; exit; end; end;

if listbox1. Selected then begin // Label

if checkbox1. Checked then begin

AssignFile (h,'h8. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (labelBox)) then begin

labelBox: = TLabel. Create (Form1);

labelBox. Parent: = Form1;

labelBox. Left: = x;

labelBox. Top: = y;

labelBox. Visible: = True;

last: =8;

labelBox. Height: = 130;

labelBox. Width: = 80;

labelBox. Name: = 'Label';

labelBox. OnMouseDown: = ComponentMouseDown;

labelBox. OnMouseMove: = ComponentMouseMove;

labelBox. OnMouseUp: = ComponentMouseUp;

SetProperties (labelBox);

end

else begin labelBox. Destroy; labelBox: =nil; exit; end; end;

if listbox1. Selected then begin // labeledEdit

if checkbox1. Checked then begin

AssignFile (h,'h9. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (labeledEdit)) then begin

labeledEdit: = TLabeledEdit. Create (Form1);

labeledEdit. Parent: = Form1;

labeledEdit. Left: = x + 60;

labeledEdit. Top: = y;

labeledEdit. Visible: = True;

last: =9;

labeledEdit. Height: = 30;

labeledEdit. Width: = 80;

labeledEdit. Name: = 'LabeledEdit';

labeledEdit. EditLabel. Caption: = 'LabeledEdit';

labeledEdit. OnMouseDown: = ComponentMouseDown;

labeledEdit. OnMouseMove: = ComponentMouseMove;

labeledEdit. OnMouseUp: = ComponentMouseUp;

SetProperties (labeledEdit);

end

else begin labeledEdit. Destroy; labeledEdit: =nil; exit; end; end;

if listbox1. Selected then begin // GroupBox

if checkbox1. Checked then begin

AssignFile (h,'h10. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (groupBox)) then begin

groupBox: = TGroupBox. Create (Form1);

groupBox. Parent: = Form1;

groupBox. Left: = x;

groupBox. Top: = y;

groupBox. Visible: = True;

last: =10;

groupBox. Height: = 130;

groupBox. Width: = 80;

groupBox. Name: = 'GroupBox';

groupBox. OnMouseDown: = ComponentMouseDown;

groupBox. OnMouseMove: = ComponentMouseMove;

groupBox. OnMouseUp: = ComponentMouseUp;

SetProperties (groupBox);

end

else begin groupBox. Destroy; groupBox: =nil; exit; end; end;

if listbox1. Selected then begin // Memo

if checkbox1. Checked then begin

AssignFile (h,'h11. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (memoBox)) then begin

memoBox: = TMemo. Create (Form1);

memoBox. Parent: = Form1;

memoBox. Left: = x;

memoBox. Top: = y;

memoBox. Visible: = True;

last: =11;

memoBox. Height: = 80;

memoBox. Width: = 80;

memoBox. Name: = 'Memo';

memoBox. OnMouseDown: = ComponentMouseDown;

memoBox. OnMouseMove: = ComponentMouseMove;

memoBox. OnMouseUp: = ComponentMouseUp;

SetProperties (memoBox);

end

else begin memoBox. Destroy; memoBox: =nil; exit; end; end;

if listbox1. Selected then begin // SpeedButton

if checkbox1. Checked then begin

AssignFile (h,'h12. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (speedBtn)) then begin

speedBtn: = TSpeedButton. Create (Form1);

speedBtn. Parent: = Form1;

speedBtn. Left: = x;

speedBtn. Top: = y;

speedBtn. Visible: = True;

last: =12;

speedBtn. Height: = 30;

speedBtn. Width: = 80;

speedBtn. Name: = 'SpeedButton';

speedBtn. OnMouseDown: = ComponentMouseDown;

speedBtn. OnMouseMove: = ComponentMouseMove;

speedBtn. OnMouseUp: = ComponentMouseUp;

SetProperties (speedBtn);

end

else begin speedBtn. Destroy; speedBtn: =nil; exit; end; end;

if listbox1. Selected then begin // Shape

if checkbox1. Checked then begin

AssignFile (h,'h13. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (shape)) then begin

shape: = TShape. Create (Form1);

shape. Parent: = Form1;

shape. Left: = x;

shape. Top: = y;

shape. Visible: = True;

last: =13;

shape. Height: = 30;

shape. Width: = 80;

shape. Name: = 'Shape';

shape. OnMouseDown: = ComponentMouseDown;

shape. OnMouseMove: = ComponentMouseMove;

shape. OnMouseUp: = ComponentMouseUp;

SetProperties (shape);

end

else begin shape. Destroy; shape: =nil; exit; end; end;

if listbox1. Selected then begin // staticText

if checkbox1. Checked then begin

AssignFile (h,'h14. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (staticText)) then begin

staticText: = TStaticText. Create (Form1);

staticText. Parent: = Form1;

staticText. Left: = x;

staticText. Top: = y;

staticText. Visible: = True;

last: =14;

staticText. Height: = 130;

staticText. Width: = 80;

staticText. Name: = 'StaticText';

staticText. OnMouseDown: = ComponentMouseDown;

staticText. OnMouseMove: = ComponentMouseMove;

staticText. OnMouseUp: = ComponentMouseUp;

SetProperties (staticText);

end

else begin staticText. Destroy; staticText: =nil; exit; end; end;

if listbox1. Selected then begin // stringGrid

if checkbox1. Checked then begin

AssignFile (h,'h15. txt');

reset (h);

read (h, shelp);

showmessage (shelp);

closeFile (h);

end;

if not (Assigned (stringGrid)) then begin

stringGrid: = TStringGrid. Create (Form1);

stringGrid. Parent: = Form1;

stringGrid. Left: = x;

stringGrid. Top: = y + 50;

stringGrid. Visible: = True;

last: =15;

stringGrid. Height: = 150;

stringGrid. Width: = 200;

stringGrid. Name: = 'StringGrid';

stringGrid. Col: =3;

stringGrid. Row: =2;

stringGrid. OnMouseDown: = ComponentMouseDown;

stringGrid. OnMouseMove: = ComponentMouseMove;

stringGrid. OnMouseUp: = ComponentMouseUp;

SetProperties (stringGrid);

end

else begin stringGrid. Destroy; stringGrid: =nil; exit; end; end;

end;

procedure TForm1. componentMouseDown (Sender: TObject; Button: TMouseButton;

Shift: TShiftState; X, Y: Integer);

begin

Dragg: = True;

XOffset: = X;

YOffset: = Y;

if Sender. ClassType = TButton then begin colorbox1. Enabled: =false; last: =1;

Selected_Component: = Sender as TButton; end;

if Sender. ClassType = TEdit then begin colorbox1. Enabled: =true; last: =2;

Selected_Component: = Sender as TEdit; end;

if Sender. ClassType = TCheckBox then begin colorbox1. Enabled: =false; last: =3;

Selected_Component: = Sender as TCheckBox; end;

if Sender. ClassType = TRadioButton then begin colorbox1. Enabled: =false; last: =4;

Selected_Component: = Sender as TRadioButton; end;

if Sender. ClassType = TPanel then begin colorbox1. Enabled: =true; last: =5;

Selected_Component: = Sender as TPanel; end;

if Sender. ClassType = TProgressBar then begin colorbox1. Enabled: =false; last: =6;

Selected_Component: = Sender as TProgressBar; end;

if Sender. ClassType = TBitBtn then begin colorbox1. Enabled: =true; last: =7;

Selected_Component: = Sender as TBitBtn; end;

if Sender. ClassType = TLabel then begin colorbox1. Enabled: =true; last: =8;

Selected_Component: = Sender as TLabel; end;

if Sender. ClassType = TLabeledEdit then begin colorbox1. Enabled: =true; last: =9;

Selected_Component: = Sender as TLabeledEdit; end;

if Sender. ClassType = TGroupBox then begin colorbox1. Enabled: =false; last: =10;

Selected_Component: = Sender as TGroupBox; end;

if Sender. ClassType = TMemo then begin colorbox1. Enabled: =true; last: =11;

Selected_Component: = Sender as TMemo; end;

if Sender. ClassType = TSpeedButton then begin colorbox1. Enabled: =false; last: =12;

Selected_Component: = Sender as TSpeedButton; end;

if Sender. ClassType = TShape then begin colorbox1. Enabled: =false; last: =13;

Selected_Component: = Sender as TShape; end;

if Sender. ClassType = TStaticText then begin colorbox1. Enabled: =false; last: =14;

Selected_Component: = Sender as TStaticText; end;

if Sender. ClassType = TStringGrid then begin colorbox1. Enabled: =false; last: =15;

Selected_Component: = Sender as TStringGrid; end;

SetProperties (Selected_Component);

with Selected_Component do

FocusRect: = Rect (Left, Top, Left + Width, Top + Height);

Canvas. DrawFocusRect (FocusRect);

end;

procedure TForm1. componentMouseMove (Sender: TObject; Shift: TShiftState; X,

Y: Integer);

begin

if Dragg then

begin

Canvas. DrawFocusRect (FocusRect);

with FocusRect do

begin

Left: = (Selected_Component. Left + X) — XOffset;

Top: = (Selected_Component. Top + Y) — YOffset;

Right: = Selected_Component. Width + Left;

Bottom: = Selected_Component. Height + Top;

end;

Canvas. DrawFocusRect (FocusRect);

StatusBar1. SimpleText: = 'x = ' + IntToStr ((Selected_Component. Left + X) — XOffset) +

' y = ' + IntToStr ((Selected_Component. Top + Y) — YOffset);

end;

end;

procedure TForm1. componentMouseUp (Sender: TObject; Button: TMouseButton;

Shift: TShiftState; X, Y: Integer);

begin

if Dragg then

begin

Canvas. DrawFocusRect (FocusRect); // Erase Focus Rect

Dragg: = False;

with Selected_Component do

begin

Left: = (Left + X) — XOffset;

Top: = (Top + Y) — YOffset;

if Left<120 then Left: =120;

if Left>900-Width then Left: =900-Width;

if Top<65 then Top: =65;

if Top>440-Height-20 then Top: =440-Height-20;

end;

SetProperties (Selected_Component);

end;

end;

procedure TForm1. Button1Click (Sender: TObject);

var vari: integer;

begin

if (Edit1. Text='') or (Edit2. Text='') or (Edit3. Text='') or (Edit1. Text='') then begin showmessage ('Π’Ρ‹Π±Π΅Ρ€ΠΈΡ‚Π΅ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚! '); Exit; end

else begin

if (not (TryStrToInt (Edit1. Text, vari))) or (not (TryStrToInt (Edit2. Text, vari))) or (not (TryStrToInt (Edit3. Text, vari))) or (not (TryStrToInt (Edit1. Text, vari))) then begin showmessage ('Π’Π²Π΅Π΄ΠΈΡ‚Π΅ Ρ†Π΅Π»ΠΎΠ΅ число! '); Exit; end;

Selected_Component. Left: =StrToInt (Edit1. Text);

Selected_Component. Top: =StrToInt (Edit2. Text);

Selected_Component. Height: =StrToInt (Edit3. Text);

Selected_Component. Width: =StrToInt (Edit4. Text);

if Selected_Component. Left<120 then Selected_Component. Left: =120;

if Selected_Component. Left>900-Selected_Component. Width then Selected_Component. Left: =900-Selected_Component. Width;

if Selected_Component. Top<65 then Selected_Component. Top: =65;

if Selected_Component. Top>440-Selected_Component. Height-20 then Top: =440-Selected_Component. Height-20;

case last of

2: begin textBox. Font. Color: =ColorBox1. Selected; end;

5: begin panel. Font. Color: =ColorBox1. Selected; end;

7: begin bitBtn. Font. Color: =ColorBox1. Selected; end;

8: begin labelBox. Font. Color: =ColorBox1. Selected; end;

9: begin labeledEdit. Font. Color: =ColorBox1. Selected; end;

11: begin memoBox. Font. Color: =ColorBox1. Selected; end;

else ColorBox1. enabled: =false;

end;

end;

SetProperties (Selected_Component);

end;

procedure TForm1. BitBtn4Click (Sender: TObject);

begin

Form1. Close;

end;

procedure TForm1. BitBtn1Click (Sender: TObject);

var f: textfile;

begin

AssignFile (f,{GetCurrentDir+}'save. txt');

Rewrite (f);

if Assigned (button) then // 1

begin

writeln (f, button. Top);

writeln (f, button. Left);

writeln (f, button. Height);

writeln (f, button. Width);

end

else writeln (f,'0');

if (Assigned (textBox)) and (textBox. Visible) then // 2

begin

writeln (f, textBox. Top);

writeln (f, textBox. Left);

writeln (f, textBox. Height);

writeln (f, textBox. Width);

writeln (f, textBox. Font. Color);

end

else writeln (f,'0');

if (Assigned (checkBox)) and (checkBox. Visible) then // 3

begin

writeln (f, checkBox. Top);

writeln (f, checkBox. Left);

writeln (f, checkBox. Height);

writeln (f, checkBox. Width);

end

else writeln (f,'0');

if (Assigned (radio)) and (radio. Visible) then // 4

begin

writeln (f, radio. Top);

writeln (f, radio. Left);

writeln (f, radio. Height);

writeln (f, radio. Width);

end

else writeln (f,'0');

if (Assigned (panel)) and (panel. Visible) then // 5

begin

writeln (f, panel. Top);

writeln (f, panel. Left);

writeln (f, panel. Height);

writeln (f, panel. Width);

writeln (f, panel. Font. Color);

end

else writeln (f,'0');

if (Assigned (progress)) and (progress. Visible) then // 6

begin

writeln (f, progress. Top);

writeln (f, progress. Left);

writeln (f, progress. Height);

writeln (f, progress. Width);

end

else writeln (f,'0');

if (Assigned (bitBtn)) and (bitBtn. Visible) then // 7

begin

writeln (f, bitBtn. Top);

writeln (f, bitBtn. Left);

writeln (f, bitBtn. Height);

writeln (f, bitBtn. Width);

writeln (f, bitBtn. Font. Color);

end

else writeln (f,'0');

if (Assigned (labelBox)) and (labelBox. Visible) then // 8

begin

writeln (f, labelBox. Top);

writeln (f, labelBox. Left);

writeln (f, labelBox. Height);

writeln (f, labelBox. Width);

writeln (f, labelBox. Font. Color);

end

else writeln (f,'0');

if (Assigned (labeledEdit)) and (labeledEdit. Visible) then // 9

begin

writeln (f, labeledEdit. Top);

writeln (f, labeledEdit. Left);

writeln (f, labeledEdit. Height);

writeln (f, labeledEdit. Width);

writeln (f, labeledEdit. Font. Color);

end

else writeln (f,'0');

if (Assigned (groupBox)) and (groupBox. Visible) then // 10

begin

writeln (f, groupBox. Top);

writeln (f, groupBox. Left);

writeln (f, groupBox. Height);

writeln (f, groupBox. Width);

end

else writeln (f,'0');

if (Assigned (memoBox)) and (memoBox. Visible) then // 11

begin

writeln (f, memoBox. Top);

writeln (f, memoBox. Left);

writeln (f, memoBox. Height);

writeln (f, memoBox. Width);

writeln (f, memoBox. Font. Color);

end

else writeln (f,'0');

if (Assigned (speedBtn)) and (speedBtn. Visible) then // 12

begin

writeln (f, speedBtn. Top);

writeln (f, speedBtn. Left);

writeln (f, speedBtn. Height);

writeln (f, speedBtn. Width);

end

else writeln (f,'0');

if (Assigned (shape)) and (shape. Visible) then // 13

begin

writeln (f, shape. Top);

writeln (f, shape. Left);

writeln (f, shape. Height);

writeln (f, shape. Width);

end

else writeln (f,'0');

if (Assigned (staticText)) and (staticText. Visible) then // 14

begin

writeln (f, staticText. Top);

writeln (f, staticText. Left);

writeln (f, staticText. Height);

writeln (f, staticText. Width);

end

else writeln (f,'0');

if (Assigned (stringGrid)) and (stringGrid. Visible) then // 15

begin

writeln (f, stringGrid. Top);

writeln (f, stringGrid. Left);

writeln (f, stringGrid. Height);

writeln (f, stringGrid. Width);

end

else writeln (f,'0');

CloseFile (f);

end;

procedure TForm1. clear_all;

begin

Edit1. Text: =''; Edit2. Text: =''; Edit3. Text: =''; Edit4. Text: ='';

if Assigned (button) then begin button. Destroy; button: =nil; end;

if Assigned (textBox) then begin textBox. Destroy; textBox: =nil; end;

if Assigned (checkBox) then begin checkBox. Destroy; checkBox: =nil; end;

if Assigned (radio) then begin radio. Destroy; radio: =nil; end;

if Assigned (panel) then begin panel. Destroy; panel: =nil; end;

if Assigned (progress) then begin progress. Destroy; progress: =nil; end;

if Assigned (bitBtn) then begin bitBtn. Destroy; bitBtn: =nil; end; // 7

if Assigned (labelBox) then begin labelBox. Destroy; labelBox: =nil; end;

if Assigned (labeledEdit) then begin labeledEdit. Destroy; labeledEdit: =nil; end;

if Assigned (groupBox) then begin groupBox. Destroy; groupBox: =nil; end; // 10

if Assigned (memoBox) then begin memoBox. Destroy; memoBox: =nil; end; // 11

if Assigned (speedBtn) then begin speedBtn. Destroy; speedBtn: =nil; end; // 12

if Assigned (shape) then begin shape. Destroy; shape: =nil; end; // 13

if Assigned (staticText) then begin staticText. Destroy; staticText: =nil; end; // 14

if Assigned (stringGrid) then begin stringGrid. Destroy; stringGrid: =nil; end; // 15

end;

procedure TForm1. BitBtn3Click (Sender: TObject);

begin

clear_all;

end;

procedure TForm1. BitBtn2Click (Sender: TObject);

var f: textfile; tmp: integer; sig: TColor;

begin

clear_all;

AssignFile (f,{GetCurrentDir+}'save. txt');

Reset (f);

readln (f, tmp);

if tmp<>0 then begin // button

if NOT (Assigned (button)) then begin

button: = TButton. Create (Form1);

button. Parent: = Form1;

button. OnMouseDown: = ComponentMouseDown;

button. OnMouseMove: = ComponentMouseMove;

button. OnMouseUp: = ComponentMouseUp;

button. Name: = 'Button';

end;

button. Top: =tmp;

readln (f, tmp);

button. Left: =tmp;

readln (f, tmp);

button. Height: =tmp;

readln (f, tmp);

button. Width: =tmp;

// SetProperties (button);

button. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // textBox

if NOT (Assigned (textBox)) then begin

textBox: = TEdit. Create (Form1);

textBox. Parent: = Form1;

textBox. OnMouseDown: = ComponentMouseDown;

textBox. OnMouseMove: = ComponentMouseMove;

textBox. OnMouseUp: = ComponentMouseUp;

textBox. Name: = 'TextBox';

end;

textBox. Top: =tmp;

readln (f, tmp);

textBox. Left: =tmp;

readln (f, tmp);

textBox. Height: =tmp;

readln (f, tmp);

textBox. Width: =tmp;

readln (f, sig);

textBox. Font. Color: =sig;

// SetProperties (textBox);

textBox. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // checkBox

if NOT (Assigned (checkBox)) then begin

checkBox: = TCheckBox. Create (Form1);

checkBox. Parent: = Form1;

checkBox. OnMouseDown: = ComponentMouseDown;

checkBox. OnMouseMove: = ComponentMouseMove;

checkBox. OnMouseUp: = ComponentMouseUp;

checkBox. Name: = 'CheckBox';

end;

checkBox. Top: =tmp;

readln (f, tmp);

checkBox. Left: =tmp;

readln (f, tmp);

checkBox. Height: =tmp;

readln (f, tmp);

checkBox. Width: =tmp;

// SetProperties (checkBox);

checkBox. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // radio

if NOT (Assigned (radio)) then begin

radio: = TRadioButton. Create (Form1);

radio. Parent: = Form1;

radio. OnMouseDown: = ComponentMouseDown;

radio. OnMouseMove: = ComponentMouseMove;

radio. OnMouseUp: = ComponentMouseUp;

radio. Name: = 'RadioButton';

end;

radio. Top: =tmp;

readln (f, tmp);

radio. Left: =tmp;

readln (f, tmp);

radio. Height: =tmp;

readln (f, tmp);

radio. Width: =tmp;

// SetProperties (radio);

radio. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // panel

if NOT (Assigned (panel)) then begin

panel: = TPanel. Create (Form1);

panel. Parent: = Form1;

panel. OnMouseDown: = ComponentMouseDown;

panel. OnMouseMove: = ComponentMouseMove;

panel. OnMouseUp: = ComponentMouseUp;

panel. Name: = 'Panel';

end;

panel. Top: =tmp;

readln (f, tmp);

panel. Left: =tmp;

readln (f, tmp);

panel. Height: =tmp;

readln (f, tmp);

panel. Width: =tmp;

readln (f, sig);

panel. Font. Color: =sig;

// SetProperties (panel);

panel. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // progress

if NOT (Assigned (progress)) then begin

progress: = TProgressBar. Create (Form1);

progress. Parent: = Form1;

progress. OnMouseDown: = ComponentMouseDown;

progress. OnMouseMove: = ComponentMouseMove;

progress. OnMouseUp: = ComponentMouseUp;

progress. Name: = 'ProgressBar';

end;

progress. Top: =tmp;

readln (f, tmp);

progress. Left: =tmp;

readln (f, tmp);

progress. Height: =tmp;

readln (f, tmp);

progress. Width: =tmp;

// SetProperties (progress);

progress. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // bitBtn

if NOT (Assigned (bitBtn)) then begin

bitBtn: = TBitBtn. Create (Form1);

bitBtn. Parent: = Form1;

bitBtn. OnMouseDown: = ComponentMouseDown;

bitBtn. OnMouseMove: = ComponentMouseMove;

bitBtn. OnMouseUp: = ComponentMouseUp;

bitBtn. Name: = 'BitBtn';

end;

bitBtn. Top: =tmp;

readln (f, tmp);

bitBtn. Left: =tmp;

readln (f, tmp);

bitBtn. Height: =tmp;

readln (f, tmp);

bitBtn. Width: =tmp;

readln (f, sig);

bitBtn. Font. Color: =sig;

// SetProperties (bitBtn);

bitBtn. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // labelBox

if NOT (Assigned (labelBox)) then begin

labelBox: = TLabel. Create (Form1);

labelBox. Parent: = Form1;

labelBox. OnMouseDown: = ComponentMouseDown;

labelBox. OnMouseMove: = ComponentMouseMove;

labelBox. OnMouseUp: = ComponentMouseUp;

labelBox. Name: = 'Label';

end;

labelBox. Top: =tmp;

readln (f, tmp);

labelBox. Left: =tmp;

readln (f, tmp);

labelBox. Height: =tmp;

readln (f, tmp);

labelBox. Width: =tmp;

readln (f, sig);

labelbox. Font. Color: =sig;

// SetProperties (labelBox);

labelBox. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // labeledEdit

if NOT (Assigned (labeledEdit)) then begin

labeledEdit: = TLabeledEdit. Create (Form1);

labeledEdit. Parent: = Form1;

labeledEdit. OnMouseDown: = ComponentMouseDown;

labeledEdit. OnMouseMove: = ComponentMouseMove;

labeledEdit. OnMouseUp: = ComponentMouseUp;

labeledEdit. Name: = 'LabeledEdit';

end;

labeledEdit. Top: =tmp;

readln (f, tmp);

labeledEdit. Left: =tmp;

readln (f, tmp);

labeledEdit. Height: =tmp;

readln (f, tmp);

labeledEdit. Width: =tmp;

readln (f, sig);

labeledEdit. Font. Color: =sig;

// SetProperties (labeledEdit);

labeledEdit. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // groupBox

if NOT (Assigned (groupBox)) then begin

groupBox: = TGroupBox. Create (Form1);

groupBox. Parent: = Form1;

groupBox. OnMouseDown: = ComponentMouseDown;

groupBox. OnMouseMove: = ComponentMouseMove;

groupBox. OnMouseUp: = ComponentMouseUp;

groupBox. Name: = 'GroupBox';

end;

groupBox. Top: =tmp;

readln (f, tmp);

groupBox. Left: =tmp;

readln (f, tmp);

groupBox. Height: =tmp;

readln (f, tmp);

groupBox. Width: =tmp;

// SetProperties (groupBox);

groupBox. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // memoBox

if NOT (Assigned (memoBox)) then begin

memoBox: = TMemo. Create (Form1);

memoBox. Parent: = Form1;

memoBox. OnMouseDown: = ComponentMouseDown;

memoBox. OnMouseMove: = ComponentMouseMove;

memoBox. OnMouseUp: = ComponentMouseUp;

memoBox. Name: = 'Memo';

end;

memoBox. Top: =tmp;

readln (f, tmp);

memoBox. Left: =tmp;

readln (f, tmp);

memoBox. Height: =tmp;

readln (f, tmp);

memoBox. Width: =tmp;

readln (f, sig);

memoBox. Font. Color: =sig;

// SetProperties (memoBox);

memoBox. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // speedBtn

if NOT (Assigned (speedBtn)) then begin

speedBtn: = TSpeedButton. Create (Form1);

speedBtn. Parent: = Form1;

speedBtn. OnMouseDown: = ComponentMouseDown;

speedBtn. OnMouseMove: = ComponentMouseMove;

speedBtn. OnMouseUp: = ComponentMouseUp;

speedBtn. Name: = 'SpeedButton';

end;

speedBtn. Top: =tmp;

readln (f, tmp);

speedBtn. Left: =tmp;

readln (f, tmp);

speedBtn. Height: =tmp;

readln (f, tmp);

speedBtn. Width: =tmp;

// SetProperties (speedBtn);

speedBtn. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // shape

if NOT (Assigned (shape)) then begin

shape: = TShape. Create (Form1);

shape. Parent: = Form1;

shape. OnMouseDown: = ComponentMouseDown;

shape. OnMouseMove: = ComponentMouseMove;

shape. OnMouseUp: = ComponentMouseUp;

shape. Name: = 'Shape';

end;

shape. Top: =tmp;

readln (f, tmp);

shape. Left: =tmp;

readln (f, tmp);

shape. Height: =tmp;

readln (f, tmp);

shape. Width: =tmp;

// SetProperties (shape);

shape. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // staticText

if NOT (Assigned (staticText)) then begin

staticText: = TStaticText. Create (Form1);

staticText. Parent: = Form1;

staticText. OnMouseDown: = ComponentMouseDown;

staticText. OnMouseMove: = ComponentMouseMove;

staticText. OnMouseUp: = ComponentMouseUp;

staticText. Name: = 'StaticText';

end;

staticText. Top: =tmp;

readln (f, tmp);

staticText. Left: =tmp;

readln (f, tmp);

staticText. Height: =tmp;

readln (f, tmp);

staticText. Width: =tmp;

// SetProperties (staticText);

staticText. Visible: =true;

end;

readln (f, tmp);

if tmp<>0 then begin // stringGrid

if NOT (Assigned (stringGrid)) then begin

stringGrid: = TStringGrid. Create (Form1);

stringGrid. Parent: = Form1;

stringGrid. OnMouseDown: = ComponentMouseDown;

stringGrid. OnMouseMove: = ComponentMouseMove;

stringGrid. OnMouseUp: = ComponentMouseUp;

stringGrid. Name: = 'StringGrid';

end;

stringGrid. Top: =tmp;

readln (f, tmp);

stringGrid. Left: =tmp;

readln (f, tmp);

stringGrid. Height: =tmp;

readln (f, tmp);

stringGrid. Width: =tmp;

SetProperties (stringGrid);

stringGrid. Visible: =true;

end;

CloseFile (f);

end;

procedure TForm1. BitBtn5Click (Sender: TObject);

begin

Showmessage (`Π‘ΠΏΡ€Π°Π²ΠΊΠ° ΠΏΠΎ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠΈ VLC Deflphi 7. Π Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Π» Π‘Ρ€ΠΈΠΊ ΠœΠΈΡ…Π°ΠΈΠ». Π’ΠΎΡ€ΠΎΠ½Π΅ΠΆ 2013');

end;

end.

ΠŸΠΎΠΊΠ°Π·Π°Ρ‚ΡŒ вСсь тСкст
Π—Π°ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ Ρ„ΠΎΡ€ΠΌΡƒ Ρ‚Π΅ΠΊΡƒΡ‰Π΅ΠΉ Ρ€Π°Π±ΠΎΡ‚ΠΎΠΉ