<?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[TEdit und VK_TAB]]></title><description><![CDATA[<p>Hallo. Mit der Tabluatortaste geht man ja normalerweise die Eingabekomponenten in seiner Form durch. Ich habe nun ein TEdit und möchte gern das auf die VK_TAB Eingabe eine eigene Aktion ausgelöst wird. Problem an der Sache ist, das VK_TAB scheinbar nicht abgefangen wird. Wie kann ich ich in KeyPress bzw KeyDown VK_TAB angesprochen bekommen und meine eigene Aktion durchführen, so das es nicht mehr den Focus verliert?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/207253/tedit-und-vk_tab</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 03:43:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/207253.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Mar 2008 12:40:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 12:40:01 GMT]]></title><description><![CDATA[<p>Hallo. Mit der Tabluatortaste geht man ja normalerweise die Eingabekomponenten in seiner Form durch. Ich habe nun ein TEdit und möchte gern das auf die VK_TAB Eingabe eine eigene Aktion ausgelöst wird. Problem an der Sache ist, das VK_TAB scheinbar nicht abgefangen wird. Wie kann ich ich in KeyPress bzw KeyDown VK_TAB angesprochen bekommen und meine eigene Aktion durchführen, so das es nicht mehr den Focus verliert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468743</guid><dc:creator><![CDATA[muffy]]></dc:creator><pubDate>Wed, 05 Mar 2008 12:40:01 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 12:52:26 GMT]]></title><description><![CDATA[<p>Gar nicht, das geht offensichtlich nur im KeyUp-Event.</p>
<p>[EDIT] Damit der Fokus nicht gewechselt wird, reicht es, in den Edits TabStop = false zu setzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468751</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468751</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 05 Mar 2008 12:52:26 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 13:11:00 GMT]]></title><description><![CDATA[<p>Danke, aber für den BCB5 stimmt beides nicht. TabStop bedeutet für das TEdit lediglich das es nicht mehr angesprungen wird, aber es kann mit TAB rausgesprungen werden. Auch der Hinweis mit KeyUp funktioniert so nicht in BCB5. Hat ich alles schon probiert. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1468762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468762</guid><dc:creator><![CDATA[muffy]]></dc:creator><pubDate>Wed, 05 Mar 2008 13:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 13:16:06 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7971">@akari</a>: Kannst Du das mal im BCB5 testen? In meinem BCB6 funktioniert das problemlos in der KeyUp.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468767</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468767</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 05 Mar 2008 13:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 13:41:00 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ja ich kann muffy bestätigen. Im BCB5 kann TEdit mit keinem der Key-Events den Tabulator abfangen. Vermutlich must du von TEdit ableiten und dort die entsprechende Windows-Message abfangen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468779</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 05 Mar 2008 13:41:00 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 13:47:27 GMT]]></title><description><![CDATA[<p>Danke akari. Ich hatte es schon befürchtet, aber gehofft, es wäre ein 'Anwenderfehler'...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468782</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 05 Mar 2008 13:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 14:42:16 GMT]]></title><description><![CDATA[<p>Argh. Das Edit das ich nutzen möchte verarbeitet bereits Messages, aber welches muss ich für TAB abfangen und wie verwenden? Wäre nett wenn ihr da weiterhelfen könntet. Danke. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<pre><code class="language-cpp">TAdvEdit = class(TEdit)
  private
    procedure WMChar(var Msg: TWMKey); message WM_Char;
  protected
    procedure WndProc(var Message: TMessage); override;
  end;

procedure TAdvEdit.WndProc(var Message: TMessage);
begin
  if (Message.Msg = WM_SETFOCUS) or (Message.Msg = WM_MOUSEACTIVATE)
   then SendMessage(Handle, EM_SETREADONLY, 0, 0);
  inherited WndProc(Message);
end;

procedure TAdvEdit.WMChar(var Msg: TWMKey);
begin
 inherited;
end;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1468818</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468818</guid><dc:creator><![CDATA[muffy]]></dc:creator><pubDate>Wed, 05 Mar 2008 14:42:16 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 15:32:52 GMT]]></title><description><![CDATA[<p>Ich denke das der richtige Weg, aber der Code bewirkt leider keinerlei Veränderung. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">procedure TAdvEdit.WndProc(var Message: TMessage);
begin
  case Message.Msg of
    WM_KEYDOWN, WM_SYSKEYDOWN:
      begin
          case TWMKey(Message).CharCode of
            VK_TAB:
                begin
                  TWMKey(Message).CharCode := 0;
                  inherited;
                end;
            end;
      end;
    else
        inherited ;
  end;
end;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1468854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468854</guid><dc:creator><![CDATA[muffy]]></dc:creator><pubDate>Wed, 05 Mar 2008 15:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 17:41:02 GMT]]></title><description><![CDATA[<p><a href="http://web.archive.org/web/20040818220044/www.bcbdev.com/faqs/faq78.htm" rel="nofollow">Receive key events for the arrow keys or the TAB key</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468948</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 05 Mar 2008 17:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to TEdit und VK_TAB on Wed, 05 Mar 2008 18:15:17 GMT]]></title><description><![CDATA[<p>Wahnsinn, das hat geholfen. Vielen Dank!<br />
Kleiner Zusatz, wenn man in KeyPress ebenfalls RETURN oder TAB abfragt und dort Key=0 setzt, dann verschwindet auch der hässliche &quot;bong&quot; <em>Ton</em>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1468970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1468970</guid><dc:creator><![CDATA[muffy]]></dc:creator><pubDate>Wed, 05 Mar 2008 18:15:17 GMT</pubDate></item></channel></rss>