Re: CFormView and Tab control
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 15:31:01 -0500
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
.
- References:
- CFormView and Tab control
- From: fima
- Re: CFormView and Tab control
- From: Joseph M . Newcomer
- Re: CFormView and Tab control
- From: fima
- CFormView and Tab control
- Prev by Date: Re: Making sure data is saved on closing application
- Next by Date: Re: Making sure data is saved on closing application
- Previous by thread: Re: CFormView and Tab control
- Next by thread: Sorting of CArray
- Index(es):
Relevant Pages
|