Re: CFormView and Tab control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.



Relevant Pages

  • Re: CFormView and Tab control
    ... The bottom line here then is that your question makes no sense. ... >> want a control to become enabled if the user hits a specific key. ... Joseph M. Newcomer [MVP] ...
    (microsoft.public.vc.mfc)
  • Re: Documentation, anyone?
    ... password field and a "submit" button, and if the user hits the key ... Nope..actually the "enter" event is when the cursor moves into the ... control/field. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Why Thread-Safe VB6 ActiveX when it is single threaded?
    ... Microsoft MVP, MCSD ... >> entering the MTA) and serve as the host for your control (e.g. ... >> thread can then register the control's interface pointer into GIT ... >> Alexander Nickolov ...
    (microsoft.public.win32.programmer.ole)
  • Re: An multithread question.
    ... See my essay on dialog control management on my MVP Tips site. ... See my essays on worker threads and UI threads on my MVP Tips site. ... I created two corresponding buttons ButtonGO, and ButtonStop ...
    (microsoft.public.vc.mfc)
  • Re: ActiveX and MVP: Implementation Strategies Redux
    ... Just as a follow-on to that other post concerning the Codejock ActiveX error, we are exploring the debugger in more detail to see how you got out of it everything that you put into your reply. ... concerning the incorporation of ActiveX into the MVP scheme. ... Codejock has a control called XtremeShortcutBar ...
    (comp.lang.smalltalk.dolphin)