| View previous topic :: View next topic |
| Author |
Message |
Renan Guest
|
Posted: Thu Jul 20, 2006 3:56 pm Post subject: focus on a EditBox |
|
|
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
|
Posted: Thu Jul 20, 2006 4:25 pm Post subject: Re: focus on a EditBox |
|
|
"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
|
Posted: Thu Jul 20, 2006 5:22 pm Post subject: Re: focus on a EditBox |
|
|
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
|
Posted: Thu Jul 20, 2006 6:13 pm Post subject: Re: focus on a EditBox |
|
|
"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
|
Posted: Thu Jul 20, 2006 9:32 pm Post subject: Re: focus on a EditBox |
|
|
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
|
Posted: Fri Jul 21, 2006 8:10 am Post subject: Re: focus on a EditBox |
|
|
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 |
|
 |
|