<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Buttons lassen sich nicht mehr drücken??]]></title><description><![CDATA[<p>Ich weiß nicht wieso, aber die Tasten meines Programms (was ich programmiere) lassen sich auf einmal nicht mehr nach unten drücken. Sie führen ihr programmierte Funktion aus, aber sie lassen sich nicht mehr drücken. Wie kann ich das Problem beheben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/101218/buttons-lassen-sich-nicht-mehr-drücken</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 03:49:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/101218.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Feb 2005 14:14:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Mon, 14 Feb 2005 14:14:52 GMT]]></title><description><![CDATA[<p>Ich weiß nicht wieso, aber die Tasten meines Programms (was ich programmiere) lassen sich auf einmal nicht mehr nach unten drücken. Sie führen ihr programmierte Funktion aus, aber sie lassen sich nicht mehr drücken. Wie kann ich das Problem beheben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723039</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:14:52 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Mon, 14 Feb 2005 14:44:33 GMT]]></title><description><![CDATA[<p>Ich glaub du musst dein Problem etwas genauer schildern (Quellcode?) ,sonst kann dir keiner helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>MfG,<br />
MastaFlasH</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723057</guid><dc:creator><![CDATA[MastaFlasH]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:44:33 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Mon, 14 Feb 2005 14:47:12 GMT]]></title><description><![CDATA[<p>The Knight schrieb:</p>
<blockquote>
<p>Sie führen ihr programmierte Funktion aus, aber sie lassen sich nicht mehr drücken.</p>
</blockquote>
<p>kann ich mir im moment gerade schlecht vorstellen..<br />
aber versuch mal</p>
<pre><code class="language-cpp">Button1-&gt;Enabled = true;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/723060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723060</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:47:12 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Mon, 14 Feb 2005 15:05:13 GMT]]></title><description><![CDATA[<p>oder du machst eine for, while oder sonstwas schleife, die dein Programm abkacken lässt. in dem fall müsstest du<br />
Application-&gt;ProcessMessages()<br />
einfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723077</guid><dc:creator><![CDATA[tuxman]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:05:13 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Mon, 14 Feb 2005 15:10:07 GMT]]></title><description><![CDATA[<p>auf jedenfall währe der code hilfreich..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723088</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:10:07 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Mon, 14 Feb 2005 21:52:22 GMT]]></title><description><![CDATA[<p>Im Code ist nichts zufinden, zumindets in der cpp. Ich habe herausgefunden, dass nicht die normalen, sondern die Toolbarbuttons befallen sind. Wie weiter? Welchen Code benötigt ihr?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723492</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Mon, 14 Feb 2005 21:52:22 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Tue, 15 Feb 2005 06:34:18 GMT]]></title><description><![CDATA[<p>The Knight schrieb:</p>
<blockquote>
<p>Welchen Code benötigt ihr?</p>
</blockquote>
<p>hmmmmmmmm.... vielleicht den code mit dem du die eigenschaften und methoden der buttons ansteuerst, währe mal ein guter anfang... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
und falls der code nicht gerade 5 seiten lang ist, kannst du den rest ja auch posten..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723586</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 15 Feb 2005 06:34:18 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Wed, 16 Feb 2005 18:57:54 GMT]]></title><description><![CDATA[<p>Mir ist eingefallen, ich hatte mal kurz einen Fehler gemacht und hatte dummerweise eine Delphi Office XP Menü-Ressource eingebunden. Seitdem ist das so. Nützt euch das was?</p>
<p>Hier der Inhalt der Texteditor.cpp:</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM(&quot;PTexteditor.cpp&quot;, Form1);
USEFORM(&quot;Infofenster.cpp&quot;, info);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application-&gt;Initialize();
                 Application-&gt;CreateForm(__classid(TForm1), &amp;Form1);
                 Application-&gt;CreateForm(__classid(Tinfo), &amp;info);
                 Application-&gt;Run();
        }
        catch (Exception &amp;exception)
        {
                 Application-&gt;ShowException(&amp;exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception(&quot;&quot;);
                 }
                 catch (Exception &amp;exception)
                 {
                         Application-&gt;ShowException(&amp;exception);
                 }
        }
        return 0;
}
//-
</code></pre>
<p>Hier der Inhalt der PTexteditor.h</p>
<pre><code class="language-cpp">#ifndef PTexteditorH
#define PTexteditorH
//---------------------------------------------------------------------------
#include &lt;Classes.hpp&gt;
#include &lt;Controls.hpp&gt;
#include &lt;StdCtrls.hpp&gt;
#include &lt;Forms.hpp&gt;
#include &lt;Buttons.hpp&gt;
#include &lt;ComCtrls.hpp&gt;
#include &lt;Menus.hpp&gt;
#include &lt;Dialogs.hpp&gt;
#include &lt;ToolWin.hpp&gt;
#include &lt;ImgList.hpp&gt;
#include &lt;ActnList.hpp&gt;
#include &lt;StdActns.hpp&gt;
#include &lt;ExtActns.hpp&gt;
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// Von der IDE verwaltete Komponenten
        TRichEdit *txt_eingabe;
        TMainMenu *menu_bar;
        TMenuItem *Info;
        TMenuItem *Datei2;
        TMenuItem *Beenden3;
        TMenuItem *N2;
        TMenuItem *Druckereinrichtung1;
        TMenuItem *Drucken1;
        TMenuItem *N3;
        TMenuItem *Speichernunter1;
        TMenuItem *Speichern1;
        TMenuItem *ffnen1;
        TMenuItem *Neu2;
        TColorDialog *ColorDialog1;
        TFontDialog *FontDialog1;
        TOpenDialog *OpenDialog1;
        TSaveDialog *SaveDialog1;
        TPrinterSetupDialog *PrinterSetupDialog1;
        TPrintDialog *PrintDialog1;
        TMenuItem *Sonstiges1;
        TMenuItem *Hintergrundfarbe1;
        TMenuItem *Schriftart1;
        TMenuItem *Bearbeiten1;
        TMenuItem *Gehezu1;
        TMenuItem *Ersetzen1;
        TMenuItem *Suchen1;
        TMenuItem *N4;
        TMenuItem *Einfgen1;
        TMenuItem *Kopieren1;
        TMenuItem *Ausschneiden1;
        TMenuItem *N5;
        TMenuItem *WiederholenBefehl1;
        TMenuItem *Rckgngig1;
        TToolBar *tool_bar;
        TToolButton *bar_open;
        TToolButton *bar_save_under;
        TToolButton *bar_print;
        TImageList *ImageList1;
        TActionList *ActionList1;
        TAction *font;
        TAction *open;
        TAction *save_under;
        TMenuItem *mnu_help;
        TMenuItem *mnu_info;
        TAction *size;
        TFindDialog *FindDialog1;
        TReplaceDialog *ReplaceDialog1;
        TStatusBar *status_bar;
        TToolButton *bar_save;
        TToolButton *ToolButton1;
        TToolButton *bar_cut;
        TToolButton *bar_copy;
        TToolButton *bar_insert;
        TToolButton *ToolButton2;
        TToolButton *bar_search;
        TAction *zeilen_info;
        TToolButton *bar_new;
        TMenuItem *Ansicht1;
        TMenuItem *mnu_status_bar_view;
        TMenuItem *mnu_tool_bar_view;
        TMenuItem *Lschen1;
        TMenuItem *N1;
        TMenuItem *Allesmarkieren1;
        TMenuItem *UhrzeitDatum1;
        TToolButton *bar_delete;
        TMenuItem *N6;
        TAction *save_function;
        TAction *new_function;
        TEditPaste *paste_function;
        TEditCopy *copy_function;
        TPopupMenu *popup_menu;
        TMenuItem *popup_menu_new;
        TMenuItem *popup_menu_open;
        TToolButton *bar_replace;
        TToolButton *bar_repeat;
        TToolButton *bar_undo;
        TToolButton *ToolButton10;
        TMenuItem *popup_menu_save;
        TMenuItem *popup_menu_save_as;
        TMenuItem *N7;
        TMenuItem *Rckgngig2;
        TMenuItem *Wiederholen1;
        TMenuItem *N8;
        TMenuItem *Ausschneiden2;
        TMenuItem *Kopieren2;
        TMenuItem *Einfgen2;
        TMenuItem *Lschen2;
        TMenuItem *N9;
        TMenuItem *Suchen2;
        TMenuItem *Ersetzen2;
        TMenuItem *Drucken2;
        TSearchReplace *replace_function;
        TEditDelete *delete_function;
        TEditUndo *undo_function;
        TEditCut *cut_function;
        THelpContents *help_function;
        TPopupMenu *popup_menu_rmb;
        TMenuItem *popup_menu_rmb_undo;
        TMenuItem *N10;
        TMenuItem *popup_menu_rmb_cut;
        TMenuItem *popup_menu_rmb_copy;
        TMenuItem *popup_menu_rmb_insert;
        TMenuItem *popup_menu_rmb_delete;
        TMenuItem *N11;
        TMenuItem *popup_menu_rmb_select_all;
        void __fastcall Hintergrundfarbe1Click(TObject *Sender);
        void __fastcall bar_openClick(TObject *Sender);
        void __fastcall bar_save_underClick(TObject *Sender);
        void __fastcall bar_printClick(TObject *Sender);
        void __fastcall Druckereinrichtung1Click(TObject *Sender);
        void __fastcall Schriftart1Click(TObject *Sender);
        void __fastcall fontExecute(TObject *Sender);
        void __fastcall ffnen1Click(TObject *Sender);
        void __fastcall openExecute(TObject *Sender);
        void __fastcall Speichernunter1Click(TObject *Sender);
        void __fastcall save_underExecute(TObject *Sender);
        void __fastcall Speichern1Click(TObject *Sender);
        void __fastcall mnu_infoClick(TObject *Sender);
        void __fastcall mnu_helpClick(TObject *Sender);
        void __fastcall Neu2Click(TObject *Sender);
        void __fastcall Beenden3Click(TObject *Sender);
        void __fastcall Suchen1Click(TObject *Sender);
        void __fastcall txt_eingabeChange(TObject *Sender);
        void __fastcall txt_eingabeKeyPress(TObject *Sender, char &amp;Key);
        void __fastcall zeilen_infoExecute(TObject *Sender);
        void __fastcall mnu_status_bar_viewClick(TObject *Sender);
        void __fastcall mnu_tool_bar_viewClick(TObject *Sender);
        void __fastcall txt_eingabeKeyDown(TObject *Sender, WORD &amp;Key,
          TShiftState Shift);
        void __fastcall bar_saveClick(TObject *Sender);
        void __fastcall save_functionExecute(TObject *Sender);
        void __fastcall txt_eingabeMouseDown(TObject *Sender,
          TMouseButton Button, TShiftState Shift, int X, int Y);
        void __fastcall bar_newClick(TObject *Sender);
        void __fastcall new_functionExecute(TObject *Sender);
        void __fastcall UhrzeitDatum1Click(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall paste_functionExecute(TObject *Sender);
        void __fastcall bar_insertClick(TObject *Sender);
        void __fastcall copy_functionExecute(TObject *Sender);
        void __fastcall bar_copyClick(TObject *Sender);
        void __fastcall Einfgen1Click(TObject *Sender);
        void __fastcall Allesmarkieren1Click(TObject *Sender);
        void __fastcall Ersetzen1Click(TObject *Sender);
        void __fastcall replace_functionBeforeExecute(TObject *Sender);
        void __fastcall bar_replaceClick(TObject *Sender);
        void __fastcall delete_functionExecute(TObject *Sender);
        void __fastcall undo_functionExecute(TObject *Sender);
        void __fastcall bar_undoClick(TObject *Sender);
        void __fastcall cut_functionExecute(TObject *Sender);
        void __fastcall bar_cutClick(TObject *Sender);
        void __fastcall Ausschneiden1Click(TObject *Sender);
        void __fastcall bar_deleteClick(TObject *Sender);
        void __fastcall Lschen1Click(TObject *Sender);
        void __fastcall help_functionExecute(TObject *Sender);
        void __fastcall popup_menu_rmb_undoClick(TObject *Sender);
        void __fastcall popup_menu_rmb_cutClick(TObject *Sender);
        void __fastcall popup_menu_rmb_copyClick(TObject *Sender);
        void __fastcall popup_menu_rmb_insertClick(TObject *Sender);
        void __fastcall popup_menu_rmb_deleteClick(TObject *Sender);
        void __fastcall popup_menu_rmb_select_allClick(TObject *Sender);
        void __fastcall txt_eingabeKeyUp(TObject *Sender, WORD &amp;Key,
          TShiftState Shift);
        void __fastcall txt_eingabeMouseUp(TObject *Sender,
          TMouseButton Button, TShiftState Shift, int X, int Y);
private:	// Anwender-Deklarationen
public:		// Anwender-Deklarationen
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/725077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725077</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Wed, 16 Feb 2005 18:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Wed, 16 Feb 2005 19:18:50 GMT]]></title><description><![CDATA[<p>Nicht richtig aufgepasst oder? Das ist zwar schön viel Quelltext, aber wie wäre es mit:</p>
<p>BigNeal schrieb:</p>
<blockquote>
<p>vielleicht den code mit dem du die eigenschaften und methoden der buttons ansteuerst, währe mal ein guter anfang... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/725092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725092</guid><dc:creator><![CDATA[Dasd]]></dc:creator><pubDate>Wed, 16 Feb 2005 19:18:50 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 10:01:59 GMT]]></title><description><![CDATA[<pre><code>//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;PTexteditor.h&quot;
#include &quot;Infofenster.h&quot;
#include &quot;POptions.h&quot;

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;

AnsiString app_name;
AnsiString zeilen_gesamt;
int zeilen_zaehler;
int file, size;

//---------------------------------------------------------------------------

__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Hintergrundfarbe1Click(TObject *Sender)
{
if (ColorDialog1-&gt;Execute()) {
        txt_eingabe-&gt;Color = ColorDialog1-&gt;Color;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_openClick(TObject *Sender)
{
open-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_save_underClick(TObject *Sender)
{
save_under-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_printClick(TObject *Sender)
{
txt_eingabe-&gt;Print(app_name + &quot;-Druckauftrag&quot;);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Druckereinrichtung1Click(TObject *Sender)
{
PrinterSetupDialog1-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Schriftart1Click(TObject *Sender)
{
font-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::fontExecute(TObject *Sender)
{
if (FontDialog1-&gt;Execute()) {
        txt_eingabe-&gt;Font = FontDialog1-&gt;Font;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::ffnen1Click(TObject *Sender)
{
open-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Speichernunter1Click(TObject *Sender)
{
save_under-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Speichern1Click(TObject *Sender)
{
save_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::mnu_infoClick(TObject *Sender)
{
info-&gt;ShowModal();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::mnu_helpClick(TObject *Sender)
{
help_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Neu2Click(TObject *Sender)
{
new_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Beenden3Click(TObject *Sender)
{
Close();        
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Suchen1Click(TObject *Sender)
{
String old=&quot;&quot;;
int position;
String search=InputBox(&quot;Suchen&quot;,&quot;Nach welchem Wort suchen?&quot;,old);
old=search;
position=txt_eingabe-&gt;Text.Pos(search)-1;
txt_eingabe-&gt;SelStart=position;
txt_eingabe-&gt;SelLength=search.Length();
txt_eingabe-&gt;SetFocus();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::txt_eingabeChange(TObject *Sender)
{
zeilen_zaehler = txt_eingabe-&gt;Lines-&gt;Count;
zeilen_gesamt = &quot;Zeilen gesamt: &quot;;
status_bar-&gt;Panels-&gt;Items[2]-&gt;Text = zeilen_gesamt + zeilen_zaehler;

/*file = open(&quot;Textdatei&quot;,0_CREAT);
size = filelength(file);
close(file);*/
}
//---------------------------------------------------------------------------

void __fastcall TForm1::txt_eingabeKeyPress(TObject *Sender, char &amp;Key)
{
zeilen_info-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::mnu_status_bar_viewClick(TObject *Sender)
{
if (mnu_status_bar_view-&gt;Checked==true)
{
        status_bar-&gt;Visible=false;
        mnu_status_bar_view-&gt;Checked=false;
}
else
{
        status_bar-&gt;Visible=true;
        mnu_status_bar_view-&gt;Checked=true;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::mnu_tool_bar_viewClick(TObject *Sender)
{

if (mnu_tool_bar_view-&gt;Checked==true)
{
        tool_bar-&gt;Visible=false;
        mnu_tool_bar_view-&gt;Checked=false;
}
else
{
        tool_bar-&gt;Visible=true;
        mnu_tool_bar_view-&gt;Checked=true;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::txt_eingabeKeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
zeilen_info-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_saveClick(TObject *Sender)
{
save_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::txt_eingabeMouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
zeilen_info-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_newClick(TObject *Sender)
{
new_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::UhrzeitDatum1Click(TObject *Sender)
{
ShortDateFormat = &quot;d.m.yyyy&quot;;
LongTimeFormat = &quot;hh:nn&quot;;
AnsiString datum = TimeToStr(Time()) + &quot; &quot; + DateToStr(Date());
txt_eingabe-&gt;SelText = datum;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
app_name=&quot;Editor Clone&quot;;
Form1-&gt;Caption = &quot;Unbenannt - &quot; + app_name;
if (zeilen_zaehler &lt;= 0)
{
        status_bar-&gt;Panels-&gt;Items[2]-&gt;Text = &quot;Zeilen: 0&quot;;
}
if ((IntToStr(txt_eingabe-&gt;CaretPos.y) &lt;= 0) &amp;&amp; (IntToStr(txt_eingabe-&gt;CaretPos.x) &lt;=0))
{
        status_bar-&gt;Panels-&gt;Items[0]-&gt;Text = &quot;Zeile: 1&quot;;
        status_bar-&gt;Panels-&gt;Items[1]-&gt;Text = &quot;Spalte: 1&quot;;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_insertClick(TObject *Sender)
{
paste_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_copyClick(TObject *Sender)
{
copy_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Einfgen1Click(TObject *Sender)
{
paste_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Allesmarkieren1Click(TObject *Sender)
{
txt_eingabe-&gt;SelectAll();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Ersetzen1Click(TObject *Sender)
{
replace_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_replaceClick(TObject *Sender)

{
replace_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_undoClick(TObject *Sender)
{
undo_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_cutClick(TObject *Sender)
{
cut_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Ausschneiden1Click(TObject *Sender)
{
cut_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::bar_deleteClick(TObject *Sender)
{
delete_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Lschen1Click(TObject *Sender)
{
delete_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::popup_menu_rmb_undoClick(TObject *Sender)
{
undo_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::popup_menu_rmb_cutClick(TObject *Sender)
{
cut_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::popup_menu_rmb_copyClick(TObject *Sender)
{
copy_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::popup_menu_rmb_insertClick(TObject *Sender)
{
paste_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::popup_menu_rmb_deleteClick(TObject *Sender)
{
delete_function-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::popup_menu_rmb_select_allClick(TObject *Sender)
{
txt_eingabe-&gt;SelectAll();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::txt_eingabeKeyUp(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
zeilen_info-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::txt_eingabeMouseUp(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
zeilen_info-&gt;Execute();
}
//---------------------------------------------------------------------------

// Funktionen

void __fastcall TForm1::help_functionExecute(TObject *Sender)
{
const static int HELP_TAB = 2;
const static int INDEX_ACTIVE = -2;
Application-&gt;HelpCommand(HELP_TAB, INDEX_ACTIVE);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::save_functionExecute(TObject *Sender)
{
if ((SaveDialog1-&gt;FileName == &quot;&quot;) || (SaveDialog1-&gt;FileName == &quot;*.txt&quot;))
{
        SaveDialog1-&gt;Execute();
        txt_eingabe-&gt;Lines-&gt;SaveToFile(SaveDialog1-&gt;FileName);
}
else
{
        txt_eingabe-&gt;Lines-&gt;SaveToFile(SaveDialog1-&gt;FileName);
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::openExecute(TObject *Sender)
{
if (OpenDialog1-&gt;Execute())
{
        txt_eingabe-&gt;Lines-&gt;LoadFromFile(OpenDialog1-&gt;FileName);
        Form1-&gt;Caption = OpenDialog1-&gt;FileName + &quot; - &quot; + app_name;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::zeilen_infoExecute(TObject *Sender)
{
status_bar-&gt;Panels-&gt;Items[0]-&gt;Text = &quot;Zeile: &quot; + IntToStr(txt_eingabe-&gt;CaretPos.y+1);
status_bar-&gt;Panels-&gt;Items[1]-&gt;Text = &quot;Spalte: &quot; + IntToStr(txt_eingabe-&gt;CaretPos.x+1);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::save_underExecute(TObject *Sender)
{
if (SaveDialog1-&gt;Execute())
{
        txt_eingabe-&gt;Lines-&gt;SaveToFile(SaveDialog1-&gt;FileName);
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::delete_functionExecute(TObject *Sender)
{
//txt_eingabe-&gt;Lines-&gt;Strings[CaretPos.x] = txt_eingabe-&gt;Lines-&gt;
//Strings[CaretPos.x].Delete(CaretPos.y,1);

TPoint CaretPoint = txt_eingabe-&gt;CaretPos;
//txt_eingabe-&gt;Lines-&gt;Strings[CaretPoint.y] = txt_eingabe-&gt;Lines[CaretPoint.y].Delete(CaretPoint.x + 1,1);

txt_eingabe-&gt;Lines-&gt;Strings[CaretPoint.y] = txt_eingabe-&gt;Lines-&gt;Strings[CaretPoint.y].Delete(CaretPoint.x + 1,1);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::undo_functionExecute(TObject *Sender)
{
txt_eingabe-&gt;Undo();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::paste_functionExecute(TObject *Sender)
{
txt_eingabe-&gt;PasteFromClipboard();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::replace_functionBeforeExecute(TObject *Sender)
{
ReplaceDialog1-&gt;Execute();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::new_functionExecute(TObject *Sender)
{
txt_eingabe-&gt;Lines-&gt;Clear();
Form1-&gt;Caption = &quot;Unbenannt - &quot; + app_name;
SaveDialog1-&gt;FileName = &quot;*.txt&quot;;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::copy_functionExecute(TObject *Sender)
{
txt_eingabe-&gt;CopyToClipboard();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::cut_functionExecute(TObject *Sender)
{
txt_eingabe-&gt;CutToClipboard();
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/725457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725457</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Thu, 17 Feb 2005 10:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 10:48:11 GMT]]></title><description><![CDATA[<p>Hast Du mal die Eigenschaft Style Deiner ToolButtons überprüft?</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/725492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725492</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Thu, 17 Feb 2005 10:48:11 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 13:47:20 GMT]]></title><description><![CDATA[<p>Toolbar hat kein Style, und die Buttons sind schon Buttons, alles andere passt nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/725639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725639</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Thu, 17 Feb 2005 13:47:20 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 14:38:53 GMT]]></title><description><![CDATA[<p>The Knight schrieb:</p>
<blockquote>
<p>Toolbar hat kein Style</p>
</blockquote>
<p>Hat ja auch niemand behauptet.</p>
<p>The Knight schrieb:</p>
<blockquote>
<p>und die Buttons sind schon Buttons, alles andere passt nicht.</p>
</blockquote>
<p>Was ist Bedeutung von dies? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Du hast - sofern ich Deine Quelltextauszüge richtig deute - doch auch TToolButton-Komponenten<br />
verwendet? Tritt bei diesen das Problem auf?</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/725712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725712</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Thu, 17 Feb 2005 14:38:53 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 16:52:13 GMT]]></title><description><![CDATA[<p>Kapiere die Frage nicht. Die normalen Buttons sind nicht betroffen (hab ich mal egschrieben) NUR die Toolbarbuttons haben den Schaden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/725826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725826</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Thu, 17 Feb 2005 16:52:13 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 17:12:09 GMT]]></title><description><![CDATA[<p>The Knight schrieb:</p>
<blockquote>
<p>Kapiere die Frage nicht.</p>
</blockquote>
<p>Danke, gleichfalls <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>The Knight schrieb:</p>
<blockquote>
<p>Die normalen Buttons sind nicht betroffen (hab ich mal egschrieben) NUR die Toolbarbuttons haben den Schaden.</p>
</blockquote>
<p>So habe ich das auch verstanden. In meiner Version vom BCB (6 Enterprise) haben die TToolButtons eine Eigenschaft Style.<br />
Bei Dir nicht?</p>
<p>Gruß,</p>
<p>Alexander</p>
<p>BCB-Hilfe zu TToolButton::Style schrieb:</p>
<blockquote>
<p>Die Eigenschaft Style legt den Stil der Schaltfläche fest.</p>
<p>enum TToolButtonStyle { tbsButton, tbsCheck, tbsDropDown, tbsSeparator, tbsDivider };<br />
__property TToolButtonStyle Style = {read=FStyle, write=SetStyle, default=0};</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/725842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/725842</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Thu, 17 Feb 2005 17:12:09 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Thu, 17 Feb 2005 21:36:16 GMT]]></title><description><![CDATA[<p>STyle steht bei mir auf tbsButton. SOnst noch was?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/726032</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/726032</guid><dc:creator><![CDATA[The Knight]]></dc:creator><pubDate>Thu, 17 Feb 2005 21:36:16 GMT</pubDate></item><item><title><![CDATA[Reply to Buttons lassen sich nicht mehr drücken?? on Fri, 18 Feb 2005 09:09:30 GMT]]></title><description><![CDATA[<p>The Knight schrieb:</p>
<blockquote>
<p>SOnst noch was?</p>
</blockquote>
<p>Weiß ich nicht - Du hast ja gefragt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Wenn Du eine Versionsverwaltung verwendest, könntest Du zur vorherigen Version zurückkehren<br />
und dann mal vergleichen, was sich geändert hat.</p>
<p>Alternativ könntest Du natürlich mal das Formular nachbauen (vielleicht auch nur Teile),<br />
schauen, ob's funktioniert und dann vergleichen. Ein Blick in die .dfm-Datei kann dabei<br />
auch hilfreich sein.</p>
<p>Vielleicht stehen ja auch in der Hilfe noch mehr Hinweise oder man kann zu dem Thema über<br />
Google irgendwas finden...</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/726251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/726251</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Fri, 18 Feb 2005 09:09:30 GMT</pubDate></item></channel></rss>