Re: CFormView and Tab control



The bottom line here then is that your question makes no sense. If some control is
disabled, then it won't respond to a click and therefore there is no way it can become
enabled as a consequence. If it is enabled, then it will respond, but there's no need to
enable it.
joe

On Mon, 19 Dec 2005 22:27:30 +0200, "fima" <fkpkot@xxxxxxxxx> wrote:

>by key i ment genrelly any action mnot a key on the keyboard,
>i have a menu item that activates a function and i wnat it also to enable
>the tabcontrol
>
>
>"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
>news:2b4cq119jk0rkl4joo844n8coahru4dt7g@xxxxxxxxxx
>> 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
>
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • 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)
  • Re: License issues with OWC11
    ... Alvin Bruney [MVP ASP.NET] ... Before when the control had the license checking code, ... to develop with OWC and you as developer wouldn't have to worry about ...
    (microsoft.public.office.developer.web.components)
  • Re: CFormView and Tab control
    ... want a control to become enabled if the user hits a specific key. ... you could be either misled by the user typing a ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)