Delphi IDE, компилятор, отладчик, редактор Delphi — среда быстрой разработки, где в качестве языка программирования используется Object Pascal. На сегодняшний день позволяет разрабатывать ПО для Microsoft Windows, Mac OS, iOS и Android и входит в состав Embarcadero RAD Studio https://delphi-hlp.ru/index.php/delphi-ide.feed 2022-09-13T04:28:17+07:00 Delphi help info@delphi-hlp.ru Joomla! - Open Source Content Management Как сделать свои собственные сообщения при компилляции? 2012-09-18T16:38:09+07:00 2012-09-18T16:38:09+07:00 https://delphi-hlp.ru/index.php/delphi-ide/direktviy-kompillyatsii/kakie-est-direktivy-kompilyatora-2.html Super User toto44@inbox.ru <p><span style="color: #000000;">Формат команды:</span></p> <p><span style="font-family: 'Courier New'; color: #000080; font-size: 10pt;">{$MESSAGE HINT|WARN|ERROR|FATAL 'text string' }</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #000000;">Например, добавление следующих строк приведёт  к появлению:</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE 'Появился новый hint!'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Hint 'И это тоже hint!'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Warn 'А это уже Warning'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Error 'Эта строка вызовет ошибку компиляции!'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Fatal 'А это фатальная ошибка компиляции!'}</span></p> </td> </tr> </tbody> </table> </div> <p><span style="font-family: 'Courier New'; color: #ff00ff; font-size: 9pt;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/direktviy-kompillyatsii/kakie-est-direktivy-kompilyatora-2.html">Подробнее...</a></p> <p><span style="color: #000000;">Формат команды:</span></p> <p><span style="font-family: 'Courier New'; color: #000080; font-size: 10pt;">{$MESSAGE HINT|WARN|ERROR|FATAL 'text string' }</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #000000;">Например, добавление следующих строк приведёт  к появлению:</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE 'Появился новый hint!'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Hint 'И это тоже hint!'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Warn 'А это уже Warning'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Error 'Эта строка вызовет ошибку компиляции!'}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$MESSAGE Fatal 'А это фатальная ошибка компиляции!'}</span></p> </td> </tr> </tbody> </table> </div> <p><span style="font-family: 'Courier New'; color: #ff00ff; font-size: 9pt;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/direktviy-kompillyatsii/kakie-est-direktivy-kompilyatora-2.html">Подробнее...</a></p> Как узнать версию компилятора? 2012-09-18T16:43:29+07:00 2012-09-18T16:43:29+07:00 https://delphi-hlp.ru/index.php/delphi-ide/direktviy-kompillyatsii/kak-uznat-versiyu-kompilyatora.html Super User toto44@inbox.ru <p><span style="font-family: 'Times New Roman'; color: #000000;">Иногда надо выполнить разный код в зависимости от версии Дельфи, особенно актуально это при разработки компонентов и модулей, которые используются в разных приложениях. </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">В Дельфи предопределены специальные константы компиляции для этого:</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver80</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 1 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver90 </span><span style="font-family: 'Times New Roman'; color: #000000;">- Дельфи 2 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver93</span><span style="font-family: 'Times New Roman'; color: #000000;"> - С Buider 1 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver100</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 3 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver110</span><span style="font-family: 'Times New Roman'; color: #000000;"> - С Buider 3 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver120</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 4 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver125</span><span style="font-family: 'Times New Roman'; color: #000000;"> - С Buider 4 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver130</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 5 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver140</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 6 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver150</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 7 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Пример использования:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TForm1.Button2Click(Sender: TObject);</span></p> <p> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): www.drkb.ru, </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">®Vit (Vitaly Nevzorov) - nevzorov@yahoo.com}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> Version=</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver80}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 1'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver90}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 2'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver100}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 3'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver120}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 4'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver130}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 5 '</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver140}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 6'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver150}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 7'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">ShowMessage(</span><span class="f_CodeExample" style="color: #ff0000;">'Для компиляции этой программы был использован '</span><span class="f_CodeExample" style="color: #000000;">+Version);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p><span style="font-family: 'Courier New'; color: #008000; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #ff0000; font-size: 10pt; font-weight: bold;">Автор:</span><span style="font-family: 'Times New Roman'; color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;"><a class="weblink" href="https://www.delphist.com" target="_blank">Vit</a></span><span style="font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;"> (</span><span style="color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;"><a class="weblink" href="https://www.delphist.com" target="_blank">www.delphist.com</a>, <a class="weblink" href="https://www.drkb.ru" target="_blank">www.drkb.ru</a>, <a class="weblink" href="https://chicago.lastplanet.com" target="_blank">www</a>.unihighlighter.com, www.nevzorov.org)</span></p> <p><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"><br /></span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad.ru</span><span style="color: #0000ff; text-decoration: underline;"><a class="weblink" href="https://forum.vingrad.ru" target="_blank">https://forum.vingrad.ru</a></span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Иногда надо выполнить разный код в зависимости от версии Дельфи, особенно актуально это при разработки компонентов и модулей, которые используются в разных приложениях. </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">В Дельфи предопределены специальные константы компиляции для этого:</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver80</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 1 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver90 </span><span style="font-family: 'Times New Roman'; color: #000000;">- Дельфи 2 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver93</span><span style="font-family: 'Times New Roman'; color: #000000;"> - С Buider 1 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver100</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 3 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver110</span><span style="font-family: 'Times New Roman'; color: #000000;"> - С Buider 3 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver120</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 4 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver125</span><span style="font-family: 'Times New Roman'; color: #000000;"> - С Buider 4 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver130</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 5 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver140</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 6 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Ver150</span><span style="font-family: 'Times New Roman'; color: #000000;"> - Дельфи 7 </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Пример использования:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TForm1.Button2Click(Sender: TObject);</span></p> <p> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): www.drkb.ru, </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">®Vit (Vitaly Nevzorov) - nevzorov@yahoo.com}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> Version=</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver80}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 1'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver90}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 2'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver100}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 3'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver120}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 4'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver130}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 5 '</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver140}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 6'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #0000ff;">{$Ifdef Ver150}</span><span class="f_CodeExample" style="color: #ff0000;">'Дельфи 7'</span><span class="f_CodeExample" style="color: #000000;">;</span><span class="f_CodeExample" style="color: #0000ff;">{$EndIf}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">ShowMessage(</span><span class="f_CodeExample" style="color: #ff0000;">'Для компиляции этой программы был использован '</span><span class="f_CodeExample" style="color: #000000;">+Version);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p><span style="font-family: 'Courier New'; color: #008000; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #ff0000; font-size: 10pt; font-weight: bold;">Автор:</span><span style="font-family: 'Times New Roman'; color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;"><a class="weblink" href="https://www.delphist.com" target="_blank">Vit</a></span><span style="font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;"> (</span><span style="color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;"><a class="weblink" href="https://www.delphist.com" target="_blank">www.delphist.com</a>, <a class="weblink" href="https://www.drkb.ru" target="_blank">www.drkb.ru</a>, <a class="weblink" href="https://chicago.lastplanet.com" target="_blank">www</a>.unihighlighter.com, www.nevzorov.org)</span></p> <p><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"><br /></span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad.ru</span><span style="color: #0000ff; text-decoration: underline;"><a class="weblink" href="https://forum.vingrad.ru" target="_blank">https://forum.vingrad.ru</a></span></p> Какие есть директивы компилятора? 2012-09-18T15:01:21+07:00 2012-09-18T15:01:21+07:00 https://delphi-hlp.ru/index.php/delphi-ide/direktviy-kompillyatsii/kakie-est-direktivy-kompilyatora.html Super User toto44@inbox.ru <p>{$I+} и {$I-} - директивы контроля ввода/вывода {$M} и {$S} - директивы, определяющие размер стека {$M+} и {$M-} - директивы информации времени выполнения о типах {$Q+} и {$Q-} - директивы проверки переполнения целочисленных операций {$R} - директива связывания ресурсов {$R+} и {$R-} - директивы проверки диапазона {$APPTYPE CONSOLE} - директива создания консольного приложения 1) Директивы компилятора, разрешающие или запрещающие проверку утверждений. По умолчанию {$C+} или {$ASSERTIONS ON} Область действия локальная Директивы компилятора $C разрешают или запрещают проверку утверждений. Они влияют на работу процедуры Assert,используемой при отладке программ. По умолчанию действует директива {$C+} и процедура Assert генерирует исключение EAssertionFailed, если проверяемое утверждение ложно. Так как эти проверки используются только в процессе отладки программы, то перед ее окончательной компиляцией следует указать директиву {$C-}.</p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/direktviy-kompillyatsii/kakie-est-direktivy-kompilyatora.html">Подробнее...</a></p> <p>{$I+} и {$I-} - директивы контроля ввода/вывода {$M} и {$S} - директивы, определяющие размер стека {$M+} и {$M-} - директивы информации времени выполнения о типах {$Q+} и {$Q-} - директивы проверки переполнения целочисленных операций {$R} - директива связывания ресурсов {$R+} и {$R-} - директивы проверки диапазона {$APPTYPE CONSOLE} - директива создания консольного приложения 1) Директивы компилятора, разрешающие или запрещающие проверку утверждений. По умолчанию {$C+} или {$ASSERTIONS ON} Область действия локальная Директивы компилятора $C разрешают или запрещают проверку утверждений. Они влияют на работу процедуры Assert,используемой при отладке программ. По умолчанию действует директива {$C+} и процедура Assert генерирует исключение EAssertionFailed, если проверяемое утверждение ложно. Так как эти проверки используются только в процессе отладки программы, то перед ее окончательной компиляцией следует указать директиву {$C-}.</p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/direktviy-kompillyatsii/kakie-est-direktivy-kompilyatora.html">Подробнее...</a></p> Предопределённые константы условной компиляции 2012-09-18T16:48:19+07:00 2012-09-18T16:48:19+07:00 https://delphi-hlp.ru/index.php/delphi-ide/direktviy-kompillyatsii/kak-uznat-versiyu-kompilyatora-2.html Super User toto44@inbox.ru <p><span style="font-family: 'Courier New'; font-size: 8pt;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Версии компилятора</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Ver80</span><span style="color: #000000;"> - Дельфи 1 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver90 </span><span style="color: #000000;">- Дельфи 2 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver93</span><span style="color: #000000;"> - С Buider 1 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver100</span><span style="color: #000000;"> - Дельфи 3 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver110</span><span style="color: #000000;"> - С Buider 3 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver120</span><span style="color: #000000;"> - Дельфи 4 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver125</span><span style="color: #000000;"> - С Buider 4 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver130</span><span style="color: #000000;"> - Дельфи 5 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver140</span><span style="color: #000000;"> - Дельфи 6 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver150</span><span style="color: #000000;"> - Дельфи 7 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver160</span><span style="color: #000000;"> - Дельфи 8 </span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX</span><span style="color: #000000;"> - Kylix 1</span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX2</span><span style="color: #000000;"> - Kylix 2</span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX3</span><span style="color: #000000;"> - Kylix 3</span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX4</span><span style="color: #000000;"> - Kylix 4</span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Платформа: (определена для Дельфи 6 и выше)</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Linux</span></p> <p><span style="color: #000000; font-weight: bold;">MSWindows</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Среда разработки:</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">DELPHI</span></p> <p><span style="color: #000000; font-weight: bold;">BCB</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="font-family: 'Courier New'; font-size: 8pt;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Версии компилятора</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Ver80</span><span style="color: #000000;"> - Дельфи 1 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver90 </span><span style="color: #000000;">- Дельфи 2 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver93</span><span style="color: #000000;"> - С Buider 1 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver100</span><span style="color: #000000;"> - Дельфи 3 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver110</span><span style="color: #000000;"> - С Buider 3 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver120</span><span style="color: #000000;"> - Дельфи 4 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver125</span><span style="color: #000000;"> - С Buider 4 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver130</span><span style="color: #000000;"> - Дельфи 5 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver140</span><span style="color: #000000;"> - Дельфи 6 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver150</span><span style="color: #000000;"> - Дельфи 7 </span></p> <p><span style="color: #000000; font-weight: bold;">Ver160</span><span style="color: #000000;"> - Дельфи 8 </span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX</span><span style="color: #000000;"> - Kylix 1</span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX2</span><span style="color: #000000;"> - Kylix 2</span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX3</span><span style="color: #000000;"> - Kylix 3</span></p> <p><span style="color: #000000; font-weight: bold;">KYLIX4</span><span style="color: #000000;"> - Kylix 4</span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Платформа: (определена для Дельфи 6 и выше)</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Linux</span></p> <p><span style="color: #000000; font-weight: bold;">MSWindows</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Среда разработки:</span></p> <p><span style="color: #000000; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">DELPHI</span></p> <p><span style="color: #000000; font-weight: bold;">BCB</span></p> <p><span style="color: #000000;"> </span></p> Delphi 4 виснут при запуске. Видеокарта S3 Virge? 2012-09-14T20:47:03+07:00 2012-09-14T20:47:03+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/delphi-visnut.html Super User toto44@inbox.ru <p><strong> </strong></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample">REGEDIT4</span></p> <p class="p_CodeExample"><span class="f_CodeExample">[HKEY_CURRENT_CONFIG\Display\Settings]</span></p> <p class="p_CodeExample"><span class="f_CodeExample">"BusThrottle"="on"</span></p> <p class="p_CodeExample"><span class="f_CodeExample"> </span></p> <p class="p_CodeExample"><span class="f_CodeExample"> </span></p> </td> </tr> </tbody> </table> </div> <p>Если не помогает, то попробуйте добавить в system.ini:</p> <p> <span class="f_CodeExample">[Display]</span></p> <p class="p_CodeExample"><span class="f_CodeExample">"BusThrottle"="On"</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Эта проблема устранена в Delphi 4sp3.</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Надо уменьшить степень аппаратного ускорения графики в свойствах компьютера</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #ff0000; font-size: 10pt; font-weight: bold;"> </span></p> <p><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span></p> <p><strong> </strong></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample">REGEDIT4</span></p> <p class="p_CodeExample"><span class="f_CodeExample">[HKEY_CURRENT_CONFIG\Display\Settings]</span></p> <p class="p_CodeExample"><span class="f_CodeExample">"BusThrottle"="on"</span></p> <p class="p_CodeExample"><span class="f_CodeExample"> </span></p> <p class="p_CodeExample"><span class="f_CodeExample"> </span></p> </td> </tr> </tbody> </table> </div> <p>Если не помогает, то попробуйте добавить в system.ini:</p> <p> <span class="f_CodeExample">[Display]</span></p> <p class="p_CodeExample"><span class="f_CodeExample">"BusThrottle"="On"</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Эта проблема устранена в Delphi 4sp3.</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Надо уменьшить степень аппаратного ускорения графики в свойствах компьютера</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #ff0000; font-size: 10pt; font-weight: bold;"> </span></p> <p><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span></p> Hidden or missing IDE 2012-09-15T02:24:25+07:00 2012-09-15T02:24:25+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/hidden-ide.html Super User toto44@inbox.ru <p><strong> </strong></p> <p>Occasionally in Delphi 5 the IDE will 'disappear'. This is to say you will launch Delphi, and most or all of your IDE will not be visible. Delphi is clearly running and working, as you can still use your hot keys and run and compile a program, you just can't see such useful items such as the object inspector or your component tool bar. This is caused by Delphi saving bogus information in its desktop preference files, or '.dsk' files. Delphi saves information about your environment options and settings in these files. In order to see your IDE again, all you need to do is delete these offending files. This will in no way harm Delphi or your project, as Delphi will dynamically generate these files as it needs them. You will however lose any environment settings that you had set previously.</p> <p><strong> </strong></p> <p>Occasionally in Delphi 5 the IDE will 'disappear'. This is to say you will launch Delphi, and most or all of your IDE will not be visible. Delphi is clearly running and working, as you can still use your hot keys and run and compile a program, you just can't see such useful items such as the object inspector or your component tool bar. This is caused by Delphi saving bogus information in its desktop preference files, or '.dsk' files. Delphi saves information about your environment options and settings in these files. In order to see your IDE again, all you need to do is delete these offending files. This will in no way harm Delphi or your project, as Delphi will dynamically generate these files as it needs them. You will however lose any environment settings that you had set previously.</p> IDE highlighting the incorrect line 2012-09-16T03:19:41+07:00 2012-09-16T03:19:41+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/ide-incorrect.html Super User toto44@inbox.ru <p><strong> </strong></p> <p>On one project, the IDE insists on highlighting the incorrect line for different conditions. For example, when a syntax error is highlighted, the line above the error is highlighted or when I set breakpoints by choosing a blue dot in the gutter, it does not "line up" with the text line. How can I fix this? This condition is usually caused by opening the file in a different editor than the editor provided by the IDE. If a line of code is somehow modified and then saved back to the disk using only a carriage return for a line terminating character (instead of a carriage return + line feed sequence), the IDE may get confused. To fix the problem, load the file into an editor that will save each line with a carriage return + line feed sequence. Примечание от Vit: ошибка исправлена в Дельфи 7.</p> <p><strong> </strong></p> <p>On one project, the IDE insists on highlighting the incorrect line for different conditions. For example, when a syntax error is highlighted, the line above the error is highlighted or when I set breakpoints by choosing a blue dot in the gutter, it does not "line up" with the text line. How can I fix this? This condition is usually caused by opening the file in a different editor than the editor provided by the IDE. If a line of code is somehow modified and then saved back to the disk using only a carriage return for a line terminating character (instead of a carriage return + line feed sequence), the IDE may get confused. To fix the problem, load the file into an editor that will save each line with a carriage return + line feed sequence. Примечание от Vit: ошибка исправлена в Дельфи 7.</p> Where are my components? 2012-09-15T02:21:07+07:00 2012-09-15T02:21:07+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/my-components.html Super User toto44@inbox.ru <p> </p> <p><span style="color: #000000;">Windows NT and 2000:</span></p> <p><span style="color: #000000;">Most likely Delphi was installed by an administrator or a user with administrator rights and the user currently logged on does not have administrator rights. The component library is failing to load because it does not have the registry keys available that indicate where the packages are located. Install first as Admin, then do a 'Registry Settings Only' install for each user to get all the necessary DLL's and registry key entries to run Delphi under a specific user profile. </span></p> <p> <span style="color: #000000;">To do this login as the user and run the Delphi install. Around 3 screens in you'll get to the screen where you need to choose the install directories. At the bottom of this screen is a check box to select for Registry Settings Only. Complete the install as usual. It should be much faster since no files are copied. </span></p> <p> <span style="color: #000000;">If it looks like the components are there but the bitmap images are missing then try unistalling and reinstalling each package. This can be done very easily by going into the Delphi menu option Component | Install Packages. Uncheck each of the packages and then check it again. Say "Yes" to any message boxes that appear asking about the removal of related packages. I recommend you start by removing "Borland Database Components" since this will remove several others as well. </span></p> <p> </p> <p><span style="color: #000000;">Windows NT and 2000:</span></p> <p><span style="color: #000000;">Most likely Delphi was installed by an administrator or a user with administrator rights and the user currently logged on does not have administrator rights. The component library is failing to load because it does not have the registry keys available that indicate where the packages are located. Install first as Admin, then do a 'Registry Settings Only' install for each user to get all the necessary DLL's and registry key entries to run Delphi under a specific user profile. </span></p> <p> <span style="color: #000000;">To do this login as the user and run the Delphi install. Around 3 screens in you'll get to the screen where you need to choose the install directories. At the bottom of this screen is a check box to select for Registry Settings Only. Complete the install as usual. It should be much faster since no files are copied. </span></p> <p> <span style="color: #000000;">If it looks like the components are there but the bitmap images are missing then try unistalling and reinstalling each package. This can be done very easily by going into the Delphi menu option Component | Install Packages. Uncheck each of the packages and then check it again. Say "Yes" to any message boxes that appear asking about the removal of related packages. I recommend you start by removing "Borland Database Components" since this will remove several others as well. </span></p> В основном Help'е в Delphi не работает индекс по Win32? 2012-09-15T01:45:57+07:00 2012-09-15T01:45:57+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/indeks-win32.html Super User toto44@inbox.ru <p> </p> <p><span style="color: #000000;">- в /help/delphi3.cfg добавить строку типа</span></p> <p><span style="color: #000000;"> :index Win32=Win32.hlp</span></p> <p><span style="color: #000000;"> она должна быть добавлена перед строкой</span></p> <p><span style="color: #000000;"> :Link win32.hlp</span></p> <p><span style="color: #000000;"> - стереть delphi3.gid</span></p> <p><span style="color: #000000;"> - запустить Help и получать удовольствие</span></p> <p> </p> <p><span style="color: #000000;"> В delphi3.cnt тоже нужно строчку добавить:</span></p> <p><span style="color: #000000;"> :include win32.cnt</span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"><br /></span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">Взято с сайта </span><a class="weblink" href="https://blackman.wp-club.net/" target="_blank">https://blackman.wp-club.net/</a></p> <p> </p> <p><span style="color: #000000;">- в /help/delphi3.cfg добавить строку типа</span></p> <p><span style="color: #000000;"> :index Win32=Win32.hlp</span></p> <p><span style="color: #000000;"> она должна быть добавлена перед строкой</span></p> <p><span style="color: #000000;"> :Link win32.hlp</span></p> <p><span style="color: #000000;"> - стереть delphi3.gid</span></p> <p><span style="color: #000000;"> - запустить Help и получать удовольствие</span></p> <p> </p> <p><span style="color: #000000;"> В delphi3.cnt тоже нужно строчку добавить:</span></p> <p><span style="color: #000000;"> :include win32.cnt</span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"><br /></span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">Взято с сайта </span><a class="weblink" href="https://blackman.wp-club.net/" target="_blank">https://blackman.wp-club.net/</a></p> Исчезает главное меню Delphi, почему? 2012-09-15T02:08:38+07:00 2012-09-15T02:08:38+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/menyu-delphi.html Super User toto44@inbox.ru <p> </p> <p><span style="color: #000000;">Дельфи до 6й версии неправильно распознают профили пользователей в 2000/XP. Надо установить Дельфи под тем пользователем под которым будете его использовать.</span></p> <p> </p> <p><span style="color: #000000;">Автор Mikel</span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad.ru</span><span style="color: #0000ff; text-decoration: underline;"><a class="weblink" href="https://forum.vingrad.ru" target="_blank">https://forum.vingrad.ru</a></span></p> <p><span style="color: #000000; font-size: 11pt; font-weight: bold;"> </span></p> <p> </p> <p><span style="color: #000000;">Дельфи до 6й версии неправильно распознают профили пользователей в 2000/XP. Надо установить Дельфи под тем пользователем под которым будете его использовать.</span></p> <p> </p> <p><span style="color: #000000;">Автор Mikel</span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad.ru</span><span style="color: #0000ff; text-decoration: underline;"><a class="weblink" href="https://forum.vingrad.ru" target="_blank">https://forum.vingrad.ru</a></span></p> <p><span style="color: #000000; font-size: 11pt; font-weight: bold;"> </span></p> Проблемы регистрации Дельфи 2012-09-16T03:24:30+07:00 2012-09-16T03:24:30+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-delphi/problemy-registratsii-delfi.html Super User toto44@inbox.ru <p> </p> <p>  <span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">После</span> <span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">горячей</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">перезагрузки</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">компьютера</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;"> Delphi 7 </span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">при</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">запуске</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">стала</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">выдавать</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">такое</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">окошечко</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">:</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;"> </span><img src="https://delphi-hlp.ru/images/e.jpg" border="0" alt="error" /> <span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">       </span></p> <p><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">Переустановка</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">не</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">помогла</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">. </span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">Подскажите</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">как</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">решить</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">проблему</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">. </span></p> <p style="margin: 7px 0px;"> </p> <p style="margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">1. С</span><span style="font-family: 'Times New Roman'; color: #000000;">файлом</span><span style="font-family: 'Times New Roman'; color: #000000;">чистки</span><span style="font-family: 'Times New Roman'; color: #000000;">реестра</span><span style="font-family: 'Times New Roman'; color: #000000;">соседствует</span><span style="font-family: 'Times New Roman'; color: #000000;">программа</span><span style="font-family: 'Times New Roman'; color: #000000;">регистрации</span><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">D7Reg.exe</span><span style="font-family: 'Times New Roman'; color: #000000;">. </span><span style="font-family: 'Times New Roman'; color: #000000;">Она</span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;">позволяет</span><span style="font-family: 'Times New Roman'; color: #000000;">ввести</span><span style="font-family: 'Times New Roman'; color: #000000;">ключ</span><span style="font-family: 'Times New Roman'; color: #000000;">заново</span><span style="font-family: 'Times New Roman'; color: #000000;">.</span></p> <p>2. <span style="font-family: 'Times New Roman'; color: #000000;">Вообще</span><span style="font-family: 'Times New Roman'; color: #000000;">можно</span><span style="font-family: 'Times New Roman'; color: #000000;">просто</span><span style="font-family: 'Times New Roman'; color: #000000;">один</span><span style="font-family: 'Times New Roman'; color: #000000;">раз</span><span style="font-family: 'Times New Roman'; color: #000000;">сохранить</span><span style="font-family: 'Times New Roman'; color: #000000;">файлы</span><span style="font-family: 'Times New Roman'; color: #000000;">из</span><span style="font-family: 'Times New Roman'; color: #000000;"> c:\Documents and Settings\username\.borland\ </span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;">жить</span><span style="font-family: 'Times New Roman'; color: #000000;">спокойно</span><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Взято из </span><span style="color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;"><a class="weblink" href="https://forum.sources.ru" target="_blank">https://forum.sources.ru</a></span></p> <p> </p> <p>  <span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">После</span> <span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">горячей</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">перезагрузки</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">компьютера</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;"> Delphi 7 </span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">при</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">запуске</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">стала</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">выдавать</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">такое</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">окошечко</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">:</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;"> </span><img src="https://delphi-hlp.ru/images/e.jpg" border="0" alt="error" /> <span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">       </span></p> <p><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">Переустановка</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">не</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">помогла</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">. </span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">Подскажите</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">как</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">решить</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">проблему</span><span style="font-style: italic; font-family: 'Times New Roman'; color: #000000;">. </span></p> <p style="margin: 7px 0px;"> </p> <p style="margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">1. С</span><span style="font-family: 'Times New Roman'; color: #000000;">файлом</span><span style="font-family: 'Times New Roman'; color: #000000;">чистки</span><span style="font-family: 'Times New Roman'; color: #000000;">реестра</span><span style="font-family: 'Times New Roman'; color: #000000;">соседствует</span><span style="font-family: 'Times New Roman'; color: #000000;">программа</span><span style="font-family: 'Times New Roman'; color: #000000;">регистрации</span><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">D7Reg.exe</span><span style="font-family: 'Times New Roman'; color: #000000;">. </span><span style="font-family: 'Times New Roman'; color: #000000;">Она</span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;">позволяет</span><span style="font-family: 'Times New Roman'; color: #000000;">ввести</span><span style="font-family: 'Times New Roman'; color: #000000;">ключ</span><span style="font-family: 'Times New Roman'; color: #000000;">заново</span><span style="font-family: 'Times New Roman'; color: #000000;">.</span></p> <p>2. <span style="font-family: 'Times New Roman'; color: #000000;">Вообще</span><span style="font-family: 'Times New Roman'; color: #000000;">можно</span><span style="font-family: 'Times New Roman'; color: #000000;">просто</span><span style="font-family: 'Times New Roman'; color: #000000;">один</span><span style="font-family: 'Times New Roman'; color: #000000;">раз</span><span style="font-family: 'Times New Roman'; color: #000000;">сохранить</span><span style="font-family: 'Times New Roman'; color: #000000;">файлы</span><span style="font-family: 'Times New Roman'; color: #000000;">из</span><span style="font-family: 'Times New Roman'; color: #000000;"> c:\Documents and Settings\username\.borland\ </span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;">жить</span><span style="font-family: 'Times New Roman'; color: #000000;">спокойно</span><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Взято из </span><span style="color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;"><a class="weblink" href="https://forum.sources.ru" target="_blank">https://forum.sources.ru</a></span></p> Способы уменьшения размера Exe файлов полученных с помощью Дельфи? 2013-08-14T02:07:19+07:00 2013-08-14T02:07:19+07:00 https://delphi-hlp.ru/index.php/delphi-ide/kompilyator-delfi/sposoby-umensheniya-razmera-exe-fajlov-poluchennykh-s-pomoshchyu-delfi.html Super User toto44@inbox.ru <p>Generally, EXE files created with Delphi are larger than EXE files created with another programming language. The reason is the VCL. (Sure, VCL has many advantages...)</p> <p> </p> <p>There are several ways to reduce a EXE's size:</p> <p> </p> <p>01) Use a EXE-Packer (UPX, ASPack,...)</p> <p>02) Use KOL.</p> <p>03) Write your application without VCL</p> <p>04) Use the ACL (API Controls Library)</p> <p>05) Use StripReloc.</p> <p>06) Deactivate remote debugging information and TD32.</p> <p>07) You might want to put code in a dll.</p> <p>08) Don't put the same images several times on a form. Load them at runtime.</p> <p>09) Use compressed images (JPG and not BMP)</p> <p>10) Store less properties in DFM files</p> <p>(See Link below "How To Make Your EXE's Lighter")</p> <p> </p> <p>11) Use the TStringList replacement by ~LOM~</p> <p>Use the Minireg - TRegistry replacement by Ben Hochstrasser</p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/kompilyator-delfi/sposoby-umensheniya-razmera-exe-fajlov-poluchennykh-s-pomoshchyu-delfi.html">Подробнее...</a></p> <p>Generally, EXE files created with Delphi are larger than EXE files created with another programming language. The reason is the VCL. (Sure, VCL has many advantages...)</p> <p> </p> <p>There are several ways to reduce a EXE's size:</p> <p> </p> <p>01) Use a EXE-Packer (UPX, ASPack,...)</p> <p>02) Use KOL.</p> <p>03) Write your application without VCL</p> <p>04) Use the ACL (API Controls Library)</p> <p>05) Use StripReloc.</p> <p>06) Deactivate remote debugging information and TD32.</p> <p>07) You might want to put code in a dll.</p> <p>08) Don't put the same images several times on a form. Load them at runtime.</p> <p>09) Use compressed images (JPG and not BMP)</p> <p>10) Store less properties in DFM files</p> <p>(See Link below "How To Make Your EXE's Lighter")</p> <p> </p> <p>11) Use the TStringList replacement by ~LOM~</p> <p>Use the Minireg - TRegistry replacement by Ben Hochstrasser</p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/kompilyator-delfi/sposoby-umensheniya-razmera-exe-fajlov-poluchennykh-s-pomoshchyu-delfi.html">Подробнее...</a></p> Data segment too large error 2012-09-25T17:43:45+07:00 2012-09-25T17:43:45+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/data-segment-too-large-error.html Super User toto44@inbox.ru <p> <span style="color: #000000; font-size: 11pt; font-weight: bold;">Data segment too large error</span></p> <p> </p> <p><span style="color: #000000;">Typed constants are added to the Program's data segment. Untyped constants are added to the code segment of the application only if they are used. Unless you are going to reassign the value of a typed constant, you should use an untyped constant instead. Typed constants should be replaced with initialized variables to be compatible with future versions of the compiler.</span></p> <p> </p> <p><span style="color: #000000;">Example:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{This adds the constant to the data segment}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeTypedString : </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;"> = </span><span class="f_CodeExample" style="color: #ff0000;">'Test'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeTypedInt : integer = </span><span class="f_CodeExample" style="color: #800000;">5</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{This adds the constant to the code segment if used}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeUnTypedString = </span><span class="f_CodeExample" style="color: #ff0000;">'Test'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeUnTypedInt = </span><span class="f_CodeExample" style="color: #800000;">5</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"> </span></p> <p> </p> <p> <span style="color: #000000; font-size: 11pt; font-weight: bold;">Data segment too large error</span></p> <p> </p> <p><span style="color: #000000;">Typed constants are added to the Program's data segment. Untyped constants are added to the code segment of the application only if they are used. Unless you are going to reassign the value of a typed constant, you should use an untyped constant instead. Typed constants should be replaced with initialized variables to be compatible with future versions of the compiler.</span></p> <p> </p> <p><span style="color: #000000;">Example:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{This adds the constant to the data segment}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeTypedString : </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;"> = </span><span class="f_CodeExample" style="color: #ff0000;">'Test'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeTypedInt : integer = </span><span class="f_CodeExample" style="color: #800000;">5</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{This adds the constant to the code segment if used}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeUnTypedString = </span><span class="f_CodeExample" style="color: #ff0000;">'Test'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">const</span><span class="f_CodeExample" style="color: #000000;"> SomeUnTypedInt = </span><span class="f_CodeExample" style="color: #800000;">5</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"> </span></p> <p> </p> Delphi Run-Time Error Codes 2012-09-18T17:07:29+07:00 2012-09-18T17:07:29+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/delphi-run-time-error-codes.html Super User toto44@inbox.ru <p><span style="color: #000000;">Delphi's online help documentation seems to miss the run-time error codes. I usually looked them up in my old Borland Pascal for Windows help file - now they are here for fast access: </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">1        Invalid function number        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">2        File not found        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">3        Path not found        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">4        Too many open files        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">5        File access denied        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">6        Invalid file handle        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">12        Invalid file access code        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">15        Invalid drive number        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">16        Cannot remove current directory        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">17        Cannot rename across drives        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">100        Disk read error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">101        Disk write error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">102        File not assigned        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">103        File not open        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">104        File not open for input        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">105        File not open for output        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">106        Invalid numeric format        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">200        Division by zero        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">201        Range check error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">202        Stack overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">203        Heap overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">204        Invalid pointer operation        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">205        Floating point overflow        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">206        Floating point underflow        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">207        Invalid floating point operation        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">210        Object not initialized        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">211        Call to abstract method        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">212        Stream registration error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">213        Collection index out of range        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">214        Collection overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">215        Arithmetic overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">216        General protection fault        </span></p> <p><span style="color: #000000;"> </span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"><br /></span></p> <p><span style="color: #000000; font-weight: bold;">Взято с сайта</span><a class="weblink" href="https://www.delphifaq.com" target="_blank">https://www.delphifaq.com</a></p> <p><span style="color: #000000;">Delphi's online help documentation seems to miss the run-time error codes. I usually looked them up in my old Borland Pascal for Windows help file - now they are here for fast access: </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">1        Invalid function number        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">2        File not found        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">3        Path not found        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">4        Too many open files        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">5        File access denied        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">6        Invalid file handle        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">12        Invalid file access code        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">15        Invalid drive number        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">16        Cannot remove current directory        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">17        Cannot rename across drives        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">100        Disk read error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">101        Disk write error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">102        File not assigned        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">103        File not open        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">104        File not open for input        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">105        File not open for output        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">106        Invalid numeric format        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">200        Division by zero        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">201        Range check error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">202        Stack overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">203        Heap overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">204        Invalid pointer operation        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">205        Floating point overflow        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">206        Floating point underflow        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">207        Invalid floating point operation        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">210        Object not initialized        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">211        Call to abstract method        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">212        Stream registration error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">213        Collection index out of range        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">214        Collection overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">215        Arithmetic overflow error        </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">216        General protection fault        </span></p> <p><span style="color: #000000;"> </span></p> <p style="text-align: right;"><span style="font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; color: #ff6600; font-size: 8pt; font-weight: bold;"><br /></span></p> <p><span style="color: #000000; font-weight: bold;">Взято с сайта</span><a class="weblink" href="https://www.delphifaq.com" target="_blank">https://www.delphifaq.com</a></p> Duplicate resource error 2012-09-20T20:12:48+07:00 2012-09-20T20:12:48+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/duplicate-resource-error.html Super User toto44@inbox.ru <p><span style="font-family: 'Courier New'; font-size: 8pt;"> </span></p> <p><span style="font-style: italic;">When I try to add a resource to my project's .res file, I get a "Duplicate Resource" error when linking. The resource I have added is a unique resource. How can I successfully add the resource to my project?</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;"> </span></p> <p>The projects resource file is generated by the IDE wizard, and is not intended to be modified. To add additional resources to your project, create a separate resource file with a unique name that does not conflict with either the project or any of  the unit names. Then to add the resource file to Delphi, simply add the following line to any unit file in the project:</p> <p> </p> <p><span style="font-family: 'Courier New'; color: #ff00ff; font-size: 9pt;">{$R MyRes.Res}</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">(where MyRes.Res is the name of the resource file).</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">To add the resource to Borland's C++ Builder, add the resource </span></p> <p><span style="color: #000000;">from the project manager.</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="font-family: 'Courier New'; font-size: 8pt;"> </span></p> <p><span style="font-style: italic;">When I try to add a resource to my project's .res file, I get a "Duplicate Resource" error when linking. The resource I have added is a unique resource. How can I successfully add the resource to my project?</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;"> </span></p> <p>The projects resource file is generated by the IDE wizard, and is not intended to be modified. To add additional resources to your project, create a separate resource file with a unique name that does not conflict with either the project or any of  the unit names. Then to add the resource file to Delphi, simply add the following line to any unit file in the project:</p> <p> </p> <p><span style="font-family: 'Courier New'; color: #ff00ff; font-size: 9pt;">{$R MyRes.Res}</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">(where MyRes.Res is the name of the resource file).</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">To add the resource to Borland's C++ Builder, add the resource </span></p> <p><span style="color: #000000;">from the project manager.</span></p> <p><span style="color: #000000;"> </span></p> EOleSysError - как бороться? 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/eolesyserror-kak-borotsya.html Super User toto44@inbox.ru <p><span style="font-family: 'Times New Roman'; color: #000000;">Перед тем как Дельфи сможет использовать любые ActiveX/COM (в том числе и ADO компоненты) должна быть выполнена строка Application.Initialize - которая инициализирует использование COM. Если пишется DLL или консольное приложение, которые не имеют объекта Application, то надо просто добавить в Uses ещё один модуль: "oleauto" </span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Перед тем как Дельфи сможет использовать любые ActiveX/COM (в том числе и ADO компоненты) должна быть выполнена строка Application.Initialize - которая инициализирует использование COM. Если пишется DLL или консольное приложение, которые не имеют объекта Application, то надо просто добавить в Uses ещё один модуль: "oleauto" </span></p> Error reading symbol file 2013-03-22T16:53:15+07:00 2013-03-22T16:53:15+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/error-reading-symbol-file.html Super User toto44@inbox.ru <p>This usually occurs when you move a project to another drive or directory. Simply deleting the project's .DSM and .DSK files should remedy the situation.<br /><br /> </p> <p>This usually occurs when you move a project to another drive or directory. Simply deleting the project's .DSM and .DSK files should remedy the situation.<br /><br /> </p> Error: Interface not supported 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/error-interface-not-supported.html Super User toto44@inbox.ru <p><span style="font-style: italic; color: #000000;">I receive an "Interface is not supported" error when trying to use an interface.</span></p> <p> </p> <p>Verify that STDVCL32.DLL and your type library are registered. If casting an interface, you must be using DCOM and the type library must be registered on the client.</p> <p><span style="font-style: italic; color: #000000;">I receive an "Interface is not supported" error when trying to use an interface.</span></p> <p> </p> <p>Verify that STDVCL32.DLL and your type library are registered. If casting an interface, you must be using DCOM and the type library must be registered on the client.</p> Error: RPC Server is unavailable 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/error-rpc-server-is-unavailable.html Super User toto44@inbox.ru <p>The error is usually caused because the server can't be located. Make sure you can ping the server machine using the string you typed into the ComputerName property of the TRemoteServer. You might also want to try using an IP address instead in case there is some problem with your DNS configuration or the hosts file. Try setting the "Default Authentication Level" to (Run DCOMCNFG on the server to do this.) Lastly, check the Microsoft Developer's Network on the Web for the latest information on this Microsoft transport. The MSDN can be located at the time of the writing at www.microsoft.com/msdn.</p> <p>The error is usually caused because the server can't be located. Make sure you can ping the server machine using the string you typed into the ComputerName property of the TRemoteServer. You might also want to try using an IP address instead in case there is some problem with your DNS configuration or the hosts file. Try setting the "Default Authentication Level" to (Run DCOMCNFG on the server to do this.) Lastly, check the Microsoft Developer's Network on the Web for the latest information on this Microsoft transport. The MSDN can be located at the time of the writing at www.microsoft.com/msdn.</p> Stack Overflow, Runtime error 202 2013-03-22T17:05:09+07:00 2013-03-22T17:05:09+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/stack-overflow-runtime-error-202.html Super User toto44@inbox.ru <p><span style="color: #000000; font-size: 11pt; font-weight: bold;">Stack Overflow, Runtime error 202</span></p> <p>Simply put, stack overflows are caused by putting too much on the stack. Usually, they are caused by recursive procedures that never end. A good example would be creating an event handler for the TMemo's onChange event, and making a change to the Memo during the processing of the event. Every time the OnChange event gets fired, another change is made, so the OnChange event gets fired again in an almost endless loop. The loop finally ends when the stack overflows, and the application crashes.</p> <p> </p> <p>Here is an example of a recursive procedure:</p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> RecursiveBlowTheStack;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RecursiveBlowTheStack;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p>Sometimes, a stack overflow is caused by too many large procedures. Each procedure calls another procedure, until the stack simply overflows. This can be remidied by breaking up large procedures into smaller ones. A good rule of thumb in regard to a procedures size is if the procedure's source code takes up more than a screen, its time to break it down into smaller procedures.</p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/stack-overflow-runtime-error-202.html">Подробнее...</a></p> <p><span style="color: #000000; font-size: 11pt; font-weight: bold;">Stack Overflow, Runtime error 202</span></p> <p>Simply put, stack overflows are caused by putting too much on the stack. Usually, they are caused by recursive procedures that never end. A good example would be creating an event handler for the TMemo's onChange event, and making a change to the Memo during the processing of the event. Every time the OnChange event gets fired, another change is made, so the OnChange event gets fired again in an almost endless loop. The loop finally ends when the stack overflows, and the application crashes.</p> <p> </p> <p>Here is an example of a recursive procedure:</p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> RecursiveBlowTheStack;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RecursiveBlowTheStack;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p>Sometimes, a stack overflow is caused by too many large procedures. Each procedure calls another procedure, until the stack simply overflows. This can be remidied by breaking up large procedures into smaller ones. A good rule of thumb in regard to a procedures size is if the procedure's source code takes up more than a screen, its time to break it down into smaller procedures.</p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/stack-overflow-runtime-error-202.html">Подробнее...</a></p> Как мне избавиться от выскакивающего окна CPU при ошибках? 2012-09-18T17:08:41+07:00 2012-09-18T17:08:41+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/kak-mne-izbavitsya-ot-vyskakivayushchego-okna-cpu-pri-oshibkakh.html Super User toto44@inbox.ru <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">HKEY_CURRENT_USER\Software\Borland\Delphi\4.0\Debugging </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 9pt;"> </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">ViewCPUOnException=0</span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">HKEY_CURRENT_USER\Software\Borland\Delphi\4.0\Debugging </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 9pt;"> </span></p> <p><span style="font-family: 'Courier New'; color: #000000; font-size: 9pt;">ViewCPUOnException=0</span></p> Как отловить ошибку? 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/kak-otlovit-oshibku.html Super User toto44@inbox.ru <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код в котором может произойти ошибка}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Except</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код который выполнится если ошибка произойдёт, если ошибки не будет то этот код не выполняется}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Вот как будет выполняться код:</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/kak-otlovit-oshibku.html">Подробнее...</a></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код в котором может произойти ошибка}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Except</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код который выполнится если ошибка произойдёт, если ошибки не будет то этот код не выполняется}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Вот как будет выполняться код:</span></p> <p><span style="font-family: 'Times New Roman'; color: #000000;"> </span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/kak-otlovit-oshibku.html">Подробнее...</a></p> Как перехватить сообщение об ошибке? 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/kak-perekhvatit-soobshchenie-ob-oshibke.html Super User toto44@inbox.ru <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код в котором может произойти ошибка}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Except</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">on e:Exception </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span><span class="f_CodeExample" style="color: #000000;"> Shwomessage(e.</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">message</span><span class="f_CodeExample" style="color: #000000;">);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код в котором может произойти ошибка}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Except</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">on e:Exception </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span><span class="f_CodeExample" style="color: #000000;"> Shwomessage(e.</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">message</span><span class="f_CodeExample" style="color: #000000;">);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> Как предотвратить утечки памяти при возникновении ошибок? 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/kak-predotvratit-utechki-pamyati-pri-vozniknovenii-oshibok.html Super User toto44@inbox.ru <p> <span style="font-family: 'Times New Roman'; color: #000000;">Используйте конструкцию</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007):https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код в котором может произойти ошибка}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Finally</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код который выполнится в любом случае - хоть произойдёт ошибка, хоть нет}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Например, это часто применяется во избежание утечек при динамическом распределении памяти:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">t:TStringList;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">...</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">t:=TStringList.create; </span><span class="f_CodeExample" style="color: #000080;">//распределили память под объект t</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь работаем с переменной t}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Finally</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">t.free;</span><span class="f_CodeExample" style="color: #000080;">//память выделенная под объект t всегда будет освобождена </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> <p> <span style="font-family: 'Times New Roman'; color: #000000;">Используйте конструкцию</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007):https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код в котором может произойти ошибка}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Finally</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь вы пишите код который выполнится в любом случае - хоть произойдёт ошибка, хоть нет}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000;">Например, это часто применяется во избежание утечек при динамическом распределении памяти:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">t:TStringList;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">...</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">t:=TStringList.create; </span><span class="f_CodeExample" style="color: #000080;">//распределили память под объект t</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Try</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{здесь работаем с переменной t}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Finally</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">t.free;</span><span class="f_CodeExample" style="color: #000080;">//память выделенная под объект t всегда будет освобождена </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">End</span></p> </td> </tr> </tbody> </table> </div> Как сгенерировать свою ошибку? 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/kak-sgenerirovat-svoyu-oshibku.html Super User toto44@inbox.ru <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">raise</span><span class="f_CodeExample" style="color: #000000;"> Exception.Create(</span><span class="f_CodeExample" style="color: #ff0000;">'Это моя ошибка! Сам что хочу то и пишу здесь!'</span><span class="f_CodeExample" style="color: #000000;">)</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Примечание: </span><span style="font-family: 'Times New Roman'; color: #000000;">в отличие от других объектов, объекты типа Exception или других классов, унаследованных от Exception не требуют вызова деструкторов или любых других действий по освобождению памяти после их создания.</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{©Drkb v.3(2007): https://delphi-hlp.ru</span><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">raise</span><span class="f_CodeExample" style="color: #000000;"> Exception.Create(</span><span class="f_CodeExample" style="color: #ff0000;">'Это моя ошибка! Сам что хочу то и пишу здесь!'</span><span class="f_CodeExample" style="color: #000000;">)</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Примечание: </span><span style="font-family: 'Times New Roman'; color: #000000;">в отличие от других объектов, объекты типа Exception или других классов, унаследованных от Exception не требуют вызова деструкторов или любых других действий по освобождению памяти после их создания.</span></p> Почему возникает ошибка Access Violation? 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/pochemu-voznikaet-oshibka-access-violation.html Super User toto44@inbox.ru <p> <span style="font-family: 'Times New Roman'; color: #000000;">Ошибка "Access Violation" возникает, когда идёт обращение к памяти к которой обращение запрещено. Это возможно во многих случаях, но наиболее типичные ситуации я попытаюсь перечислить:</span></p> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">1) Обращение к не созданному объекту.</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span><span class="f_CodeExample" style="color: #000000;"> e:TEdit;</span></p> <p> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">e.text:=</span><span class="f_CodeExample" style="color: #ff0000;">'Hello world!'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000;">В данном случае объект e ещё не создан и идёт обращение к памяти, которая ещё не выделена. </span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/pochemu-voznikaet-oshibka-access-violation.html">Подробнее...</a></p> <p> <span style="font-family: 'Times New Roman'; color: #000000;">Ошибка "Access Violation" возникает, когда идёт обращение к памяти к которой обращение запрещено. Это возможно во многих случаях, но наиболее типичные ситуации я попытаюсь перечислить:</span></p> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">1) Обращение к не созданному объекту.</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span><span class="f_CodeExample" style="color: #000000;"> e:TEdit;</span></p> <p> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">e.text:=</span><span class="f_CodeExample" style="color: #ff0000;">'Hello world!'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #000000;">В данном случае объект e ещё не создан и идёт обращение к памяти, которая ещё не выделена. </span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/pochemu-voznikaet-oshibka-access-violation.html">Подробнее...</a></p> Список префиксов Internal Error 2013-03-22T17:06:24+07:00 2013-03-22T17:06:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/oshibki-v-delfi/spisok-prefiksov-internal-error.html Super User toto44@inbox.ru <p>Иногда выскакивают ошибки типа "Internal Error SY424", вот расшифровка префиксов:<br /><br /> <br /><br />B : debugger<br /><br />BC : debugger<br /><br />BR : browser<br /><br />C : codegen<br /><br />CM : command line version of the compiler<br /><br />D : parser</p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/spisok-prefiksov-internal-error.html">Подробнее...</a></p> <p>Иногда выскакивают ошибки типа "Internal Error SY424", вот расшифровка префиксов:<br /><br /> <br /><br />B : debugger<br /><br />BC : debugger<br /><br />BR : browser<br /><br />C : codegen<br /><br />CM : command line version of the compiler<br /><br />D : parser</p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/oshibki-v-delfi/spisok-prefiksov-internal-error.html">Подробнее...</a></p> Delphi 7. Отличия и особенности. 2013-08-14T01:39:14+07:00 2013-08-14T01:39:14+07:00 https://delphi-hlp.ru/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/delphi-7-otlichiya-i-osobennosti.html Super User toto44@inbox.ru <p>Отличий немного, а стоит ли переходить это скорее всего надо по обстоятельствам решать.</p> <p> </p> <p>1) Исчезли компоненты NetMaster и изменился репортинг - если в поддерживаемых/разрабатываемых программах они используются то переход будет не столь простым</p> <p> </p> <p>2) Очень многие третьесторонние библиотеки пока не имеют версий для 7х Дельфи - следовательно если они используются то надо ждать</p> <p> </p> <p>3) Очень много добавилось для поддержки Web/Internet/Soap/XML и т.п. если используются новые интернет технологии то быстрый переход на Дельфи 7 может быть весьма оправдан.</p> <p> </p> <p>4) Если используется Дельфи для построения стандартных виндовых приложений то отличий можно сказать что почти нет, переход либо можно не делать, либо сделать - так как он будет очень простой.</p> <p> </p> <p>5) Если Вы разрабатываете компоненты, то естественно нужна поддержка и этой версии</p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #ff0000; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;">Автор:</span><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold; text-decoration: underline;">Vit</span><span style="font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad.ru</span><span style="color: #0000ff; text-decoration: underline;">https://forum.vingrad</span></p> <p><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Arial'; font-size: 10pt;"> </span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p><span style="font-family: 'Arial'; font-size: 10pt;"> </span></p> <p><span style="font-family: 'Arial'; font-size: 10pt;"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman';">и кстати ещё исчезли компоненты TclienSocket и TServerSocket </span></p> <p>Отличий немного, а стоит ли переходить это скорее всего надо по обстоятельствам решать.</p> <p> </p> <p>1) Исчезли компоненты NetMaster и изменился репортинг - если в поддерживаемых/разрабатываемых программах они используются то переход будет не столь простым</p> <p> </p> <p>2) Очень многие третьесторонние библиотеки пока не имеют версий для 7х Дельфи - следовательно если они используются то надо ждать</p> <p> </p> <p>3) Очень много добавилось для поддержки Web/Internet/Soap/XML и т.п. если используются новые интернет технологии то быстрый переход на Дельфи 7 может быть весьма оправдан.</p> <p> </p> <p>4) Если используется Дельфи для построения стандартных виндовых приложений то отличий можно сказать что почти нет, переход либо можно не делать, либо сделать - так как он будет очень простой.</p> <p> </p> <p>5) Если Вы разрабатываете компоненты, то естественно нужна поддержка и этой версии</p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #ff0000; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;">Автор:</span><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold; text-decoration: underline;">Vit</span><span style="font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad.ru</span><span style="color: #0000ff; text-decoration: underline;">https://forum.vingrad</span></p> <p><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Arial'; font-size: 10pt;"> </span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p><span style="font-family: 'Arial'; font-size: 10pt;"> </span></p> <p><span style="font-family: 'Arial'; font-size: 10pt;"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman';">и кстати ещё исчезли компоненты TclienSocket и TServerSocket </span></p> Краткая история Delphi 2013-08-14T01:37:17+07:00 2013-08-14T01:37:17+07:00 https://delphi-hlp.ru/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/kratkaya-istoriya-delphi.html Super User toto44@inbox.ru <p>Delphi - это потомок Турбо Паскаля, который был выпущен для операционной системы CP/M в 1983 году. В феврале 1994 года Турбо Паскаль был перенесен на операционную систему MS-DOS.</p> <p> На раннем этапе развития компьютеров IBM PC, Турбо Паскаль являлся одним из наиболее популярных языков разработки программного обеспечения - главным образом потому, что это было вполне серьезный компилятор, который, включая компилятор, редактор и все остальное, стоил всего $19.95 и работал на машине с 64 Kb оперативной памяти.</p> <p> Под Windows - Турбо Паскаль был перенесен фирмой Borland в 1990 году. А самая последняя версия Borland Pascal 7.0 (имеющая теперь такое название), не считая Delphi, вышла в свет в 1992 году.</p> <p> Разработка Delphi началась в 1993 году. После проведения beta-тестирования Delphi показали на "Software Development '95". И 14 февраля 1995 года официально объявили о ее продаже в США. В торговлю Delphi попала спустя 14 дней, 28 февраля 1995 года</p> <p>Delphi - это потомок Турбо Паскаля, который был выпущен для операционной системы CP/M в 1983 году. В феврале 1994 года Турбо Паскаль был перенесен на операционную систему MS-DOS.</p> <p> На раннем этапе развития компьютеров IBM PC, Турбо Паскаль являлся одним из наиболее популярных языков разработки программного обеспечения - главным образом потому, что это было вполне серьезный компилятор, который, включая компилятор, редактор и все остальное, стоил всего $19.95 и работал на машине с 64 Kb оперативной памяти.</p> <p> Под Windows - Турбо Паскаль был перенесен фирмой Borland в 1990 году. А самая последняя версия Borland Pascal 7.0 (имеющая теперь такое название), не считая Delphi, вышла в свет в 1992 году.</p> <p> Разработка Delphi началась в 1993 году. После проведения beta-тестирования Delphi показали на "Software Development '95". И 14 февраля 1995 года официально объявили о ее продаже в США. В торговлю Delphi попала спустя 14 дней, 28 февраля 1995 года</p> Новые позможности языка в Delphi 2006 2013-08-14T01:48:05+07:00 2013-08-14T01:48:05+07:00 https://delphi-hlp.ru/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/novye-pozmozhnosti-yazyka-v-delphi-2006.html Super User toto44@inbox.ru <p><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';"> Delphi 2006 </span><span style="color: #000000; font-family: 'Times New Roman';">появилось</span><span style="color: #000000; font-family: 'Times New Roman';">много</span><span style="color: #000000; font-family: 'Times New Roman';">расширений</span><span style="color: #000000; font-family: 'Times New Roman';">языка</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">том</span><span style="color: #000000; font-family: 'Times New Roman';">числе</span><span style="color: #000000; font-family: 'Times New Roman';">перегрузка</span><span style="color: #000000; font-family: 'Times New Roman';">операторов</span><span style="color: #000000; font-family: 'Times New Roman';">, "Class-like" </span><span style="color: #000000; font-family: 'Times New Roman';">записи</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">Что</span><span style="color: #000000; font-family: 'Times New Roman';">позволяет</span><span style="color: #000000; font-family: 'Times New Roman';">создавать</span><span style="color: #000000; font-family: 'Times New Roman';">собственные</span><span style="color: #000000; font-family: 'Times New Roman';">типы</span><span style="color: #000000; font-family: 'Times New Roman';">данных</span><span style="color: #000000; font-family: 'Times New Roman';"> (</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">классы</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">именно</span><span style="color: #000000; font-family: 'Times New Roman';">типы</span><span style="color: #000000; font-family: 'Times New Roman';">значения</span><span style="color: #000000; font-family: 'Times New Roman';">)! </span><span style="color: #000000; font-family: 'Times New Roman';">Для</span><span style="color: #000000; font-family: 'Times New Roman';">демонстрации</span><span style="color: #000000; font-family: 'Times New Roman';">этих</span><span style="color: #000000; font-family: 'Times New Roman';">возможностей</span><span style="color: #000000; font-family: 'Times New Roman';">я</span><span style="color: #000000; font-family: 'Times New Roman';">написал</span><span style="color: #000000; font-family: 'Times New Roman';">тип</span><span style="color: #000000; font-family: 'Times New Roman';"> TDate </span><span style="color: #000000; font-family: 'Times New Roman';">для</span><span style="color: #000000; font-family: 'Times New Roman';">работы</span><span style="color: #000000; font-family: 'Times New Roman';">с</span><span style="color: #000000; font-family: 'Times New Roman';">датами</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/novye-pozmozhnosti-yazyka-v-delphi-2006.html">Подробнее...</a></p> <p><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';"> Delphi 2006 </span><span style="color: #000000; font-family: 'Times New Roman';">появилось</span><span style="color: #000000; font-family: 'Times New Roman';">много</span><span style="color: #000000; font-family: 'Times New Roman';">расширений</span><span style="color: #000000; font-family: 'Times New Roman';">языка</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">том</span><span style="color: #000000; font-family: 'Times New Roman';">числе</span><span style="color: #000000; font-family: 'Times New Roman';">перегрузка</span><span style="color: #000000; font-family: 'Times New Roman';">операторов</span><span style="color: #000000; font-family: 'Times New Roman';">, "Class-like" </span><span style="color: #000000; font-family: 'Times New Roman';">записи</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">Что</span><span style="color: #000000; font-family: 'Times New Roman';">позволяет</span><span style="color: #000000; font-family: 'Times New Roman';">создавать</span><span style="color: #000000; font-family: 'Times New Roman';">собственные</span><span style="color: #000000; font-family: 'Times New Roman';">типы</span><span style="color: #000000; font-family: 'Times New Roman';">данных</span><span style="color: #000000; font-family: 'Times New Roman';"> (</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">классы</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">именно</span><span style="color: #000000; font-family: 'Times New Roman';">типы</span><span style="color: #000000; font-family: 'Times New Roman';">значения</span><span style="color: #000000; font-family: 'Times New Roman';">)! </span><span style="color: #000000; font-family: 'Times New Roman';">Для</span><span style="color: #000000; font-family: 'Times New Roman';">демонстрации</span><span style="color: #000000; font-family: 'Times New Roman';">этих</span><span style="color: #000000; font-family: 'Times New Roman';">возможностей</span><span style="color: #000000; font-family: 'Times New Roman';">я</span><span style="color: #000000; font-family: 'Times New Roman';">написал</span><span style="color: #000000; font-family: 'Times New Roman';">тип</span><span style="color: #000000; font-family: 'Times New Roman';"> TDate </span><span style="color: #000000; font-family: 'Times New Roman';">для</span><span style="color: #000000; font-family: 'Times New Roman';">работы</span><span style="color: #000000; font-family: 'Times New Roman';">с</span><span style="color: #000000; font-family: 'Times New Roman';">датами</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/novye-pozmozhnosti-yazyka-v-delphi-2006.html">Подробнее...</a></p> Переход от Delphi 7 к Developer Studio 2006 - сравнивая компоненты 2013-08-14T01:44:06+07:00 2013-08-14T01:44:06+07:00 https://delphi-hlp.ru/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/perekhod-ot-delphi-7-k-developer-studio-2006-sravnivaya-komponenty.html Super User toto44@inbox.ru <p> </p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">Переход</span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">от</span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;"> Delphi 7 </span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">к</span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;"> Developer Studio 2006 - </span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">сравнивая </span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">компоненты</span></p> <p style="margin: 7px 0px; text-align: right;"><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">©</span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;"> 2005 </span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">Сергей</span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">Досюков</span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">, </span><span style="color: #0000ff; font-family: 'Times New Roman'; font-style: italic; text-decoration: underline;">Dragon Soft</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">Каждая</span><span style="color: #000000; font-family: 'Times New Roman';">версия</span><span style="color: #000000; font-family: 'Times New Roman';">продукта</span><span style="color: #000000; font-family: 'Times New Roman';">представляет</span><span style="color: #000000; font-family: 'Times New Roman';">новые</span><span style="color: #000000; font-family: 'Times New Roman';">возможности</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">то</span><span style="color: #000000; font-family: 'Times New Roman';">же</span><span style="color: #000000; font-family: 'Times New Roman';">время</span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">то</span><span style="color: #000000; font-family: 'Times New Roman';">может</span><span style="color: #000000; font-family: 'Times New Roman';">быть</span><span style="color: #000000; font-family: 'Times New Roman';">удалено</span><span style="color: #000000; font-family: 'Times New Roman';">как</span><span style="color: #000000; font-family: 'Times New Roman';">устаревшее</span><span style="color: #000000; font-family: 'Times New Roman';">или</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">используемое</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';"> Borland Delphi </span><span style="color: #000000; font-family: 'Times New Roman';">или</span><span style="color: #000000; font-family: 'Times New Roman';"> C++Builder </span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">являются</span><span style="color: #000000; font-family: 'Times New Roman';">исключением</span><span style="color: #000000; font-family: 'Times New Roman';">.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">Когда</span><span style="color: #000000; font-family: 'Times New Roman';">вы</span><span style="color: #000000; font-family: 'Times New Roman';">разрабатываете</span><span style="color: #000000; font-family: 'Times New Roman';">программный</span><span style="color: #000000; font-family: 'Times New Roman';">продукт</span><span style="color: #000000; font-family: 'Times New Roman';">разрабатывался</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">протяжении</span><span style="color: #000000; font-family: 'Times New Roman';">нескольких</span><span style="color: #000000; font-family: 'Times New Roman';">лет</span><span style="color: #000000; font-family: 'Times New Roman';">всегда</span><span style="color: #000000; font-family: 'Times New Roman';">возникает</span><span style="color: #000000; font-family: 'Times New Roman';">вопрос</span><span style="color: #000000; font-family: 'Times New Roman';">при</span><span style="color: #000000; font-family: 'Times New Roman';">переходе</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">новую</span><span style="color: #000000; font-family: 'Times New Roman';">версию</span><span style="color: #000000; font-family: 'Times New Roman';">среды</span><span style="color: #000000; font-family: 'Times New Roman';">разработки</span><span style="color: #000000; font-family: 'Times New Roman';"> - "</span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">все</span><span style="color: #000000; font-family: 'Times New Roman';">ли</span><span style="color: #000000; font-family: 'Times New Roman';">компоненты</span><span style="color: #000000; font-family: 'Times New Roman';">доступны</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">появилось</span><span style="color: #000000; font-family: 'Times New Roman';">нового</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">возможен</span><span style="color: #000000; font-family: 'Times New Roman';">ли</span><span style="color: #000000; font-family: 'Times New Roman';">переход</span><span style="color: #000000; font-family: 'Times New Roman';">вообще</span><span style="color: #000000; font-family: 'Times New Roman';">?". </span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">10/10/2005 Borland </span><span style="color: #000000; font-family: 'Times New Roman';">представил</span><span style="color: #000000; font-family: 'Times New Roman';">новую</span><span style="color: #000000; font-family: 'Times New Roman';">версию</span><span style="color: #000000; font-family: 'Times New Roman';"> Borland Delphi - Borland Developer Studio 2006. </span><span style="color: #000000; font-family: 'Times New Roman';">Отличительной</span><span style="color: #000000; font-family: 'Times New Roman';">особенностью</span><span style="color: #000000; font-family: 'Times New Roman';">стала</span><span style="color: #000000; font-family: 'Times New Roman';">интеграция</span><span style="color: #000000; font-family: 'Times New Roman';"> C++ </span><span style="color: #000000; font-family: 'Times New Roman';">как</span><span style="color: #000000; font-family: 'Times New Roman';">новаю</span><span style="color: #000000; font-family: 'Times New Roman';">персоналити</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE. </span><span style="color: #000000; font-family: 'Times New Roman';">На</span><span style="color: #000000; font-family: 'Times New Roman';">данный</span><span style="color: #000000; font-family: 'Times New Roman';">момент</span><span style="color: #000000; font-family: 'Times New Roman';">это</span><span style="color: #000000; font-family: 'Times New Roman';">только</span><span style="color: #000000; font-family: 'Times New Roman';">предварительный</span><span style="color: #000000; font-family: 'Times New Roman';">вариант</span><span style="color: #000000; font-family: 'Times New Roman';">кода</span><span style="color: #000000; font-family: 'Times New Roman';">.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';">течении</span><span style="color: #000000; font-family: 'Times New Roman';">последних</span><span style="color: #000000; font-family: 'Times New Roman';">лет</span><span style="color: #000000; font-family: 'Times New Roman';">я</span><span style="color: #000000; font-family: 'Times New Roman';">старался</span><span style="color: #000000; font-family: 'Times New Roman';">отслеживать</span><span style="color: #000000; font-family: 'Times New Roman';">прогресс</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">изменения</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">списке</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">доступных</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> Delphi </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">теперь</span><span style="color: #000000; font-family: 'Times New Roman';">настало</span><span style="color: #000000; font-family: 'Times New Roman';">время</span><span style="color: #000000; font-family: 'Times New Roman';">включить</span><span style="color: #000000; font-family: 'Times New Roman';"> C++Builder.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Примечание</span><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">:</span><span style="color: #000000; font-family: 'Times New Roman';">Когда</span><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">"*"</span><span style="color: #000000; font-family: 'Times New Roman';">присутствует</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">какой</span><span style="color: #000000; font-family: 'Times New Roman';">либо</span><span style="color: #000000; font-family: 'Times New Roman';">колонке</span><span style="color: #000000; font-family: 'Times New Roman';">это</span><span style="color: #000000; font-family: 'Times New Roman';">значит</span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">поле</span><span style="color: #000000; font-family: 'Times New Roman';"> "</span><span style="color: #000000; font-family: 'Times New Roman';">Примечание</span><span style="color: #000000; font-family: 'Times New Roman';">" </span><span style="color: #000000; font-family: 'Times New Roman';">содержит</span><span style="color: #000000; font-family: 'Times New Roman';">дополнительную</span><span style="color: #000000; font-family: 'Times New Roman';">информацию</span><span style="color: #000000; font-family: 'Times New Roman';">.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/perekhod-ot-delphi-7-k-developer-studio-2006-sravnivaya-komponenty.html">Подробнее...</a></p> <p> </p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">Переход</span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">от</span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;"> Delphi 7 </span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">к</span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;"> Developer Studio 2006 - </span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">сравнивая </span><span style="color: #000000; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">компоненты</span></p> <p style="margin: 7px 0px; text-align: right;"><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">©</span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;"> 2005 </span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">Сергей</span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">Досюков</span><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">, </span><span style="color: #0000ff; font-family: 'Times New Roman'; font-style: italic; text-decoration: underline;">Dragon Soft</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">Каждая</span><span style="color: #000000; font-family: 'Times New Roman';">версия</span><span style="color: #000000; font-family: 'Times New Roman';">продукта</span><span style="color: #000000; font-family: 'Times New Roman';">представляет</span><span style="color: #000000; font-family: 'Times New Roman';">новые</span><span style="color: #000000; font-family: 'Times New Roman';">возможности</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">то</span><span style="color: #000000; font-family: 'Times New Roman';">же</span><span style="color: #000000; font-family: 'Times New Roman';">время</span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">то</span><span style="color: #000000; font-family: 'Times New Roman';">может</span><span style="color: #000000; font-family: 'Times New Roman';">быть</span><span style="color: #000000; font-family: 'Times New Roman';">удалено</span><span style="color: #000000; font-family: 'Times New Roman';">как</span><span style="color: #000000; font-family: 'Times New Roman';">устаревшее</span><span style="color: #000000; font-family: 'Times New Roman';">или</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">используемое</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';"> Borland Delphi </span><span style="color: #000000; font-family: 'Times New Roman';">или</span><span style="color: #000000; font-family: 'Times New Roman';"> C++Builder </span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">являются</span><span style="color: #000000; font-family: 'Times New Roman';">исключением</span><span style="color: #000000; font-family: 'Times New Roman';">.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">Когда</span><span style="color: #000000; font-family: 'Times New Roman';">вы</span><span style="color: #000000; font-family: 'Times New Roman';">разрабатываете</span><span style="color: #000000; font-family: 'Times New Roman';">программный</span><span style="color: #000000; font-family: 'Times New Roman';">продукт</span><span style="color: #000000; font-family: 'Times New Roman';">разрабатывался</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">протяжении</span><span style="color: #000000; font-family: 'Times New Roman';">нескольких</span><span style="color: #000000; font-family: 'Times New Roman';">лет</span><span style="color: #000000; font-family: 'Times New Roman';">всегда</span><span style="color: #000000; font-family: 'Times New Roman';">возникает</span><span style="color: #000000; font-family: 'Times New Roman';">вопрос</span><span style="color: #000000; font-family: 'Times New Roman';">при</span><span style="color: #000000; font-family: 'Times New Roman';">переходе</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">новую</span><span style="color: #000000; font-family: 'Times New Roman';">версию</span><span style="color: #000000; font-family: 'Times New Roman';">среды</span><span style="color: #000000; font-family: 'Times New Roman';">разработки</span><span style="color: #000000; font-family: 'Times New Roman';"> - "</span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">все</span><span style="color: #000000; font-family: 'Times New Roman';">ли</span><span style="color: #000000; font-family: 'Times New Roman';">компоненты</span><span style="color: #000000; font-family: 'Times New Roman';">доступны</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">появилось</span><span style="color: #000000; font-family: 'Times New Roman';">нового</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">возможен</span><span style="color: #000000; font-family: 'Times New Roman';">ли</span><span style="color: #000000; font-family: 'Times New Roman';">переход</span><span style="color: #000000; font-family: 'Times New Roman';">вообще</span><span style="color: #000000; font-family: 'Times New Roman';">?". </span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">10/10/2005 Borland </span><span style="color: #000000; font-family: 'Times New Roman';">представил</span><span style="color: #000000; font-family: 'Times New Roman';">новую</span><span style="color: #000000; font-family: 'Times New Roman';">версию</span><span style="color: #000000; font-family: 'Times New Roman';"> Borland Delphi - Borland Developer Studio 2006. </span><span style="color: #000000; font-family: 'Times New Roman';">Отличительной</span><span style="color: #000000; font-family: 'Times New Roman';">особенностью</span><span style="color: #000000; font-family: 'Times New Roman';">стала</span><span style="color: #000000; font-family: 'Times New Roman';">интеграция</span><span style="color: #000000; font-family: 'Times New Roman';"> C++ </span><span style="color: #000000; font-family: 'Times New Roman';">как</span><span style="color: #000000; font-family: 'Times New Roman';">новаю</span><span style="color: #000000; font-family: 'Times New Roman';">персоналити</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE. </span><span style="color: #000000; font-family: 'Times New Roman';">На</span><span style="color: #000000; font-family: 'Times New Roman';">данный</span><span style="color: #000000; font-family: 'Times New Roman';">момент</span><span style="color: #000000; font-family: 'Times New Roman';">это</span><span style="color: #000000; font-family: 'Times New Roman';">только</span><span style="color: #000000; font-family: 'Times New Roman';">предварительный</span><span style="color: #000000; font-family: 'Times New Roman';">вариант</span><span style="color: #000000; font-family: 'Times New Roman';">кода</span><span style="color: #000000; font-family: 'Times New Roman';">.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';">течении</span><span style="color: #000000; font-family: 'Times New Roman';">последних</span><span style="color: #000000; font-family: 'Times New Roman';">лет</span><span style="color: #000000; font-family: 'Times New Roman';">я</span><span style="color: #000000; font-family: 'Times New Roman';">старался</span><span style="color: #000000; font-family: 'Times New Roman';">отслеживать</span><span style="color: #000000; font-family: 'Times New Roman';">прогресс</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">изменения</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">списке</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">доступных</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> Delphi </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">теперь</span><span style="color: #000000; font-family: 'Times New Roman';">настало</span><span style="color: #000000; font-family: 'Times New Roman';">время</span><span style="color: #000000; font-family: 'Times New Roman';">включить</span><span style="color: #000000; font-family: 'Times New Roman';"> C++Builder.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Примечание</span><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">:</span><span style="color: #000000; font-family: 'Times New Roman';">Когда</span><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">"*"</span><span style="color: #000000; font-family: 'Times New Roman';">присутствует</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">какой</span><span style="color: #000000; font-family: 'Times New Roman';">либо</span><span style="color: #000000; font-family: 'Times New Roman';">колонке</span><span style="color: #000000; font-family: 'Times New Roman';">это</span><span style="color: #000000; font-family: 'Times New Roman';">значит</span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">поле</span><span style="color: #000000; font-family: 'Times New Roman';"> "</span><span style="color: #000000; font-family: 'Times New Roman';">Примечание</span><span style="color: #000000; font-family: 'Times New Roman';">" </span><span style="color: #000000; font-family: 'Times New Roman';">содержит</span><span style="color: #000000; font-family: 'Times New Roman';">дополнительную</span><span style="color: #000000; font-family: 'Times New Roman';">информацию</span><span style="color: #000000; font-family: 'Times New Roman';">.</span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/osobennosti-otdelnykh-versij-delfi/perekhod-ot-delphi-7-k-developer-studio-2006-sravnivaya-komponenty.html">Подробнее...</a></p> Проблема использования компонентов в D6/7 от предыдущих версий 2013-08-14T01:26:47+07:00 2013-08-14T01:26:47+07:00 https://delphi-hlp.ru/index.php/delphi-ide/problemy-s-komponentami-i-palitroj-komponentov/problema-ispolzovaniya-komponentov-v-d6-7-ot-predydushchikh-versij.html Super User toto44@inbox.ru <p><span style="color: #000000;">Решение в случае ошибок компиляции пакетов типа: </span><span style="color: #000000; font-style: italic; font-weight: bold;">Missing unit 'Proxies.pas' </span><span style="color: #000000;">и </span><span style="color: #000000; font-style: italic; font-weight: bold;">Missing</span><span style="color: #000000; font-style: italic; font-weight: bold;">DsgnIntf.pas</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">1) Сначала заменить </span></p> <p><span style="color: #008000; font-family: 'Courier New'; font-size: 9pt; font-weight: bold;">uses</span><span style="font-family: 'Courier New'; font-size: 9pt;"> DsgnIntf;</span></p> <p><span style="color: #000000;">на</span></p> <p><span style="color: #008000; font-family: 'Courier New'; font-size: 9pt; font-weight: bold;">uses</span><span style="font-family: 'Courier New'; font-size: 9pt;"> DesignIntf, DesignEditors;</span></p> <p><span style="font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000;">2) Затем</span></p> <p><span style="color: #000000;"> Добавить </span><span style="font-family: 'Courier New'; font-size: 9pt; font-weight: bold;">DesignIde.dcp</span><span style="color: #000000;"> в лист требуемых модулей</span></p> <p><span style="color: #000000;"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Взято с сай</span><span style="color: #000000; font-weight: bold;">та</span>https://www.delphifaq</p> <p><span style="color: #000000;"> </span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">Переименование</span><span style="color: #000000; font-family: 'Times New Roman';">модулей</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">решит</span><span style="color: #000000; font-family: 'Times New Roman';">проблемы</span><span style="color: #000000; font-family: 'Times New Roman';"> 'Proxies.pas' </span><span style="color: #000000; font-family: 'Times New Roman';">Эта</span><span style="color: #000000; font-family: 'Times New Roman';">проблема</span><span style="color: #000000; font-family: 'Times New Roman';">возкает</span><span style="color: #000000; font-family: 'Times New Roman';">из</span><span style="color: #000000; font-family: 'Times New Roman';">-</span><span style="color: #000000; font-family: 'Times New Roman';">за</span><span style="color: #000000; font-family: 'Times New Roman';">того</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">сами</span><span style="color: #000000; font-family: 'Times New Roman';">компоненты</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">редакторы</span><span style="color: #000000; font-family: 'Times New Roman';">свойств</span><span style="color: #000000; font-family: 'Times New Roman';">помещают</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">один</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Это</span><span style="color: #000000; font-family: 'Times New Roman';">нехорошо</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">но</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> D5 </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">ниже</span><span style="color: #000000; font-family: 'Times New Roman';">проходило</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">начиная</span><span style="color: #000000; font-family: 'Times New Roman';">с</span><span style="color: #000000; font-family: 'Times New Roman';"> D6 </span><span style="color: #000000; font-family: 'Times New Roman';">уже</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">проходит</span><span style="color: #000000; font-family: 'Times New Roman';">.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Пакет</span><span style="color: #000000; font-family: 'Times New Roman';">разбиваете</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">два</span><span style="color: #000000; font-family: 'Times New Roman';">: run-time </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';"> design-time.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">содержит</span><span style="color: #000000; font-family: 'Times New Roman';">ТОЛЬКО</span><span style="color: #000000; font-family: 'Times New Roman';">код</span><span style="color: #000000; font-family: 'Times New Roman';">самих</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">больше</span><span style="color: #000000; font-family: 'Times New Roman';">НИЧЕГО</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">Ни</span><span style="color: #000000; font-family: 'Times New Roman';">один</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">должен</span><span style="color: #000000; font-family: 'Times New Roman';">ссылаться</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> uses </span><span style="color: #000000; font-family: 'Times New Roman';">ни</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">один</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';"> DT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">секции</span><span style="color: #000000; font-family: 'Times New Roman';"> Requires </span><span style="color: #000000; font-family: 'Times New Roman';">могут</span><span style="color: #000000; font-family: 'Times New Roman';">содержаться</span><span style="color: #000000; font-family: 'Times New Roman';">ТОЛЬКО</span><span style="color: #000000; font-family: 'Times New Roman';"> run-time </span><span style="color: #000000; font-family: 'Times New Roman';">модули</span><span style="color: #000000; font-family: 'Times New Roman';"> VCL.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Компилируется</span><span style="color: #000000; font-family: 'Times New Roman';"> RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">любой</span><span style="color: #000000; font-family: 'Times New Roman';">каталог</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">доступный</span><span style="color: #000000; font-family: 'Times New Roman';">через</span><span style="color: #000000; font-family: 'Times New Roman';">пути</span><span style="color: #000000; font-family: 'Times New Roman';">поиска</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE, </span><span style="color: #000000; font-family: 'Times New Roman';">либо</span><span style="color: #000000; font-family: 'Times New Roman';">через</span><span style="color: #000000; font-family: 'Times New Roman';">переменную</span><span style="color: #000000; font-family: 'Times New Roman';">системного</span><span style="color: #000000; font-family: 'Times New Roman';">окружения</span><span style="color: #000000; font-family: 'Times New Roman';"> Path. </span><span style="color: #000000; font-family: 'Times New Roman';">Инсталлировать</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE </span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">нужно</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">DT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">содержит</span><span style="color: #000000; font-family: 'Times New Roman';">процедуру</span><span style="color: #000000; font-family: 'Times New Roman';"> Register, </span><span style="color: #000000; font-family: 'Times New Roman';">иконки</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">все</span><span style="color: #000000; font-family: 'Times New Roman';"> design-time </span><span style="color: #000000; font-family: 'Times New Roman';">редакторы</span><span style="color: #000000; font-family: 'Times New Roman';"> (</span><span style="color: #000000; font-family: 'Times New Roman';">свойств</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">), </span><span style="color: #000000; font-family: 'Times New Roman';">если</span><span style="color: #000000; font-family: 'Times New Roman';">такие</span><span style="color: #000000; font-family: 'Times New Roman';">есть</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">Любой</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';">может</span><span style="color: #000000; font-family: 'Times New Roman';">ссылаться</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> uses </span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">любой</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';">из</span><span style="color: #000000; font-family: 'Times New Roman';"> RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">секцию</span><span style="color: #000000; font-family: 'Times New Roman';"> Requires </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">подключается</span><span style="color: #000000; font-family: 'Times New Roman';"> DesignIDE.dcp. </span><span style="color: #000000; font-family: 'Times New Roman';">Компилируется</span><span style="color: #000000; font-family: 'Times New Roman';">он</span><span style="color: #000000; font-family: 'Times New Roman';">куда</span><span style="color: #000000; font-family: 'Times New Roman';">угодно</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">должен</span><span style="color: #000000; font-family: 'Times New Roman';">инсталлироваться</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Таким</span><span style="color: #000000; font-family: 'Times New Roman';">образом</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">конечные</span><span style="color: #000000; font-family: 'Times New Roman';">приложения</span><span style="color: #000000; font-family: 'Times New Roman';">будут</span><span style="color: #000000; font-family: 'Times New Roman';">подключаться</span><span style="color: #000000; font-family: 'Times New Roman';">только</span><span style="color: #000000; font-family: 'Times New Roman';">модули</span><span style="color: #000000; font-family: 'Times New Roman';"> RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">которых</span><span style="color: #000000; font-family: 'Times New Roman';">нет</span><span style="color: #000000; font-family: 'Times New Roman';">ссылок</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';"> DesignEditors - </span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">тогда</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">потребуется</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';"> Proxies. </span><span style="color: #000000; font-family: 'Times New Roman';">Кроме</span><span style="color: #000000; font-family: 'Times New Roman';">того</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">конечный</span><span style="color: #000000; font-family: 'Times New Roman';">проект</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">будут</span><span style="color: #000000; font-family: 'Times New Roman';">подтягиваться</span><span style="color: #000000; font-family: 'Times New Roman';">ненужные</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> run-time </span><span style="color: #000000; font-family: 'Times New Roman';">код</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">ресурсы</span><span style="color: #000000; font-family: 'Times New Roman';">из</span><span style="color: #000000; font-family: 'Times New Roman';"> DT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Отвечал</span><span style="color: #000000; font-family: 'Times New Roman';">Юрий</span><span style="color: #000000; font-family: 'Times New Roman';">Зотов</span></p> <p><span style="color: #000000;">Решение в случае ошибок компиляции пакетов типа: </span><span style="color: #000000; font-style: italic; font-weight: bold;">Missing unit 'Proxies.pas' </span><span style="color: #000000;">и </span><span style="color: #000000; font-style: italic; font-weight: bold;">Missing</span><span style="color: #000000; font-style: italic; font-weight: bold;">DsgnIntf.pas</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">1) Сначала заменить </span></p> <p><span style="color: #008000; font-family: 'Courier New'; font-size: 9pt; font-weight: bold;">uses</span><span style="font-family: 'Courier New'; font-size: 9pt;"> DsgnIntf;</span></p> <p><span style="color: #000000;">на</span></p> <p><span style="color: #008000; font-family: 'Courier New'; font-size: 9pt; font-weight: bold;">uses</span><span style="font-family: 'Courier New'; font-size: 9pt;"> DesignIntf, DesignEditors;</span></p> <p><span style="font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000;">2) Затем</span></p> <p><span style="color: #000000;"> Добавить </span><span style="font-family: 'Courier New'; font-size: 9pt; font-weight: bold;">DesignIde.dcp</span><span style="color: #000000;"> в лист требуемых модулей</span></p> <p><span style="color: #000000;"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #000000; font-weight: bold;">Взято с сай</span><span style="color: #000000; font-weight: bold;">та</span>https://www.delphifaq</p> <p><span style="color: #000000;"> </span></p> <hr size="1" noshade="noshade" style="color: #000000;" /> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';">Переименование</span><span style="color: #000000; font-family: 'Times New Roman';">модулей</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">решит</span><span style="color: #000000; font-family: 'Times New Roman';">проблемы</span><span style="color: #000000; font-family: 'Times New Roman';"> 'Proxies.pas' </span><span style="color: #000000; font-family: 'Times New Roman';">Эта</span><span style="color: #000000; font-family: 'Times New Roman';">проблема</span><span style="color: #000000; font-family: 'Times New Roman';">возкает</span><span style="color: #000000; font-family: 'Times New Roman';">из</span><span style="color: #000000; font-family: 'Times New Roman';">-</span><span style="color: #000000; font-family: 'Times New Roman';">за</span><span style="color: #000000; font-family: 'Times New Roman';">того</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">что</span><span style="color: #000000; font-family: 'Times New Roman';">сами</span><span style="color: #000000; font-family: 'Times New Roman';">компоненты</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">редакторы</span><span style="color: #000000; font-family: 'Times New Roman';">свойств</span><span style="color: #000000; font-family: 'Times New Roman';">помещают</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">один</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Это</span><span style="color: #000000; font-family: 'Times New Roman';">нехорошо</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">но</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> D5 </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">ниже</span><span style="color: #000000; font-family: 'Times New Roman';">проходило</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">начиная</span><span style="color: #000000; font-family: 'Times New Roman';">с</span><span style="color: #000000; font-family: 'Times New Roman';"> D6 </span><span style="color: #000000; font-family: 'Times New Roman';">уже</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">проходит</span><span style="color: #000000; font-family: 'Times New Roman';">.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Пакет</span><span style="color: #000000; font-family: 'Times New Roman';">разбиваете</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">два</span><span style="color: #000000; font-family: 'Times New Roman';">: run-time </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';"> design-time.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">содержит</span><span style="color: #000000; font-family: 'Times New Roman';">ТОЛЬКО</span><span style="color: #000000; font-family: 'Times New Roman';">код</span><span style="color: #000000; font-family: 'Times New Roman';">самих</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">больше</span><span style="color: #000000; font-family: 'Times New Roman';">НИЧЕГО</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">Ни</span><span style="color: #000000; font-family: 'Times New Roman';">один</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">должен</span><span style="color: #000000; font-family: 'Times New Roman';">ссылаться</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> uses </span><span style="color: #000000; font-family: 'Times New Roman';">ни</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">один</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';"> DT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">секции</span><span style="color: #000000; font-family: 'Times New Roman';"> Requires </span><span style="color: #000000; font-family: 'Times New Roman';">могут</span><span style="color: #000000; font-family: 'Times New Roman';">содержаться</span><span style="color: #000000; font-family: 'Times New Roman';">ТОЛЬКО</span><span style="color: #000000; font-family: 'Times New Roman';"> run-time </span><span style="color: #000000; font-family: 'Times New Roman';">модули</span><span style="color: #000000; font-family: 'Times New Roman';"> VCL.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Компилируется</span><span style="color: #000000; font-family: 'Times New Roman';"> RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">любой</span><span style="color: #000000; font-family: 'Times New Roman';">каталог</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">доступный</span><span style="color: #000000; font-family: 'Times New Roman';">через</span><span style="color: #000000; font-family: 'Times New Roman';">пути</span><span style="color: #000000; font-family: 'Times New Roman';">поиска</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE, </span><span style="color: #000000; font-family: 'Times New Roman';">либо</span><span style="color: #000000; font-family: 'Times New Roman';">через</span><span style="color: #000000; font-family: 'Times New Roman';">переменную</span><span style="color: #000000; font-family: 'Times New Roman';">системного</span><span style="color: #000000; font-family: 'Times New Roman';">окружения</span><span style="color: #000000; font-family: 'Times New Roman';"> Path. </span><span style="color: #000000; font-family: 'Times New Roman';">Инсталлировать</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE </span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">нужно</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">DT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакет</span><span style="color: #000000; font-family: 'Times New Roman';">содержит</span><span style="color: #000000; font-family: 'Times New Roman';">процедуру</span><span style="color: #000000; font-family: 'Times New Roman';"> Register, </span><span style="color: #000000; font-family: 'Times New Roman';">иконки</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">все</span><span style="color: #000000; font-family: 'Times New Roman';"> design-time </span><span style="color: #000000; font-family: 'Times New Roman';">редакторы</span><span style="color: #000000; font-family: 'Times New Roman';"> (</span><span style="color: #000000; font-family: 'Times New Roman';">свойств</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">компонентов</span><span style="color: #000000; font-family: 'Times New Roman';">), </span><span style="color: #000000; font-family: 'Times New Roman';">если</span><span style="color: #000000; font-family: 'Times New Roman';">такие</span><span style="color: #000000; font-family: 'Times New Roman';">есть</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">Любой</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';">может</span><span style="color: #000000; font-family: 'Times New Roman';">ссылаться</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> uses </span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';">любой</span><span style="color: #000000; font-family: 'Times New Roman';">модуль</span><span style="color: #000000; font-family: 'Times New Roman';">из</span><span style="color: #000000; font-family: 'Times New Roman';"> RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">. </span><span style="color: #000000; font-family: 'Times New Roman';">В</span><span style="color: #000000; font-family: 'Times New Roman';">его</span><span style="color: #000000; font-family: 'Times New Roman';">секцию</span><span style="color: #000000; font-family: 'Times New Roman';"> Requires </span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">подключается</span><span style="color: #000000; font-family: 'Times New Roman';"> DesignIDE.dcp. </span><span style="color: #000000; font-family: 'Times New Roman';">Компилируется</span><span style="color: #000000; font-family: 'Times New Roman';">он</span><span style="color: #000000; font-family: 'Times New Roman';">куда</span><span style="color: #000000; font-family: 'Times New Roman';">угодно</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">должен</span><span style="color: #000000; font-family: 'Times New Roman';">инсталлироваться</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> IDE.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Таким</span><span style="color: #000000; font-family: 'Times New Roman';">образом</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">конечные</span><span style="color: #000000; font-family: 'Times New Roman';">приложения</span><span style="color: #000000; font-family: 'Times New Roman';">будут</span><span style="color: #000000; font-family: 'Times New Roman';">подключаться</span><span style="color: #000000; font-family: 'Times New Roman';">только</span><span style="color: #000000; font-family: 'Times New Roman';">модули</span><span style="color: #000000; font-family: 'Times New Roman';"> RT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">которых</span><span style="color: #000000; font-family: 'Times New Roman';">нет</span><span style="color: #000000; font-family: 'Times New Roman';">ссылок</span><span style="color: #000000; font-family: 'Times New Roman';">на</span><span style="color: #000000; font-family: 'Times New Roman';"> DesignEditors - </span><span style="color: #000000; font-family: 'Times New Roman';">а</span><span style="color: #000000; font-family: 'Times New Roman';">тогда</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">потребуется</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';"> Proxies. </span><span style="color: #000000; font-family: 'Times New Roman';">Кроме</span><span style="color: #000000; font-family: 'Times New Roman';">того</span><span style="color: #000000; font-family: 'Times New Roman';">, </span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';">конечный</span><span style="color: #000000; font-family: 'Times New Roman';">проект</span><span style="color: #000000; font-family: 'Times New Roman';">не</span><span style="color: #000000; font-family: 'Times New Roman';">будут</span><span style="color: #000000; font-family: 'Times New Roman';">подтягиваться</span><span style="color: #000000; font-family: 'Times New Roman';">ненужные</span><span style="color: #000000; font-family: 'Times New Roman';">в</span><span style="color: #000000; font-family: 'Times New Roman';"> run-time </span><span style="color: #000000; font-family: 'Times New Roman';">код</span><span style="color: #000000; font-family: 'Times New Roman';">и</span><span style="color: #000000; font-family: 'Times New Roman';">ресурсы</span><span style="color: #000000; font-family: 'Times New Roman';">из</span><span style="color: #000000; font-family: 'Times New Roman';"> DT-</span><span style="color: #000000; font-family: 'Times New Roman';">пакета</span><span style="color: #000000; font-family: 'Times New Roman';">.</span><br /><span style="color: #000000; font-family: 'Times New Roman';"> </span><br /><span style="color: #000000; font-family: 'Times New Roman';">Отвечал</span><span style="color: #000000; font-family: 'Times New Roman';">Юрий</span><span style="color: #000000; font-family: 'Times New Roman';">Зотов</span></p> Установка справки для сторонних компонент под d2005, d2006 2013-08-14T01:28:50+07:00 2013-08-14T01:28:50+07:00 https://delphi-hlp.ru/index.php/delphi-ide/problemy-s-komponentami-i-palitroj-komponentov/ustanovka-spravki-dlya-storonnikh-komponent-pod-d2005-d2006.html Super User toto44@inbox.ru <p><br />Новый формат справки, используемый в d2005, d2006 использует файлы с расширением HXI, HXS и ini. Хуже он или лучше предыдущих реализаций – судить не имеет смысла, он просто есть и им приходится пользоваться. Для установки справки для сторонних компонентов, например DevExpress нужно сделать следующее:<br />1. Воспользоваться утилитой H2Reg.exe, поставляемой вместе с <br />BDS (../Help/Thirdparty) для каждого ini файла в поставке.<br />Команда для регистрации будет выглядеть так<br />"c:\Program Files\Borland\BDS\4.0\Help\Thirdparty\H2Reg.exe" -r -m "CmdFile=&lt;path&gt;HelpFile.ini" "UserDir1=&lt;path&gt;<br /> 2. Перезапустить BDS. (Вещь, в общем-то не обязательная, но желательная)<br />  <br />Примечание для DevExpress: перед регистрацией необходимо во всех ini файлах заменить <br /> строки типа %IDE_Namespace_Postfix% на bds4 (для D2006).<br />  <br />по материалам sql.ru</p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p>Автор: <span style="color: #0000ff; font-family: 'Times New Roman'; text-decoration: underline;">phanatos</span></p> <p><br />Новый формат справки, используемый в d2005, d2006 использует файлы с расширением HXI, HXS и ini. Хуже он или лучше предыдущих реализаций – судить не имеет смысла, он просто есть и им приходится пользоваться. Для установки справки для сторонних компонентов, например DevExpress нужно сделать следующее:<br />1. Воспользоваться утилитой H2Reg.exe, поставляемой вместе с <br />BDS (../Help/Thirdparty) для каждого ini файла в поставке.<br />Команда для регистрации будет выглядеть так<br />"c:\Program Files\Borland\BDS\4.0\Help\Thirdparty\H2Reg.exe" -r -m "CmdFile=&lt;path&gt;HelpFile.ini" "UserDir1=&lt;path&gt;<br /> 2. Перезапустить BDS. (Вещь, в общем-то не обязательная, но желательная)<br />  <br />Примечание для DevExpress: перед регистрацией необходимо во всех ini файлах заменить <br /> строки типа %IDE_Namespace_Postfix% на bds4 (для D2006).<br />  <br />по материалам sql.ru</p> <p style="margin: 7px 0px;"><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p>Автор: <span style="color: #0000ff; font-family: 'Times New Roman'; text-decoration: underline;">phanatos</span></p> Borland Delphi/C++Builder ToolsAPI, или взгляд на Borland IDE изнутри 2013-08-13T20:38:08+07:00 2013-08-13T20:38:08+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/borland-delphi-c-builder-toolsapi-ili-vzglyad-na-borland-ide-iznutri.html Super User toto44@inbox.ru <p style="margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #0000ff; text-decoration: underline;">Андрей</span><span style="font-family: 'Times New Roman'; color: #0000ff; text-decoration: underline;">Семак</span></p> <p style="margin-top: 7px; margin-right: 0px; margin-bottom: 7px; margin-left: 0px; text-align: center;"><span style="font-family: 'Times New Roman'; color: #0000ff; text-decoration: underline;"><span style="font-family: 'Arial'; color: #996600; font-size: 8pt; font-weight: bold;">Введение</span></span></p> <p style="text-align: justify; text-indent: 24px; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">Рано или поздно каждому профессиональному разработчику программного обеспечения становится тесной среда обитания. По мнению автора, читатель понял, что речь идет о среде разработки, в которой обитает разработчик. У кого это "дом", у кого "строительная площадка", а у кого и то, и другое. В этой статье мы рассмотрим возможность расширения нашего дома. Мы покажем, как именно можно наращивать мощность IDE своими силами, будь то среда разработки Borland Delphi или Borland C++ Builder. </span></p> <p style="text-align: justify; text-indent: 24px; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">У многих из вас возникало желание добавить несколько полезных функций в любимое IDE. Разработчики фирмы Borland не оставили без внимания эту полезную возможность. Они разработали набор интерфейсов, позволяющих расширять возможности среды, хотя, к сожалению, отсутствие документации по данному вопросу мешает самостоятельному изучению. Жалкие комментарии в исходных текстах не могут воспроизвести всю мощь, которую предоставляет IDE разработчику расширений. Автор статьи попытается передать читателю опыт своих изысканий и постарается своими советами уберечь читателя от многих подводных камней. </span></p> <p style="text-align: justify; text-indent: 24px; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">Документ построен таким образом, чтобы мы переходили от этапа к этапу от простого к сложному. Насколько это удалось, судить вам. Вместе c вами мы рассмотрим на примерах все сервисы, предоставляемые IDE Borland Delphi\C++Builder. </span></p> <p style="text-align: justify;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">Итак, начнем?</span></p> <p style="text-align: justify;"> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/borland-delphi-c-builder-toolsapi-ili-vzglyad-na-borland-ide-iznutri.html">Подробнее...</a></p> <p style="margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #0000ff; text-decoration: underline;">Андрей</span><span style="font-family: 'Times New Roman'; color: #0000ff; text-decoration: underline;">Семак</span></p> <p style="margin-top: 7px; margin-right: 0px; margin-bottom: 7px; margin-left: 0px; text-align: center;"><span style="font-family: 'Times New Roman'; color: #0000ff; text-decoration: underline;"><span style="font-family: 'Arial'; color: #996600; font-size: 8pt; font-weight: bold;">Введение</span></span></p> <p style="text-align: justify; text-indent: 24px; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">Рано или поздно каждому профессиональному разработчику программного обеспечения становится тесной среда обитания. По мнению автора, читатель понял, что речь идет о среде разработки, в которой обитает разработчик. У кого это "дом", у кого "строительная площадка", а у кого и то, и другое. В этой статье мы рассмотрим возможность расширения нашего дома. Мы покажем, как именно можно наращивать мощность IDE своими силами, будь то среда разработки Borland Delphi или Borland C++ Builder. </span></p> <p style="text-align: justify; text-indent: 24px; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">У многих из вас возникало желание добавить несколько полезных функций в любимое IDE. Разработчики фирмы Borland не оставили без внимания эту полезную возможность. Они разработали набор интерфейсов, позволяющих расширять возможности среды, хотя, к сожалению, отсутствие документации по данному вопросу мешает самостоятельному изучению. Жалкие комментарии в исходных текстах не могут воспроизвести всю мощь, которую предоставляет IDE разработчику расширений. Автор статьи попытается передать читателю опыт своих изысканий и постарается своими советами уберечь читателя от многих подводных камней. </span></p> <p style="text-align: justify; text-indent: 24px; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">Документ построен таким образом, чтобы мы переходили от этапа к этапу от простого к сложному. Насколько это удалось, судить вам. Вместе c вами мы рассмотрим на примерах все сервисы, предоставляемые IDE Borland Delphi\C++Builder. </span></p> <p style="text-align: justify;"><span style="font-family: 'Arial'; color: #000000; font-size: 8pt;">Итак, начнем?</span></p> <p style="text-align: justify;"> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/borland-delphi-c-builder-toolsapi-ili-vzglyad-na-borland-ide-iznutri.html">Подробнее...</a></p> Delphi 7 ToolsAPI: Компоненты 2013-08-13T19:16:36+07:00 2013-08-13T19:16:36+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/delphi-7-toolsapi-komponenty.html Super User toto44@inbox.ru <p>Создание pop-up меню своего компонента и кое-что еще о классе TComponentExpert</p> <p>Давайте рассмотрим создание простейшего одно уровневого контекстного меню на своем компоненте, которое будет открываться при щелчке правой кнопкой по нему в самом верху контекстного меню Delphi.</p> <p> </p> <p>Прежде всего вам следует разделить код вашего компонента на Design-time и Run-time. Для этого перенесите ваш компонент в модуль, с названием, например, MyComponent.pas, а процедуры регистрации его в палитре компонентов (procedure Register и т.д.) в модуль, с названием, например, MyComponentReg. На такие меры приходится идти из-за того, что Borland не включила в исходные коды исходник файла Proxies.pas.</p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/delphi-7-toolsapi-komponenty.html">Подробнее...</a></p> <p>Создание pop-up меню своего компонента и кое-что еще о классе TComponentExpert</p> <p>Давайте рассмотрим создание простейшего одно уровневого контекстного меню на своем компоненте, которое будет открываться при щелчке правой кнопкой по нему в самом верху контекстного меню Delphi.</p> <p> </p> <p>Прежде всего вам следует разделить код вашего компонента на Design-time и Run-time. Для этого перенесите ваш компонент в модуль, с названием, например, MyComponent.pas, а процедуры регистрации его в палитре компонентов (procedure Register и т.д.) в модуль, с названием, например, MyComponentReg. На такие меры приходится идти из-за того, что Borland не включила в исходные коды исходник файла Proxies.pas.</p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/delphi-7-toolsapi-komponenty.html">Подробнее...</a></p> Ещё примеры экспертов 2013-08-13T20:17:18+07:00 2013-08-13T20:17:18+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/eshchjo-primery-ekspertov.html Super User toto44@inbox.ru <p> </p> <p>This article introduces you to the world of Delphi Experts. Delphi Experts are DLLs, that will be loaded during the startup sequence of Delphi. This article first appeared on Delphi-PRAXiShttps://www.delphipraxis.net/viewtopic.php?t=5300 in German.</p> <p> </p> <p>NOTE: The techniques shown in this article are valid starting with Delphi 3 or 4 and since Delphi 7 they are deprecated, however, still fully suported by the Delphi IDE.</p> <p> </p> <p class="p_Heading1"><span class="f_Heading1">Installation of a Delphi-IDE-Expert</span></p> <p> </p> <p>Every Delphi-Expert has to be registered in the Windows-Registry. For each Delphi-Version installed on a machine, as well as for each user using the machine, the Delphi-Expert has to be registered separately.</p> <p> </p> <p>In the Registry the Delphi-Expert has to be registered under the folowing key:</p> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #0000ff; font-size: 11pt;">HKCU\Software\Borland\Delphi\X.0\Experts</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/eshchjo-primery-ekspertov.html">Подробнее...</a></p> <p> </p> <p>This article introduces you to the world of Delphi Experts. Delphi Experts are DLLs, that will be loaded during the startup sequence of Delphi. This article first appeared on Delphi-PRAXiShttps://www.delphipraxis.net/viewtopic.php?t=5300 in German.</p> <p> </p> <p>NOTE: The techniques shown in this article are valid starting with Delphi 3 or 4 and since Delphi 7 they are deprecated, however, still fully suported by the Delphi IDE.</p> <p> </p> <p class="p_Heading1"><span class="f_Heading1">Installation of a Delphi-IDE-Expert</span></p> <p> </p> <p>Every Delphi-Expert has to be registered in the Windows-Registry. For each Delphi-Version installed on a machine, as well as for each user using the machine, the Delphi-Expert has to be registered separately.</p> <p> </p> <p>In the Registry the Delphi-Expert has to be registered under the folowing key:</p> <p> </p> <p><span style="font-family: 'Times New Roman'; color: #0000ff; font-size: 11pt;">HKCU\Software\Borland\Delphi\X.0\Experts</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/eshchjo-primery-ekspertov.html">Подробнее...</a></p> Использование открытых интерфейсов 2013-08-13T20:18:49+07:00 2013-08-13T20:18:49+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/ispolzovanie-otkrytykh-interfejsov.html Super User toto44@inbox.ru <p><span style="color: #000000;">Одной и наиболее сильных сторон среды программирования Delphi является ее открытая архитектура, благодаря которой Delphi допускает своего рода метапрограммирование, позволяя "программировать среду программирования". Такой подход переводит Delphi на качественно новый уровень систем разработки приложений и позволяет встраивать в этот продукт дополнительные инструментальные средства, поддерживающие практически все этапы создания прикладных систем. Столь широкий спектр возможностей открывается благодаря реализованной в Delphi концепции так называемых открытых интерфейсов, являющихся связующим звеном между IDE (Integrated Development Environment) и внешними инструментами. Данная статья посвящена открытым интерфейсам Delphi и представляет собой обзор представляемых ими возможностей. </span></p> <p> </p> <p><span style="color: #000000;">В Delphi определены шесть открытых интерфейсов: Tool Interface, Design Interface, Expert Interface, File Interface, Edit Interface и Version Control Interface. Вряд ли в рамках данной статьи нам удалось бы детально осветить и проиллюстрировать возможности каждого из них. Более основательно разобраться в рассматриваемых вопросах вам помогут исходные тексты Delphi, благо разработчики снабдили их развернутыми комментариями. Объявления классов, представляющих открытые интерфейсы, содержатся в соответствующих модулях в каталоге ...\Delphi\Source\ToolsAPI. </span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/ispolzovanie-otkrytykh-interfejsov.html">Подробнее...</a></p> <p><span style="color: #000000;">Одной и наиболее сильных сторон среды программирования Delphi является ее открытая архитектура, благодаря которой Delphi допускает своего рода метапрограммирование, позволяя "программировать среду программирования". Такой подход переводит Delphi на качественно новый уровень систем разработки приложений и позволяет встраивать в этот продукт дополнительные инструментальные средства, поддерживающие практически все этапы создания прикладных систем. Столь широкий спектр возможностей открывается благодаря реализованной в Delphi концепции так называемых открытых интерфейсов, являющихся связующим звеном между IDE (Integrated Development Environment) и внешними инструментами. Данная статья посвящена открытым интерфейсам Delphi и представляет собой обзор представляемых ими возможностей. </span></p> <p> </p> <p><span style="color: #000000;">В Delphi определены шесть открытых интерфейсов: Tool Interface, Design Interface, Expert Interface, File Interface, Edit Interface и Version Control Interface. Вряд ли в рамках данной статьи нам удалось бы детально осветить и проиллюстрировать возможности каждого из них. Более основательно разобраться в рассматриваемых вопросах вам помогут исходные тексты Delphi, благо разработчики снабдили их развернутыми комментариями. Объявления классов, представляющих открытые интерфейсы, содержатся в соответствующих модулях в каталоге ...\Delphi\Source\ToolsAPI. </span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/ispolzovanie-otkrytykh-interfejsov.html">Подробнее...</a></p> Как найти все установленные компоненты? 2013-08-13T20:34:35+07:00 2013-08-13T20:34:35+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/kak-najti-vse-ustanovlennye-komponenty.html Super User toto44@inbox.ru <p> </p> <p> </p> <p> </p> <div style="text-align: left; text-indent: 0px; margin: 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> ToolsApi;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{....}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">a, i: Integer;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">with</span><span class="f_CodeExample" style="color: #000000;"> (BorlandIDEServices </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">as</span><span class="f_CodeExample" style="color: #000000;"> IOTAPackageServices) </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> a := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetPackageCount - </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> i := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetComponentCount(a) - </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{get each component name with GetComponentName(a, i);}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <p>https://www. swissdelphicenter.ch/en/tipsindex </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <div style="text-align: left; text-indent: 0px; margin: 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> ToolsApi;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{....}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">a, i: Integer;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">with</span><span class="f_CodeExample" style="color: #000000;"> (BorlandIDEServices </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">as</span><span class="f_CodeExample" style="color: #000000;"> IOTAPackageServices) </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> a := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetPackageCount - </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> i := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetComponentCount(a) - </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{get each component name with GetComponentName(a, i);}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <p>https://www. swissdelphicenter.ch/en/tipsindex </p> <p> </p> <p> </p> Как создать простейший эксперт? 2013-08-13T19:15:05+07:00 2013-08-13T19:15:05+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/kak-sozdat-prostejshij-ekspert.html Super User toto44@inbox.ru <p>  </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">This unit can be compiled into a package and will then appear in the Delphi </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">Help menu. </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">unit</span><span class="f_CodeExample" style="color: #000000;"> SDCSimpleExpert; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">interface</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> ToolsApi; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">type</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TSDCSimpleExpert = </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">class</span><span class="f_CodeExample" style="color: #000000;">(TNotifierObject, IOTAMenuWizard, IOTAWizard) </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">public</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetIDString: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetName: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetState: TWizardState; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> Execute; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetMenuText: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Register</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">implementation</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> Dialogs; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Register</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{register expert}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RegisterPackageWizard(TSDCSimpleExpert.Create); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ TSDCSimpleExpert }</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.Execute; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{code to execute when menu item is clicked}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">ShowMessage(</span><span class="f_CodeExample" style="color: #ff0000;">'Hello SwissDelphiCenter Simple Expert.'</span><span class="f_CodeExample" style="color: #000000;">); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetIDString: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{unique expert identifier}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := </span><span class="f_CodeExample" style="color: #ff0000;">'SwissDelphiCenter.SimpleExpert'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetMenuText: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{caption of menu item in help menu}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := </span><span class="f_CodeExample" style="color: #ff0000;">'SwissDelphiCenter Simple Expert'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetName: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{name of the expert}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := </span><span class="f_CodeExample" style="color: #ff0000;">'SwissDelphiCenter Simple Expert'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetState: TWizardState; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := [wsEnabled]; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">. </span></p> </td> </tr> </tbody> </table> </div> <p>  </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">This unit can be compiled into a package and will then appear in the Delphi </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">Help menu. </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">unit</span><span class="f_CodeExample" style="color: #000000;"> SDCSimpleExpert; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">interface</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> ToolsApi; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">type</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TSDCSimpleExpert = </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">class</span><span class="f_CodeExample" style="color: #000000;">(TNotifierObject, IOTAMenuWizard, IOTAWizard) </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">public</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetIDString: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetName: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetState: TWizardState; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> Execute; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> GetMenuText: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Register</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">implementation</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> Dialogs; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">Register</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{register expert}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RegisterPackageWizard(TSDCSimpleExpert.Create); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ TSDCSimpleExpert }</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.Execute; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{code to execute when menu item is clicked}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">ShowMessage(</span><span class="f_CodeExample" style="color: #ff0000;">'Hello SwissDelphiCenter Simple Expert.'</span><span class="f_CodeExample" style="color: #000000;">); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetIDString: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{unique expert identifier}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := </span><span class="f_CodeExample" style="color: #ff0000;">'SwissDelphiCenter.SimpleExpert'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetMenuText: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{caption of menu item in help menu}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := </span><span class="f_CodeExample" style="color: #ff0000;">'SwissDelphiCenter Simple Expert'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetName: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{name of the expert}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := </span><span class="f_CodeExample" style="color: #ff0000;">'SwissDelphiCenter Simple Expert'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TSDCSimpleExpert.GetState: TWizardState; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := [wsEnabled]; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">. </span></p> </td> </tr> </tbody> </table> </div> Как создать свой пункт меню в Дельфи IDE? 2013-08-13T17:07:26+07:00 2013-08-13T17:07:26+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/kak-sozdat-svoj-punkt-menyu-v-delfi-ide.html Super User toto44@inbox.ru <p> </p> <p> </p> <div style="text-align: left; text-indent: 0px; margin: 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{....}</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> ToolsApi, Menus; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{....}</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">item: TMenuItem; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{get reference to delphi's mainmenu. You can handle it like a common TMainMenu}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">with</span><span class="f_CodeExample" style="color: #000000;"> (BorlandIDEServices </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">as</span><span class="f_CodeExample" style="color: #000000;"> INTAServices).GetMainMenu </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> item := TMenuItem.Create(</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">nil</span><span class="f_CodeExample" style="color: #000000;">); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> item.Caption := </span><span class="f_CodeExample" style="color: #ff0000;">'A Mewn caption'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Items.Add(item); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <div style="text-align: left; text-indent: 0px; margin: 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{....}</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span><span class="f_CodeExample" style="color: #000000;"> ToolsApi, Menus; </span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{....}</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">item: TMenuItem; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{get reference to delphi's mainmenu. You can handle it like a common TMainMenu}</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">with</span><span class="f_CodeExample" style="color: #000000;"> (BorlandIDEServices </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">as</span><span class="f_CodeExample" style="color: #000000;"> INTAServices).GetMainMenu </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> item := TMenuItem.Create(</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">nil</span><span class="f_CodeExample" style="color: #000000;">); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> item.Caption := </span><span class="f_CodeExample" style="color: #ff0000;">'A Mewn caption'</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Items.Add(item); </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> </td> </tr> </tbody> </table> </div> Код определения свойств 2013-08-13T20:25:51+07:00 2013-08-13T20:25:51+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/kod-opredeleniya-svojstv.html Super User toto44@inbox.ru <p><span style="color: #000000;">Итак вам опять нужно "немного" кода. Вот небольшой примерчик компонента лично для вас и остальных моих читателей. Установите этот компонент в палитру Delphi, бросьте экземпляр на форму, закройте ее и модуль и откройте форму как файл формы, используя в диалоге открытия тип *.dfm. Вы увидите дополнительные свойства 'StringThing' и 'Thing'. Первое - свойство строки, второе - бинарное свойство, фактически запись. Если вы имеете HexEdit (шестнадцатиричный редактор) или что-то аналогичное, взгляните на ваш dfm-файл и вы увидите тэги ваших новых свойств вместе с их именами.</span></p> <p> </p> <p><span style="color: #000000;">Если TReader/TWriter имеет специфические методы для чтения/записи свойств и вы хотите добавить, например, строку, целое, символ или что-то еще (проверьте описание соответствующих методов TReader в файлах помощи), то в этом случае используйте DefineProperty. В случае сложного объекта используйте DefineBinaryProperty и ваши методы чтения и записи получат TStream вместо TReader/TWriter.</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/kod-opredeleniya-svojstv.html">Подробнее...</a></p> <p><span style="color: #000000;">Итак вам опять нужно "немного" кода. Вот небольшой примерчик компонента лично для вас и остальных моих читателей. Установите этот компонент в палитру Delphi, бросьте экземпляр на форму, закройте ее и модуль и откройте форму как файл формы, используя в диалоге открытия тип *.dfm. Вы увидите дополнительные свойства 'StringThing' и 'Thing'. Первое - свойство строки, второе - бинарное свойство, фактически запись. Если вы имеете HexEdit (шестнадцатиричный редактор) или что-то аналогичное, взгляните на ваш dfm-файл и вы увидите тэги ваших новых свойств вместе с их именами.</span></p> <p> </p> <p><span style="color: #000000;">Если TReader/TWriter имеет специфические методы для чтения/записи свойств и вы хотите добавить, например, строку, целое, символ или что-то еще (проверьте описание соответствующих методов TReader в файлах помощи), то в этом случае используйте DefineProperty. В случае сложного объекта используйте DefineBinaryProperty и ваши методы чтения и записи получат TStream вместо TReader/TWriter.</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/kod-opredeleniya-svojstv.html">Подробнее...</a></p> Отладка экспертов 2013-08-13T19:15:36+07:00 2013-08-13T19:15:36+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/otladka-ekspertov.html Super User toto44@inbox.ru <p> Debug Delphi 3 experts with Delphi 3</p> <p>Delphi 3 has a new feature "debug DLLs". It can be used to debug experts with the internal debugger. Just follow these simple steps, and debugging an expert can be fun:</p> <p>  </p> <p>Make sure that the expert is not installed. If there is this entry</p> <p>\CURRENT_USER\software\Delphi\3.0\experts,</p> <p>myexpert=\projects\myexpert\expert.dll</p> <p>rename this entry to "expert.xxx". (don't delete it, you'll need it later).</p> <p>Otherwise, you cannot compile a new version.</p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/otladka-ekspertov.html">Подробнее...</a></p> <p> Debug Delphi 3 experts with Delphi 3</p> <p>Delphi 3 has a new feature "debug DLLs". It can be used to debug experts with the internal debugger. Just follow these simple steps, and debugging an expert can be fun:</p> <p>  </p> <p>Make sure that the expert is not installed. If there is this entry</p> <p>\CURRENT_USER\software\Delphi\3.0\experts,</p> <p>myexpert=\projects\myexpert\expert.dll</p> <p>rename this entry to "expert.xxx". (don't delete it, you'll need it later).</p> <p>Otherwise, you cannot compile a new version.</p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/otladka-ekspertov.html">Подробнее...</a></p> Показ свойств во время выполнения программы 2013-08-13T20:33:00+07:00 2013-08-13T20:33:00+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/pokaz-svojstv-vo-vremya-vypolneniya-programmy.html Super User toto44@inbox.ru <p><span style="color: #000000;">Я написал компонент-отладчик, выводящий в дереве все компоненты. Попробуйте этот код. Вызывайте функцию DisplayProperties как показано ниже:</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/pokaz-svojstv-vo-vremya-vypolneniya-programmy.html">Подробнее...</a></p> <p><span style="color: #000000;">Я написал компонент-отладчик, выводящий в дереве все компоненты. Попробуйте этот код. Вызывайте функцию DisplayProperties как показано ниже:</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/pokaz-svojstv-vo-vremya-vypolneniya-programmy.html">Подробнее...</a></p> Програмно меняем Delphi's Tool list? 2013-08-13T20:35:24+07:00 2013-08-13T20:35:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/programno-menyaem-delphi-s-tool-list.html Super User toto44@inbox.ru <p>Програмно меняем Delphi's Tool list?  </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/programno-menyaem-delphi-s-tool-list.html">Подробнее...</a></p> <p>Програмно меняем Delphi's Tool list?  </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/programno-menyaem-delphi-s-tool-list.html">Подробнее...</a></p> Регистрация редактора свойства 2013-08-13T20:32:33+07:00 2013-08-13T20:32:33+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/registratsiya-redaktora-svojstva.html Super User toto44@inbox.ru <p> <span style="color: #000000;">Скажем, вы имеете компонент TContainer, содержащий TContainedClass в свойстве с именем 'Contained' - попробуйте добавить следующую строку к процедуре Register вашего компонента:</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RegisterPropertyEditor(TypeInfo(TContainedClass),</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TContainer,</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #ff0000;">'Contained'</span><span class="f_CodeExample" style="color: #000000;">,</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TClassProperty);</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/registratsiya-redaktora-svojstva.html">Подробнее...</a></p> <p> <span style="color: #000000;">Скажем, вы имеете компонент TContainer, содержащий TContainedClass в свойстве с именем 'Contained' - попробуйте добавить следующую строку к процедуре Register вашего компонента:</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RegisterPropertyEditor(TypeInfo(TContainedClass),</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TContainer,</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #ff0000;">'Contained'</span><span class="f_CodeExample" style="color: #000000;">,</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TClassProperty);</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/registratsiya-redaktora-svojstva.html">Подробнее...</a></p> Редактор свойства Color с заданными ограничениями 2013-08-13T20:33:24+07:00 2013-08-13T20:33:24+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/redaktor-svojstva-color-s-zadannymi-ogranicheniyami.html Super User toto44@inbox.ru <p> <span style="color: #000000;">Редактор свойства, пример которого приведен ниже, имеет ограничение на устанавливаемые цвета: только clRed, clWhite или clBlue.</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/redaktor-svojstva-color-s-zadannymi-ogranicheniyami.html">Подробнее...</a></p> <p> <span style="color: #000000;">Редактор свойства, пример которого приведен ниже, имеет ограничение на устанавливаемые цвета: только clRed, clWhite или clBlue.</span></p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/redaktor-svojstva-color-s-zadannymi-ogranicheniyami.html">Подробнее...</a></p> Создание pop-up меню своего компонента и кое-что еще о классе TComponentExpert 2013-08-13T20:37:04+07:00 2013-08-13T20:37:04+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/sozdanie-pop-up-menyu-svoego-komponenta-i-koe-chto-eshche-o-klasse-tcomponentexpert.html Super User toto44@inbox.ru <p style="text-align: justify; margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">Давайте</span><span style="font-family: 'Times New Roman'; color: #000000;">рассмотрим</span><span style="font-family: 'Times New Roman'; color: #000000;">создание</span><span style="font-family: 'Times New Roman'; color: #000000;">простейшего</span><span style="font-family: 'Times New Roman'; color: #000000;">одноуровневого</span><span style="font-family: 'Times New Roman'; color: #000000;">контекстного</span><span style="font-family: 'Times New Roman'; color: #000000;">меню</span><span style="font-family: 'Times New Roman'; color: #000000;">на</span><span style="font-family: 'Times New Roman'; color: #000000;">своем</span><span style="font-family: 'Times New Roman'; color: #000000;">компоненте</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">которое</span><span style="font-family: 'Times New Roman'; color: #000000;">будет</span><span style="font-family: 'Times New Roman'; color: #000000;">открываться</span><span style="font-family: 'Times New Roman'; color: #000000;">при</span><span style="font-family: 'Times New Roman'; color: #000000;">щелчке</span><span style="font-family: 'Times New Roman'; color: #000000;">правой</span><span style="font-family: 'Times New Roman'; color: #000000;">кнопкой</span><span style="font-family: 'Times New Roman'; color: #000000;">по</span><span style="font-family: 'Times New Roman'; color: #000000;">нему</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">самом</span><span style="font-family: 'Times New Roman'; color: #000000;">верху</span><span style="font-family: 'Times New Roman'; color: #000000;">контекстного</span><span style="font-family: 'Times New Roman'; color: #000000;">меню</span><span style="font-family: 'Times New Roman'; color: #000000;"> Delphi. </span></p> <p style="text-align: justify; margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">Прежде</span><span style="font-family: 'Times New Roman'; color: #000000;">всего</span><span style="font-family: 'Times New Roman'; color: #000000;">вам</span><span style="font-family: 'Times New Roman'; color: #000000;">следует</span><span style="font-family: 'Times New Roman'; color: #000000;">разделить</span><span style="font-family: 'Times New Roman'; color: #000000;">код</span><span style="font-family: 'Times New Roman'; color: #000000;">вашего</span><span style="font-family: 'Times New Roman'; color: #000000;">компонента</span><span style="font-family: 'Times New Roman'; color: #000000;">на</span><span style="font-family: 'Times New Roman'; color: #000000;"> Design-time </span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;"> Run-time. </span><span style="font-family: 'Times New Roman'; color: #000000;">Для</span><span style="font-family: 'Times New Roman'; color: #000000;">этого</span><span style="font-family: 'Times New Roman'; color: #000000;">перенесите</span><span style="font-family: 'Times New Roman'; color: #000000;">ваш</span><span style="font-family: 'Times New Roman'; color: #000000;">компонент</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">модуль</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">с</span><span style="font-family: 'Times New Roman'; color: #000000;">названием</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">например</span><span style="font-family: 'Times New Roman'; color: #000000;">, MyComponent.pas, </span><span style="font-family: 'Times New Roman'; color: #000000;">а</span><span style="font-family: 'Times New Roman'; color: #000000;">процедуры</span><span style="font-family: 'Times New Roman'; color: #000000;">регистрации</span><span style="font-family: 'Times New Roman'; color: #000000;">его</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">палитре</span><span style="font-family: 'Times New Roman'; color: #000000;">компонентов</span><span style="font-family: 'Times New Roman'; color: #000000;"> (procedure Register </span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;">т</span><span style="font-family: 'Times New Roman'; color: #000000;">.</span><span style="font-family: 'Times New Roman'; color: #000000;">д</span><span style="font-family: 'Times New Roman'; color: #000000;">.) </span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">модуль</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">с</span><span style="font-family: 'Times New Roman'; color: #000000;">названием</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">например</span><span style="font-family: 'Times New Roman'; color: #000000;">, MyComponentReg. </span><span style="font-family: 'Times New Roman'; color: #000000;">На</span><span style="font-family: 'Times New Roman'; color: #000000;">такие</span><span style="font-family: 'Times New Roman'; color: #000000;">меры</span><span style="font-family: 'Times New Roman'; color: #000000;">приходится</span><span style="font-family: 'Times New Roman'; color: #000000;">идти</span><span style="font-family: 'Times New Roman'; color: #000000;">из</span><span style="font-family: 'Times New Roman'; color: #000000;">-</span><span style="font-family: 'Times New Roman'; color: #000000;">за</span><span style="font-family: 'Times New Roman'; color: #000000;">того</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">что</span><span style="font-family: 'Times New Roman'; color: #000000;"> Borland </span><span style="font-family: 'Times New Roman'; color: #000000;">не</span><span style="font-family: 'Times New Roman'; color: #000000;">включила</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">исходные</span><span style="font-family: 'Times New Roman'; color: #000000;">коды</span><span style="font-family: 'Times New Roman'; color: #000000;">исходник</span><span style="font-family: 'Times New Roman'; color: #000000;">файла</span><span style="font-family: 'Times New Roman'; color: #000000;"> Proxies.pas. </span></p> <p style="margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">Итак</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">получим</span><span style="font-family: 'Times New Roman'; color: #000000;">два</span><span style="font-family: 'Times New Roman'; color: #000000;">файла</span><span style="font-family: 'Times New Roman'; color: #000000;">:</span><br /><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">MyComponent.pas:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">unit</span><span class="f_CodeExample" style="color: #000000;"> MyComponent;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">interface</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">SysUtils, Classes;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">type</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TMyComponent = </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">class</span><span class="f_CodeExample" style="color: #000000;">(TComponent)</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">private</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Private declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">protected</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Protected declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">public</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Public declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">published</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Published declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/sozdanie-pop-up-menyu-svoego-komponenta-i-koe-chto-eshche-o-klasse-tcomponentexpert.html">Подробнее...</a></p> <p style="text-align: justify; margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">Давайте</span><span style="font-family: 'Times New Roman'; color: #000000;">рассмотрим</span><span style="font-family: 'Times New Roman'; color: #000000;">создание</span><span style="font-family: 'Times New Roman'; color: #000000;">простейшего</span><span style="font-family: 'Times New Roman'; color: #000000;">одноуровневого</span><span style="font-family: 'Times New Roman'; color: #000000;">контекстного</span><span style="font-family: 'Times New Roman'; color: #000000;">меню</span><span style="font-family: 'Times New Roman'; color: #000000;">на</span><span style="font-family: 'Times New Roman'; color: #000000;">своем</span><span style="font-family: 'Times New Roman'; color: #000000;">компоненте</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">которое</span><span style="font-family: 'Times New Roman'; color: #000000;">будет</span><span style="font-family: 'Times New Roman'; color: #000000;">открываться</span><span style="font-family: 'Times New Roman'; color: #000000;">при</span><span style="font-family: 'Times New Roman'; color: #000000;">щелчке</span><span style="font-family: 'Times New Roman'; color: #000000;">правой</span><span style="font-family: 'Times New Roman'; color: #000000;">кнопкой</span><span style="font-family: 'Times New Roman'; color: #000000;">по</span><span style="font-family: 'Times New Roman'; color: #000000;">нему</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">самом</span><span style="font-family: 'Times New Roman'; color: #000000;">верху</span><span style="font-family: 'Times New Roman'; color: #000000;">контекстного</span><span style="font-family: 'Times New Roman'; color: #000000;">меню</span><span style="font-family: 'Times New Roman'; color: #000000;"> Delphi. </span></p> <p style="text-align: justify; margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">Прежде</span><span style="font-family: 'Times New Roman'; color: #000000;">всего</span><span style="font-family: 'Times New Roman'; color: #000000;">вам</span><span style="font-family: 'Times New Roman'; color: #000000;">следует</span><span style="font-family: 'Times New Roman'; color: #000000;">разделить</span><span style="font-family: 'Times New Roman'; color: #000000;">код</span><span style="font-family: 'Times New Roman'; color: #000000;">вашего</span><span style="font-family: 'Times New Roman'; color: #000000;">компонента</span><span style="font-family: 'Times New Roman'; color: #000000;">на</span><span style="font-family: 'Times New Roman'; color: #000000;"> Design-time </span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;"> Run-time. </span><span style="font-family: 'Times New Roman'; color: #000000;">Для</span><span style="font-family: 'Times New Roman'; color: #000000;">этого</span><span style="font-family: 'Times New Roman'; color: #000000;">перенесите</span><span style="font-family: 'Times New Roman'; color: #000000;">ваш</span><span style="font-family: 'Times New Roman'; color: #000000;">компонент</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">модуль</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">с</span><span style="font-family: 'Times New Roman'; color: #000000;">названием</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">например</span><span style="font-family: 'Times New Roman'; color: #000000;">, MyComponent.pas, </span><span style="font-family: 'Times New Roman'; color: #000000;">а</span><span style="font-family: 'Times New Roman'; color: #000000;">процедуры</span><span style="font-family: 'Times New Roman'; color: #000000;">регистрации</span><span style="font-family: 'Times New Roman'; color: #000000;">его</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">палитре</span><span style="font-family: 'Times New Roman'; color: #000000;">компонентов</span><span style="font-family: 'Times New Roman'; color: #000000;"> (procedure Register </span><span style="font-family: 'Times New Roman'; color: #000000;">и</span><span style="font-family: 'Times New Roman'; color: #000000;">т</span><span style="font-family: 'Times New Roman'; color: #000000;">.</span><span style="font-family: 'Times New Roman'; color: #000000;">д</span><span style="font-family: 'Times New Roman'; color: #000000;">.) </span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">модуль</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">с</span><span style="font-family: 'Times New Roman'; color: #000000;">названием</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">например</span><span style="font-family: 'Times New Roman'; color: #000000;">, MyComponentReg. </span><span style="font-family: 'Times New Roman'; color: #000000;">На</span><span style="font-family: 'Times New Roman'; color: #000000;">такие</span><span style="font-family: 'Times New Roman'; color: #000000;">меры</span><span style="font-family: 'Times New Roman'; color: #000000;">приходится</span><span style="font-family: 'Times New Roman'; color: #000000;">идти</span><span style="font-family: 'Times New Roman'; color: #000000;">из</span><span style="font-family: 'Times New Roman'; color: #000000;">-</span><span style="font-family: 'Times New Roman'; color: #000000;">за</span><span style="font-family: 'Times New Roman'; color: #000000;">того</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">что</span><span style="font-family: 'Times New Roman'; color: #000000;"> Borland </span><span style="font-family: 'Times New Roman'; color: #000000;">не</span><span style="font-family: 'Times New Roman'; color: #000000;">включила</span><span style="font-family: 'Times New Roman'; color: #000000;">в</span><span style="font-family: 'Times New Roman'; color: #000000;">исходные</span><span style="font-family: 'Times New Roman'; color: #000000;">коды</span><span style="font-family: 'Times New Roman'; color: #000000;">исходник</span><span style="font-family: 'Times New Roman'; color: #000000;">файла</span><span style="font-family: 'Times New Roman'; color: #000000;"> Proxies.pas. </span></p> <p style="margin: 7px 0px;"><span style="font-family: 'Times New Roman'; color: #000000;">Итак</span><span style="font-family: 'Times New Roman'; color: #000000;">, </span><span style="font-family: 'Times New Roman'; color: #000000;">получим</span><span style="font-family: 'Times New Roman'; color: #000000;">два</span><span style="font-family: 'Times New Roman'; color: #000000;">файла</span><span style="font-family: 'Times New Roman'; color: #000000;">:</span><br /><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">MyComponent.pas:</span></p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">unit</span><span class="f_CodeExample" style="color: #000000;"> MyComponent;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">interface</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">uses</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">SysUtils, Classes;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">type</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TMyComponent = </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">class</span><span class="f_CodeExample" style="color: #000000;">(TComponent)</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">private</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Private declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">protected</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Protected declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">public</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Public declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">published</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ Published declarations }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p> </p> <p> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/sozdanie-pop-up-menyu-svoego-komponenta-i-koe-chto-eshche-o-klasse-tcomponentexpert.html">Подробнее...</a></p> Создание редактора свойства 2013-08-13T20:11:45+07:00 2013-08-13T20:11:45+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/sozdanie-redaktora-svojstva.html Super User toto44@inbox.ru <p><span style="color: #000000;">Если вы присвоили свойству имя TableName, то полный цикл создания редактора свойств включает следующие шаги:</span></p> <p> </p> <p><span style="color: #000000;">Опишите класс редактора свойства:</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">type</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TTableNameProperty = </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">class</span><span class="f_CodeExample" style="color: #000000;">(TStringProperty)</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;"> function</span><span class="f_CodeExample" style="color: #000000;"> GetAttributes: TPropertyAttributes; </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">override</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;"> procedure</span><span class="f_CodeExample" style="color: #000000;"> GetValues(Proc: TGetStrProc); </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">override</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">implementation</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ TTableNameProperty }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TTableNameProperty.GetAttributes: TPropertyAttributes;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := [paValueList];</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TTableNameProperty.GetValues(Proc: TGetStrProc);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TableName: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">String</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">I: Integer;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ здесь вы должны добавить свой код, ?тобы с помощью цикла обойти имена всех</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">таблиц, включенных в список }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> I := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> ???? </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> TableName := ????[I];</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Proc(TableName);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> </td> </tr> </tbody> </table> </div> <p> <span style="color: #000000;">Затем зарегистрируйте данный редактор свойства следующим образом: </span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RegisterPropertyEditor(TypeInfo(</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">), TcsNotebook, </span><span class="f_CodeExample" style="color: #ff0000;">'TableName'</span><span class="f_CodeExample" style="color: #000000;">, TTableNameProperty); </span></p> </td> </tr> </tbody> </table> </div> <p><span style="color: #000000;">Если вы присвоили свойству имя TableName, то полный цикл создания редактора свойств включает следующие шаги:</span></p> <p> </p> <p><span style="color: #000000;">Опишите класс редактора свойства:</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">type</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TTableNameProperty = </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">class</span><span class="f_CodeExample" style="color: #000000;">(TStringProperty)</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;"> function</span><span class="f_CodeExample" style="color: #000000;"> GetAttributes: TPropertyAttributes; </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">override</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;"> procedure</span><span class="f_CodeExample" style="color: #000000;"> GetValues(Proc: TGetStrProc); </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">override</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">implementation</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ TTableNameProperty }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">function</span><span class="f_CodeExample" style="color: #000000;"> TTableNameProperty.GetAttributes: TPropertyAttributes;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Result := [paValueList];</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"> </p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TTableNameProperty.GetValues(Proc: TGetStrProc);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">TableName: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">String</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">I: Integer;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ здесь вы должны добавить свой код, ?тобы с помощью цикла обойти имена всех</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">таблиц, включенных в список }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> I := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> ???? </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> TableName := ????[I];</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Proc(TableName);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">; </span></p> </td> </tr> </tbody> </table> </div> <p> <span style="color: #000000;">Затем зарегистрируйте данный редактор свойства следующим образом: </span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">RegisterPropertyEditor(TypeInfo(</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">), TcsNotebook, </span><span class="f_CodeExample" style="color: #ff0000;">'TableName'</span><span class="f_CodeExample" style="color: #000000;">, TTableNameProperty); </span></p> </td> </tr> </tbody> </table> </div> Текущий модуль и проект 2013-08-13T20:24:49+07:00 2013-08-13T20:24:49+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/tekushchij-modul-i-proekt.html Super User toto44@inbox.ru <p><span style="color: #000000;">Компонент во время проектирования может знать имена текущих модулей и имя проекта. Все это можно получить с помощью ToolServices (см. файл TOOLINTF.PAS) </span></p> <p> </p> <p><span style="color: #000000;">Имя текущего проекта можно получить с помощью вызова GetProjectName, список модулей/форм - с помощью функции GetUnitCount, которая возвратит количество модулей и затем с помощью GetUnitName(i) мы можем получить имя каждого модуля (также и с формами). </span></p> <p> </p> <p><span style="color: #000000;">Вот примерный образец кода (получение и запись имен всех модулей/форм в StringGrid и имени проекта в Label):</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TInformationFrm.FormActivate(Sender: TObject);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ необходимо: StringGrid1 (2 колонки, масса строк), Label1, Label2 }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">i, j: Integer;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Tmp: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">, </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">] := </span><span class="f_CodeExample" style="color: #ff0000;">'модулей:'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">, </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">] := </span><span class="f_CodeExample" style="color: #ff0000;">'форм:'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">if</span><span class="f_CodeExample" style="color: #000000;"> ToolServices &lt;&gt; </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">nil</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">then</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">with</span><span class="f_CodeExample" style="color: #000000;"> ToolServices </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Label1.Caption := ExtractFileName(GetProjectName); </span><span class="f_CodeExample" style="color: #000080;">{ простое имя }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Label2.Caption := GetProjectName; </span><span class="f_CodeExample" style="color: #000080;">{ полное правильное имя пути }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> i := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetUnitCount </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Tmp := ExtractFileName(GetUnitName(i));</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">, i + </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">] := Tmp;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Tmp := ChangeFileExt(Tmp, </span><span class="f_CodeExample" style="color: #ff0000;">'.DFM'</span><span class="f_CodeExample" style="color: #000000;">);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> j := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetFormCount </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">if</span><span class="f_CodeExample" style="color: #000000;"> ExtractFileName(GetFormName(j)) = Tmp </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">then</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">, i + </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">] := Tmp</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> <p><span style="color: #000000;">Компонент во время проектирования может знать имена текущих модулей и имя проекта. Все это можно получить с помощью ToolServices (см. файл TOOLINTF.PAS) </span></p> <p> </p> <p><span style="color: #000000;">Имя текущего проекта можно получить с помощью вызова GetProjectName, список модулей/форм - с помощью функции GetUnitCount, которая возвратит количество модулей и затем с помощью GetUnitName(i) мы можем получить имя каждого модуля (также и с формами). </span></p> <p> </p> <p><span style="color: #000000;">Вот примерный образец кода (получение и запись имен всех модулей/форм в StringGrid и имени проекта в Label):</span></p> <p> </p> <div style="text-align: justify; text-indent: 0px; margin: 7px 0px; padding: 0px;"> <table style="border-bottom: #c0c0c0 1px solid; border-left: #000000 1px solid; background-color: #ffffc4; border-spacing: 0px; border-top: #000000 1px solid; border-right: #c0c0c0 1px solid;" border="1" cellspacing="0" cellpadding="5" bgcolor="#ffffc4"> <tbody> <tr align="left" valign="top"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p style="text-align: justify;"><span style="font-family: 'Times New Roman'; color: #000000; font-weight: bold;">Code:</span></p> </td> </tr> <tr align="left"> <td style="border-bottom: #000000 1px solid; border-left: #c0c0c0 1px solid; border-top: #c0c0c0 1px solid; border-right: #000000 1px solid;"> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">procedure</span><span class="f_CodeExample" style="color: #000000;"> TInformationFrm.FormActivate(Sender: TObject);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000080;">{ необходимо: StringGrid1 (2 колонки, масса строк), Label1, Label2 }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">var</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">i, j: Integer;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">Tmp: </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">string</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">, </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">] := </span><span class="f_CodeExample" style="color: #ff0000;">'модулей:'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;">StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">, </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">] := </span><span class="f_CodeExample" style="color: #ff0000;">'форм:'</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">if</span><span class="f_CodeExample" style="color: #000000;"> ToolServices &lt;&gt; </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">nil</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">then</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">with</span><span class="f_CodeExample" style="color: #000000;"> ToolServices </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Label1.Caption := ExtractFileName(GetProjectName); </span><span class="f_CodeExample" style="color: #000080;">{ простое имя }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Label2.Caption := GetProjectName; </span><span class="f_CodeExample" style="color: #000080;">{ полное правильное имя пути }</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> i := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetUnitCount </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">begin</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Tmp := ExtractFileName(GetUnitName(i));</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #000000;">, i + </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">] := Tmp;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> Tmp := ChangeFileExt(Tmp, </span><span class="f_CodeExample" style="color: #ff0000;">'.DFM'</span><span class="f_CodeExample" style="color: #000000;">);</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">for</span><span class="f_CodeExample" style="color: #000000;"> j := </span><span class="f_CodeExample" style="color: #800000;">0</span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">to</span><span class="f_CodeExample" style="color: #000000;"> GetFormCount </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">do</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">if</span><span class="f_CodeExample" style="color: #000000;"> ExtractFileName(GetFormName(j)) = Tmp </span><span class="f_CodeExample" style="color: #008000; font-weight: bold;">then</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #000000;"> StringGrid1.Cells[</span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">, i + </span><span class="f_CodeExample" style="color: #800000;">1</span><span class="f_CodeExample" style="color: #000000;">] := Tmp</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> <p class="p_CodeExample"><span class="f_CodeExample" style="color: #008000; font-weight: bold;">end</span><span class="f_CodeExample" style="color: #000000;">;</span></p> </td> </tr> </tbody> </table> </div> Эксперты в DELPHI, или Программист, упростите себе жизнь 2013-08-13T20:36:06+07:00 2013-08-13T20:36:06+07:00 https://delphi-hlp.ru/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/eksperty-v-delphi-ili-programmist-uprostite-sebe-zhizn.html Super User toto44@inbox.ru <p><span class="f_Heading1">Эксперты </span><span class="f_Heading1">в</span><span class="f_Heading1"> DELPHI, </span><span class="f_Heading1">или</span><span class="f_Heading1">Программист</span><span class="f_Heading1">, </span><span class="f_Heading1">упростите</span><span class="f_Heading1">себе</span><span class="f_Heading1">жизнь</span></p> <p>Имеющее множество достоинств и довольно популярное средство разработки Delphi позволяет расширять функциональные возможности среды разработчика. Речь идет не о косметических изменениях в интерфейсе и не о добавлении компонентов или их наборов, а о придании рабочему окружению программиста новых полезных возможностей, не предусмотренных его создателями. Для решения подобной задачи в Delphi можно воспользоваться так называемыми экспертами. Вспомните, как удобно, ответив на несколько вопросов, создать готовую форму для вывода содержимого таблиц. Или, щелкнув мышью на нужном элементе в списке New Items, получить “костяк” вашего будущего проекта (рис. 1).</p> <p><img src="https://delphi-hlp.ru/clip0248.gif" alt="clip0248" width="310" height="228" /></p> <p style="margin: 7px 0px;"><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">Рис</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">. 1. </span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">Многие</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">возможности</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;"> Delphi </span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">реализуются</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">с</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">помощью</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">экспертов</span></p> <p style="margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">Что</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">это</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">—</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">стандартные</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">возможности</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">рабочей</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">среды</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">? </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">Да</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">, </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">но</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">применить</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">их</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">можно</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">лишь</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">с</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">помощью</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">эксперта</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">. </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">О</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">том</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">, </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">как</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">это</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">сделать</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">, </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">и</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">пойдет</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">речь</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">далее</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">. </span></p> <p style="text-align: center; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">Эксперты</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">в</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;"> Delphi </span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">—</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">что</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">это</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">такое</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">?</span></p> <p style="text-align: center; margin: 7px 0px;"> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/eksperty-v-delphi-ili-programmist-uprostite-sebe-zhizn.html">Подробнее...</a></p> <p><span class="f_Heading1">Эксперты </span><span class="f_Heading1">в</span><span class="f_Heading1"> DELPHI, </span><span class="f_Heading1">или</span><span class="f_Heading1">Программист</span><span class="f_Heading1">, </span><span class="f_Heading1">упростите</span><span class="f_Heading1">себе</span><span class="f_Heading1">жизнь</span></p> <p>Имеющее множество достоинств и довольно популярное средство разработки Delphi позволяет расширять функциональные возможности среды разработчика. Речь идет не о косметических изменениях в интерфейсе и не о добавлении компонентов или их наборов, а о придании рабочему окружению программиста новых полезных возможностей, не предусмотренных его создателями. Для решения подобной задачи в Delphi можно воспользоваться так называемыми экспертами. Вспомните, как удобно, ответив на несколько вопросов, создать готовую форму для вывода содержимого таблиц. Или, щелкнув мышью на нужном элементе в списке New Items, получить “костяк” вашего будущего проекта (рис. 1).</p> <p><img src="https://delphi-hlp.ru/clip0248.gif" alt="clip0248" width="310" height="228" /></p> <p style="margin: 7px 0px;"><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">Рис</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">. 1. </span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">Многие</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">возможности</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;"> Delphi </span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">реализуются</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">с</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">помощью</span><span style="font-style: italic; font-family: 'Arial'; color: #000000; font-size: 10pt; font-weight: bold;">экспертов</span></p> <p style="margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">Что</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">это</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">—</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">стандартные</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">возможности</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">рабочей</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">среды</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">? </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">Да</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">, </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">но</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">применить</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">их</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">можно</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">лишь</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">с</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">помощью</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">эксперта</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">. </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">О</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">том</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">, </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">как</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">это</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">сделать</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">, </span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">и</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">пойдет</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">речь</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">далее</span><span style="font-family: 'Arial'; color: #000000; font-size: 10pt;">. </span></p> <p style="text-align: center; margin: 7px 0px;"><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">Эксперты</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">в</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;"> Delphi </span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">—</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">что</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">это</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">такое</span><span style="font-family: 'Arial'; color: #000000; font-weight: bold;">?</span></p> <p style="text-align: center; margin: 7px 0px;"> </p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/rabota-s-toolsapi-eksperty-i-redaktory-svojstv/eksperty-v-delphi-ili-programmist-uprostite-sebe-zhizn.html">Подробнее...</a></p> Активизация и использование в IDE окна CPU 2013-08-14T01:00:26+07:00 2013-08-14T01:00:26+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/aktivizatsiya-i-ispolzovanie-v-ide-okna-cpu.html Super User toto44@inbox.ru <p><span style="color: #000000;">Предупреждение: Окно CPU еще до конца не оттестировано и может иногда приводить к ошибкам. Если у вас есть проблемы с отладчиком, или при запуске вашей программы вы не можете им воспользоваться, окно CPU может помочь решить ваши проблемы. Обычно его не требуется включать, если только у вас не "особый случай". </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">В Delphi 2 эта характеристика встроена, но по умолчанию выключена, называется это окно CPU window, или DisassemblyView. Она легка в использовании, может быть полезной в отладке и сравнении кода при его оптимизации. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">Для активизации этой характеристики, запустите REGEDIT и отредактируйте регистры описанным ниже образом. Найдите ключ HKEY_CURRENT_USER\Software\Borland\Delphi\2.0\Debugging. Создайте по этому пути строковый ключ с именем "ENABLECPU". Значение нового ключа должно быть строкой "1". Это все. Теперь в Delphi IDE появился новый пункт меню View|CPUWindow. При его активизации выводится новое окно. </span></p> <p><span style="color: #000000;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/aktivizatsiya-i-ispolzovanie-v-ide-okna-cpu.html">Подробнее...</a></p> <p><span style="color: #000000;">Предупреждение: Окно CPU еще до конца не оттестировано и может иногда приводить к ошибкам. Если у вас есть проблемы с отладчиком, или при запуске вашей программы вы не можете им воспользоваться, окно CPU может помочь решить ваши проблемы. Обычно его не требуется включать, если только у вас не "особый случай". </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">В Delphi 2 эта характеристика встроена, но по умолчанию выключена, называется это окно CPU window, или DisassemblyView. Она легка в использовании, может быть полезной в отладке и сравнении кода при его оптимизации. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">Для активизации этой характеристики, запустите REGEDIT и отредактируйте регистры описанным ниже образом. Найдите ключ HKEY_CURRENT_USER\Software\Borland\Delphi\2.0\Debugging. Создайте по этому пути строковый ключ с именем "ENABLECPU". Значение нового ключа должно быть строкой "1". Это все. Теперь в Delphi IDE появился новый пункт меню View|CPUWindow. При его активизации выводится новое окно. </span></p> <p><span style="color: #000000;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/aktivizatsiya-i-ispolzovanie-v-ide-okna-cpu.html">Подробнее...</a></p> Горячие клавиши Дельфи 2013-08-14T00:45:31+07:00 2013-08-14T00:45:31+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/goryachie-klavishi-delfi.html Super User toto44@inbox.ru <p>               <span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">Горячие клавиши в окне редактора</span></p> <div style="margin: 0px; padding: 0px; text-align: left; text-indent: 0px;"> <table style="border-collapse: collapse; background-color: #e3eef0;" border="0" cellspacing="0" cellpadding="0" bgcolor="#e3eef0"> <tbody> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F1</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">контекстная помощь</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F3</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">продолжить поиск (начать - Ctrl+F )</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выполнить программу до положения курсора</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F5</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поставить Break Point</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F7</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">трассировать с заходом в процедуры</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F8 </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">трассировать без захода в процедуры</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">запустить программу</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F10</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">активизировать главное меню</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть/закрыть Object Inspector</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F12</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход между формой и кодом</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F1</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">контекстная помощь</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F2</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">прервать выполнение программы</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F3</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">посмотреть стек</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть текущий модуль</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F5</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список переменных для просмотра (Watch List)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F7</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">просмотр значений переменных и их изменение</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">компилировать проект</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F10</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">активизировать главное меню</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть проект</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F12</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список модулей проекта</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F7</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">трассировка заходя в каждую процедуру и перескакивание в каждое возникающее событие</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F10</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">всплывающее меню</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">добавить модуль к проекту</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F12</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список форм проекта для быстрой навигации</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть проект и все файлы</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F6</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переключение окон</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F8</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход к следующей ошибке компиляции</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F7 </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход к предыдущей ошибке компиляции</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть проект и все файлы</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-Ctrl-F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">менеджер проектов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-Shift-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть все окна, но проект не закрывать</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-0..9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поставить метку 0..9</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-0..9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">перейти на метку 0..9</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-0</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список окон</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Enter</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть файл с именем слова на котором курсор стоит</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+клик</span><span style="color: #000000; font-family: 'Times New Roman';"> мышкой на слове</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> перейти на определение этого слова</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt+выделение</span><span style="color: #000000; font-family: 'Times New Roman';"> текста (мышкой или клавиатурой)</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выделение вертикального блока</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Up</span></p> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Down</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход от объявления процедуры к ее реализации</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-C</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закончить метод (если он описан - создать шаблон для реализации,если есть реализация - объявить метод)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Space</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">высветить список методов, свойств объекта (после точки)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Space</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">высветить список параметров функции</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-E</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть эксплорер кода</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-R</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">начать/завершить запись макро</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выполнить записанное макро</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-T </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">добавить в To Do лист</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-U</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">уменьшить отступ выделенного блока</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-I</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">увеличить отступ выделенного блока</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-S</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">сохранить как</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-G</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить GUID</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-B</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">посмотреть иерархию классов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Y</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить от курсора до конца строки</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Z</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> redo</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-W</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> watch List</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-R </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> grep result</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-T</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список потоков проекта</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-A</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить дату</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-S</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вызовы стека</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-H </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">шаблон для документации модуля</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-L </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">локальные переменные</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-V</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">история событий</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-B</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список Break Points</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-M</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">Модули</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-N</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить пустую строку, курсор остается на текущей строке</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-M</span></p> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Enter </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить пустую строку, курсор переходит на следующую строку</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-E</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поиск по мере введения символов (Incremental Search)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-R</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поиск и замена</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-A </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выделить весь текст (только Дельфи 6+)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-T </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить от курсора до конца слова</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Y </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить строку</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-O, O</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить все текущие опции компиляции по позиции курсора</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, C</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks a column block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, I</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks an inclusive block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, K</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks a non-inclusive block (default when the editor starts)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, L</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks a line as a block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">префикс, после которого можно вставить любой ASCII код</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-S</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">сохранить текущий файл</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть диалог поиска</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-J </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">лист шаблонов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-K, С</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> копирование блока без буфера обмена</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Z </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">отмена</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-X</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вырезать</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-С</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> копировать</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-V</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-B</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список буферов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, R</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">читать блок из файла</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, W </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">записать блок в файл</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, U </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">изменить регистр букв в блоке на противоположный</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, A</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">диалог: "открыть файл"</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, G</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход к строке номер...</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, E </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">перевод слова в нижний регистр</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, T</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выделить слово</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, Y</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить выделенный блок</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, U</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> unindent block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, I</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> indent block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">печать текста</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, F </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">перевод слова в вверхний регистр</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt+[</span></p> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt+]</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">найти соответствующую скобку</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Q, P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вернуть курсор на место последнего редактирования</span></p> </td> </tr> </tbody> </table> </div> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/goryachie-klavishi-delfi.html">Подробнее...</a></p> <p>               <span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 14pt; font-weight: bold;">Горячие клавиши в окне редактора</span></p> <div style="margin: 0px; padding: 0px; text-align: left; text-indent: 0px;"> <table style="border-collapse: collapse; background-color: #e3eef0;" border="0" cellspacing="0" cellpadding="0" bgcolor="#e3eef0"> <tbody> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F1</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">контекстная помощь</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F3</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">продолжить поиск (начать - Ctrl+F )</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выполнить программу до положения курсора</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F5</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поставить Break Point</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F7</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">трассировать с заходом в процедуры</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F8 </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">трассировать без захода в процедуры</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">запустить программу</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F10</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">активизировать главное меню</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть/закрыть Object Inspector</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">F12</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход между формой и кодом</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F1</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">контекстная помощь</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F2</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">прервать выполнение программы</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F3</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">посмотреть стек</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть текущий модуль</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F5</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список переменных для просмотра (Watch List)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F7</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">просмотр значений переменных и их изменение</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">компилировать проект</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F10</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">активизировать главное меню</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть проект</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F12</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список модулей проекта</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F7</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">трассировка заходя в каждую процедуру и перескакивание в каждое возникающее событие</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F10</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">всплывающее меню</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">добавить модуль к проекту</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Shift-F12</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список форм проекта для быстрой навигации</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть проект и все файлы</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F6</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переключение окон</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F8</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход к следующей ошибке компиляции</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-F7 </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход к предыдущей ошибке компиляции</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть проект и все файлы</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-Ctrl-F11</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">менеджер проектов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-Shift-F4</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закрыть все окна, но проект не закрывать</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-0..9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поставить метку 0..9</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-0..9</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">перейти на метку 0..9</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt-0</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список окон</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Enter</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть файл с именем слова на котором курсор стоит</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+клик</span><span style="color: #000000; font-family: 'Times New Roman';"> мышкой на слове</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> перейти на определение этого слова</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt+выделение</span><span style="color: #000000; font-family: 'Times New Roman';"> текста (мышкой или клавиатурой)</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выделение вертикального блока</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Up</span></p> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Down</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход от объявления процедуры к ее реализации</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-C</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">закончить метод (если он описан - создать шаблон для реализации,если есть реализация - объявить метод)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Space</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">высветить список методов, свойств объекта (после точки)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Space</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">высветить список параметров функции</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-E</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть эксплорер кода</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-R</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">начать/завершить запись макро</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выполнить записанное макро</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-T </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">добавить в To Do лист</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-U</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">уменьшить отступ выделенного блока</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-I</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">увеличить отступ выделенного блока</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-S</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">сохранить как</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-G</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить GUID</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Shift-B</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">посмотреть иерархию классов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Y</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить от курсора до конца строки</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Shift+Z</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> redo</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-W</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> watch List</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-R </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> grep result</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-T</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список потоков проекта</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-A</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить дату</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-S</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вызовы стека</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-H </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">шаблон для документации модуля</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-L </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">локальные переменные</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-V</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">история событий</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-B</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список Break Points</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Alt-M</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">Модули</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-N</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить пустую строку, курсор остается на текущей строке</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-M</span></p> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Enter </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить пустую строку, курсор переходит на следующую строку</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-E</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поиск по мере введения символов (Incremental Search)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-R</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">поиск и замена</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-A </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выделить весь текст (только Дельфи 6+)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-T </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить от курсора до конца слова</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Y </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить строку</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-O, O</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить все текущие опции компиляции по позиции курсора</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, C</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks a column block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, I</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks an inclusive block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, K</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks a non-inclusive block (default when the editor starts)</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, L</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> marks a line as a block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">префикс, после которого можно вставить любой ASCII код</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-S</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">сохранить текущий файл</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-F</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">открыть диалог поиска</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-J </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">лист шаблонов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-K, С</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> копирование блока без буфера обмена</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-Z </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">отмена</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-X</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вырезать</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-С</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> копировать</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-V</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вставить</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl-B</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">список буферов</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, R</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">читать блок из файла</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, W </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">записать блок в файл</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, U </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">изменить регистр букв в блоке на противоположный</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, A</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">диалог: "открыть файл"</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+O, G</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">переход к строке номер...</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, E </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">перевод слова в нижний регистр</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, T</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">выделить слово</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, Y</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">удалить выделенный блок</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, U</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> unindent block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, I</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';"> indent block</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">печать текста</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+K, F </span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">перевод слова в вверхний регистр</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt+[</span></p> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Alt+]</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">найти соответствующую скобку</span></p> </td> </tr> <tr align="left" valign="top"> <td style="border: 1px solid #000000; width: 123px;" width="123"> <p style="text-align: center;"><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Ctrl+Q, P</span></p> </td> <td style="border: 1px solid #000000; width: 403px;" width="403"> <p><span style="color: #000000; font-family: 'Times New Roman';">вернуть курсор на место последнего редактирования</span></p> </td> </tr> </tbody> </table> </div> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/goryachie-klavishi-delfi.html">Подробнее...</a></p> Как заставить стартовать Дельфи без заставки? 2013-08-14T00:48:57+07:00 2013-08-14T00:48:57+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/kak-zastavit-startovat-delfi-bez-zastavki.html Super User toto44@inbox.ru <p><span style="color: #000000;">Командной строкой:</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Delphi32.EXE -ns </span></p> <p><span style="color: #000000;"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #000000;">Командной строкой:</span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Delphi32.EXE -ns </span></p> <p><span style="color: #000000;"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> Как заставить стартовать Дельфи без проекта? 2013-08-14T00:51:18+07:00 2013-08-14T00:51:18+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/kak-zastavit-startovat-delfi-bez-proekta.html Super User toto44@inbox.ru <p>Командной строкой: Delphi32.exe -np</p> <p>Командной строкой: Delphi32.exe -np</p> Как мне избавиться от выскакивающего окна CPU при ошибках? 2013-08-14T01:02:08+07:00 2013-08-14T01:02:08+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/kak-mne-izbavitsya-ot-vyskakivayushchego-okna-cpu-pri-oshibkakh.html Super User toto44@inbox.ru <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">HKEY_CURRENT_USER\Software\Borland\Delphi\4.0\Debugging </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">ViewCPUOnException=0</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">HKEY_CURRENT_USER\Software\Borland\Delphi\4.0\Debugging </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">ViewCPUOnException=0</span></p> Отображения величин в Watch List 2013-08-14T00:58:45+07:00 2013-08-14T00:58:45+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/otobrazheniya-velichin-v-watch-list.html Super User toto44@inbox.ru <p><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">В BP 7.0 возможно было регулировать форму отображения величин</span></p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">в процессе отладки в окне ""Watch List"". Возможно ли такое в Delphi?</span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman';">Такой эффект можно достичь используя следующие спецификации формата отображения (практически совпадающие с BP 7.0), которые указываются через запятую после идентификатора инспектируемой величины:</span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Символ   Применяется к типу Функциональность</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">-------- ------------------------------------------------------------------</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">H или X  Integers           Отображает целые величины в 16-ричном формате</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          с префиксом 0x</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">C        Char,strings       Показывает специальные символы (ASCII 0..31).</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           По умолчанию они отображаются в виде</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          esc-последовательности (/n , /t , и т.п.)</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">D        Integers           Отображает целые величины в десятичном формате.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Fn       Floating point     Показывает n десятичных знаков</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          (где n = 2..18, по умолчанию 7 )</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">nM       All                Дамп памяти, где n задает количество отображаемых</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          байт памяти, начиная с адреса величины.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           По умолчанию каждый байт представляется двумя</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          16-ричными цифрами, но возможно также совместное</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          использование nM с другими форматами.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">P        Pointers           Отображает величину, как указатель в формате seg:ofs.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">R        Records, classes,  Показывает не только величины полей,</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">        objects            но и сами поля, напрмер, как (X:2; Y:5)</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           вместо (2, 5).</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">S        Char,strings       Показывает любые неотображаемые ASCII символы в виде #nn.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           Используется вместе с nM.</span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #ff0000; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;">Автор:</span><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold; text-decoration: underline;">StayAtHome</span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad. ru</span><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">В BP 7.0 возможно было регулировать форму отображения величин</span></p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-style: italic;">в процессе отладки в окне ""Watch List"". Возможно ли такое в Delphi?</span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Times New Roman';">Такой эффект можно достичь используя следующие спецификации формата отображения (практически совпадающие с BP 7.0), которые указываются через запятую после идентификатора инспектируемой величины:</span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Символ   Применяется к типу Функциональность</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">-------- ------------------------------------------------------------------</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">H или X  Integers           Отображает целые величины в 16-ричном формате</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          с префиксом 0x</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">C        Char,strings       Показывает специальные символы (ASCII 0..31).</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           По умолчанию они отображаются в виде</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          esc-последовательности (/n , /t , и т.п.)</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">D        Integers           Отображает целые величины в десятичном формате.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Fn       Floating point     Показывает n десятичных знаков</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          (где n = 2..18, по умолчанию 7 )</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">nM       All                Дамп памяти, где n задает количество отображаемых</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          байт памяти, начиная с адреса величины.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           По умолчанию каждый байт представляется двумя</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          16-ричными цифрами, но возможно также совместное</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                          использование nM с другими форматами.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">P        Pointers           Отображает величину, как указатель в формате seg:ofs.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">R        Records, classes,  Показывает не только величины полей,</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">        objects            но и сами поля, напрмер, как (X:2; Y:5)</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           вместо (2, 5).</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">S        Char,strings       Показывает любые неотображаемые ASCII символы в виде #nn.</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">                           Используется вместе с nM.</span></p> <p><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #ff0000; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;">Автор:</span><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold; text-decoration: underline;">StayAtHome</span></p> <p><span style="color: #000000; font-weight: bold;">Взято с Vingrad. ru</span><span style="color: #000000; font-family: 'Times New Roman';"> </span></p> Работа с IDE из программы 2013-08-14T01:03:36+07:00 2013-08-14T01:03:36+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/rabota-s-ide-iz-programmy.html Super User toto44@inbox.ru <p><span style="font-family: 'Courier New'; font-size: 10pt;">Вот подпрограммы, работающие у меня в связке D1 и Win </span></p> <p><span style="font-family: 'Courier New'; font-size: 10pt;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/rabota-s-ide-iz-programmy.html">Подробнее...</a></p> <p><span style="font-family: 'Courier New'; font-size: 10pt;">Вот подпрограммы, работающие у меня в связке D1 и Win </span></p> <p><span style="font-family: 'Courier New'; font-size: 10pt;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/rabota-s-ide-iz-programmy.html">Подробнее...</a></p> Скрытые настройки Дельфи 2013-08-14T00:54:10+07:00 2013-08-14T00:54:10+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/skrytye-nastrojki-delfi.html Super User toto44@inbox.ru <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">Some undocumented registry settings of Delphi 5 (which -slightly adapted- might also work with Delphi 4 and below) modify the behavior of the Delphi component palette in a manner you may like!</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">Most values are stored as strings, and boolean values are represented as "1" for true and "0" for false. All values are stored in </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">HKEY_CURRENT_USER</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">As always, use of this information is at your own risk... ;-)</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">Software\Borland\Delphi\5.0\Extras\AutoPaletteSelect</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">will cause a tab on the component palette to be automatically selected when the mouse is hovering over it. If the mouse is in the top two- thirds (2/3) of the tab, the palette for that tab will automatically be displayed.</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">Software\Borland\Delphi\5.0\Extras\AutoPaletteScroll</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">will make you scroll left and right automatically whenever the mouse is positioned over the relevant arrow.</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">Software\Borland\Delphi\5.0\Editor\Options\NoCtrlAltKeys</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/skrytye-nastrojki-delfi.html">Подробнее...</a></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">Some undocumented registry settings of Delphi 5 (which -slightly adapted- might also work with Delphi 4 and below) modify the behavior of the Delphi component palette in a manner you may like!</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">Most values are stored as strings, and boolean values are represented as "1" for true and "0" for false. All values are stored in </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">HKEY_CURRENT_USER</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">As always, use of this information is at your own risk... ;-)</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">Software\Borland\Delphi\5.0\Extras\AutoPaletteSelect</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">will cause a tab on the component palette to be automatically selected when the mouse is hovering over it. If the mouse is in the top two- thirds (2/3) of the tab, the palette for that tab will automatically be displayed.</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">Software\Borland\Delphi\5.0\Extras\AutoPaletteScroll</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;">will make you scroll left and right automatically whenever the mouse is positioned over the relevant arrow.</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 11pt;">Software\Borland\Delphi\5.0\Editor\Options\NoCtrlAltKeys</span></p> <p><span style="font-family: 'Times New Roman'; font-size: 11pt;"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/skrytye-nastrojki-delfi.html">Подробнее...</a></p> Смена свойств приложения, открываемого, по умолчанию в среде при её запске 2013-08-14T00:55:37+07:00 2013-08-14T00:55:37+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/smena-svojstv-prilozheniya-otkryvaemogo-po-umolchaniyu-v-srede-pri-ejo-zapske.html Super User toto44@inbox.ru <p>Большинство стандартных темплейтов зашиты в delphide70.bpl (70 - версия), остальные - в каталоге Objrepos. Описаны же последние в файле bin\delphi32.dro. Т.о:</p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">1. Добавляем в "delphi32.dro" строки:</span></p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">[C:\Program Files\Lang\Delphi7\ObjRepos\MyApp\MyApp]</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Type=ProjectTemplate</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Page=Projects</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Name=My Application</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Description=This is my application template</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Author=Eugene</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Icon=C:\Program Files\Lang\Delphi7\ObjRepos\MyApp\MyApp.ico</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">DefaultProject=1</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Designer=dfm</span></p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Times New Roman';">(для темплейтов формы Type=FormTemplate, DefaultMainForm=0/1, DefaultNewForm=0/1)</span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">2. Размещаем нашу темплейт-прогу в каталоге "C:\Program Files\Lang\Delphi7\ObjRepos\MyApp\" и называем её "MyApp.dpr".</span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">3. Жмём "File/New/Application" (т.к. у нас DefaultProject=1), либо заходим во вкладку "Projects", а затем кликаем два раза по "My Application".</span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">4. Радуемся!  </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #ff0000; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;">Автор:</span><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold; text-decoration: underline;">Jin X</span></p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Взято из </span><span style="color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;">https://forum . sources</span></p> <p>Большинство стандартных темплейтов зашиты в delphide70.bpl (70 - версия), остальные - в каталоге Objrepos. Описаны же последние в файле bin\delphi32.dro. Т.о:</p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">1. Добавляем в "delphi32.dro" строки:</span></p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">[C:\Program Files\Lang\Delphi7\ObjRepos\MyApp\MyApp]</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Type=ProjectTemplate</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Page=Projects</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Name=My Application</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Description=This is my application template</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Author=Eugene</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Icon=C:\Program Files\Lang\Delphi7\ObjRepos\MyApp\MyApp.ico</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">DefaultProject=1</span></p> <p><span style="color: #000000; font-family: 'Courier New'; font-size: 9pt;">Designer=dfm</span></p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Times New Roman';">(для темплейтов формы Type=FormTemplate, DefaultMainForm=0/1, DefaultNewForm=0/1)</span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">2. Размещаем нашу темплейт-прогу в каталоге "C:\Program Files\Lang\Delphi7\ObjRepos\MyApp\" и называем её "MyApp.dpr".</span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">3. Жмём "File/New/Application" (т.к. у нас DefaultProject=1), либо заходим во вкладку "Projects", а затем кликаем два раза по "My Application".</span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">4. Радуемся!  </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;"> </span></p> <p style="text-align: right;"><span style="color: #ff6600; font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Arial'; font-size: 8pt; font-weight: bold;"> </span></p> <p><span style="color: #ff0000; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold;">Автор:</span><span style="color: #0000ff; font-family: 'Times New Roman'; font-size: 10pt; font-weight: bold; text-decoration: underline;">Jin X</span></p> <p><span style="color: #000000; font-family: 'Times New Roman'; font-weight: bold;">Взято из </span><span style="color: #0000ff; font-size: 10pt; font-weight: bold; text-decoration: underline;">https://forum . sources</span></p> Типы файлов в среде Дельфи 2013-08-14T00:48:03+07:00 2013-08-14T00:48:03+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/tipy-fajlov-v-srede-delfi.html Super User toto44@inbox.ru <p><span style="color: #000000;">DPR - Delphi Project File. This is actually a Pascal source file; it just happens to be the main program for the application. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">PAS - In Delphi, PAS files are always the source code to either a unit or a form. The main program of an application is in the DPR file. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">DFM - These files are always paired with PAS files. The DFM file is the binary data used to set up initial data for components (IE, the properties you set in design mode rather than in code). You can't edit a DFM file with a text editor, but if you open it in Delphi, you will see a textual version of the contents. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">DCU - A compiled unit, similar in concept to an OBJ file. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">OPT - Project Options; i.e. compiler and linker settings, which form is the main form, what icon to use for the application, etc. Generally, the stuff you edit under Options/Project. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">RES - A Windows resource file; generated automatically by Delphi and required by the compilation process. You don't need to worry about this file, but don't delete it either. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">EXE - All of the above linked together into runnable format. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">~DP - A backup file of the DPR file before the last save operation. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">~PA - A backup of a .PAS file. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">~DF - A backup of a .DFM file. </span></p> <p><span style="color: #000000;">DPR - Delphi Project File. This is actually a Pascal source file; it just happens to be the main program for the application. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">PAS - In Delphi, PAS files are always the source code to either a unit or a form. The main program of an application is in the DPR file. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">DFM - These files are always paired with PAS files. The DFM file is the binary data used to set up initial data for components (IE, the properties you set in design mode rather than in code). You can't edit a DFM file with a text editor, but if you open it in Delphi, you will see a textual version of the contents. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">DCU - A compiled unit, similar in concept to an OBJ file. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">OPT - Project Options; i.e. compiler and linker settings, which form is the main form, what icon to use for the application, etc. Generally, the stuff you edit under Options/Project. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">RES - A Windows resource file; generated automatically by Delphi and required by the compilation process. You don't need to worry about this file, but don't delete it either. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">EXE - All of the above linked together into runnable format. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">~DP - A backup file of the DPR file before the last save operation. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">~PA - A backup of a .PAS file. </span></p> <p><span style="color: #000000;"> </span></p> <p><span style="color: #000000;">~DF - A backup of a .DFM file. </span></p> Эта незнакомая IDE! (статья) 2013-08-14T00:42:39+07:00 2013-08-14T00:42:39+07:00 https://delphi-hlp.ru/index.php/delphi-ide/sreda-delfi/eta-neznakomaya-ide-statya.html Super User toto44@inbox.ru <p style="text-align: center;"><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span><span style="font-family: 'Times New Roman'; font-style: italic; font-weight: bold;">Небольшой список приёмов для эффективной работы</span></p> <p><span style="font-family: 'Times New Roman';"> </span><span style="font-family: 'Times New Roman';">IDE - интегрированная среда разработки Дельфи. Все хоть чуть чуть соприкасавшиеся с Дельфи знают эту простую и интуитивно понятную среду. Тем ни менее, эта среда имеет огромное количество функций, которые не столь очевидны для пользователя и не очень хорошо документированы. Целью этой статьи является рассказать о некоторых приёмах работы в среде Дельфи, не столь очевидных даже для профессионалов. Описание базируется на Дельфи 7, но подавляющее большинство приёмов будет доступно и в других версиях, как ранних, так и поздних.</span></p> <p><span style="font-family: 'Times New Roman';"> </span><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">Текстовый редактор </span></p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/eta-neznakomaya-ide-statya.html">Подробнее...</a></p> <p style="text-align: center;"><span style="font-family: 'MS Sans Serif'; font-size: 8pt;"> </span><span style="font-family: 'Times New Roman'; font-style: italic; font-weight: bold;">Небольшой список приёмов для эффективной работы</span></p> <p><span style="font-family: 'Times New Roman';"> </span><span style="font-family: 'Times New Roman';">IDE - интегрированная среда разработки Дельфи. Все хоть чуть чуть соприкасавшиеся с Дельфи знают эту простую и интуитивно понятную среду. Тем ни менее, эта среда имеет огромное количество функций, которые не столь очевидны для пользователя и не очень хорошо документированы. Целью этой статьи является рассказать о некоторых приёмах работы в среде Дельфи, не столь очевидных даже для профессионалов. Описание базируется на Дельфи 7, но подавляющее большинство приёмов будет доступно и в других версиях, как ранних, так и поздних.</span></p> <p><span style="font-family: 'Times New Roman';"> </span><span style="font-family: 'Times New Roman';"> </span></p> <p><span style="font-family: 'Times New Roman'; font-weight: bold;">Текстовый редактор </span></p> <p><span style="font-family: 'Times New Roman';"> </span></p> <p class="feed-readmore"><a target="_blank" href ="/index.php/delphi-ide/sreda-delfi/eta-neznakomaya-ide-statya.html">Подробнее...</a></p>