Re: CFormView and Tab control
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 18 Dec 2005 20:51:24 -0500
By "key" I presume you mean a key on the keyboard. If I've understood the question, you
want a control to become enabled if the user hits a specific key.
Note this is tricky. The simplistic answer is that this is one of the few places
PreTranslateMessage in the dialog makes sense. But this only works well if the key is a
key that has no semantics. Otherwise, you could be either misled by the user typing a
legitimate key to some edit control which has the focus, or by typing some other key that
has meaning in a dialog.
Can you say a bit more specifically what you want to have happen?
joe
On Sun, 18 Dec 2005 22:50:35 +0200, "fima" <fkpkot@xxxxxxxxx> wrote:
>Hi,
>im building an application based on the cviewform..
>ive added in the "OnInitialUpdate" in the view class
>but now i want that when the user presses a key it will become enabled since
>it should be diabled at the start...
>
>how can i build tthe activation code? and where?
>
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: CFormView and Tab control
- From: fima
- Re: CFormView and Tab control
- References:
- CFormView and Tab control
- From: fima
- CFormView and Tab control
- Prev by Date: Re: Sorting of CArray
- Next by Date: Re: Adding second NIC
- Previous by thread: Re: CFormView and Tab control
- Next by thread: Re: CFormView and Tab control
- Index(es):
Relevant Pages
|