Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2005, 12:42 AM
odyssey_21 odyssey_21 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 odyssey_21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 25 sec
Reputation Power: 0
textbox objects

im new delphi user..

@ runtime, a textbox object's focus is transferred to another textbox by pressing TAB key.

i want also that when i press the ENTER key the textbox control will also transfer... just like textbox in ms-access. HOW?

Reply With Quote
  #2  
Old August 9th, 2005, 07:28 AM
imitrik imitrik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Macedonia
Posts: 25 imitrik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 56 m
Reputation Power: 0
Send a message via ICQ to imitrik Send a message via MSN to imitrik Send a message via Yahoo to imitrik
Hi,

In the form's PRIVATE section enter:

Procedure CMDialogKey(Var Msg:TWMKey); message CM_DIALOGKEY;

In the form's IMPLEMENTATION section enter:

Code:
   Procedure TForm1.CMDialogKey(Var Msg: TWMKey);
   Begin
      If (ActiveControl Is TEdit) Then
         If Msg.Charcode = 13 Then
            Msg.Charcode := 9;
      inherited;
   End;


Hope this will be helpfull,
Mitrik.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > textbox objects


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT