BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

focus on a EditBox

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Renan
Guest





PostPosted: Thu Jul 20, 2006 3:56 pm    Post subject: focus on a EditBox Reply with quote



How do I set focus on a EditBox? (for example: I press F2 and the focus is in Edit1.)

Renan
Back to top
Alan Bellingham
Guest





PostPosted: Thu Jul 20, 2006 4:25 pm    Post subject: Re: focus on a EditBox Reply with quote



"Renan" <gulbrrs (AT) gmail (DOT) com> wrote:

Quote:
How do I set focus on a EditBox? (for example: I press F2 and the focus is in Edit1.)

HWND SetFocus(
HWND hWnd // handle to window to receive focus
);

So just hand this the window handle for the edit box you want to receive
focus. The return value is the handle of the previous window that had
focus.

Alan Bellingham
--
ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel
Back to top
Mike Collins
Guest





PostPosted: Thu Jul 20, 2006 5:22 pm    Post subject: Re: focus on a EditBox Reply with quote



Or even, editbox->SetForcus();


"Renan" <gulbrrs (AT) gmail (DOT) com> wrote in message
news:44bf614b$1 (AT) newsgroups (DOT) borland.com...
Quote:

How do I set focus on a EditBox? (for example: I press F2 and the focus is
in Edit1.)

Renan
Back to top
Alan Bellingham
Guest





PostPosted: Thu Jul 20, 2006 6:13 pm    Post subject: Re: focus on a EditBox Reply with quote

"Mike Collins" <its (AT) TheBottomOfThePost (DOT) com> wrote:

Quote:
Or even, editbox->SetForcus();

What's 'editbox'?

I think you must think this is a VCL group ;-)

Alan Bellingham
--
ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel
Back to top
Mike Collins
Guest





PostPosted: Thu Jul 20, 2006 9:32 pm    Post subject: Re: focus on a EditBox Reply with quote

Hay baby - it's cppbuilder.nativeapi AND he cross posted to
vcl.components.using

:-)



"Alan Bellingham" <alan (AT) lspace (DOT) org> wrote in message
news:6b0vb2ht04v9f2fggpjmr8rnmu04omtdkp (AT) 4ax (DOT) com...
Quote:
"Mike Collins" <its (AT) TheBottomOfThePost (DOT) com> wrote:
Back to top
بابك
Guest





PostPosted: Fri Jul 21, 2006 8:10 am    Post subject: Re: focus on a EditBox Reply with quote

where is its F2??

Quote:
Or even, editbox->SetForcus();
How do I set focus on a EditBox? (for example: I press F2 and the focus
is
in Edit1.)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.