Re: edit control problem
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 18 Aug 2006 16:07:29 -0400
I am a believer in realtime data validation. However, taking an action like this will be
disruptive to the user interface and would not be appropriate. Take a look at my
validating edit control on my MVP Tips site for an example of a highly-responsive edit
control but one which does not preempt the user by popping up a messagebox.
joe
On Fri, 18 Aug 2006 07:54:51 -0700, "Z.K." <nospam@xxxxxxxxxx> wrote:
Well, I do have a reason. I want the user to do something else before theyJoseph M. Newcomer [MVP]
actually enter any data in the edit box. I could wait and have them enter
an entire screen and wait for them to press the return key, but I wanted to
do whenever they were to press a key in the editbox. It seemed like the
best way to do it, but maybe I need to think of another way.
Z.K.
"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:1155846547.809954.286690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MessageBox("The File to be printed has not been selected,\n Select afile
first!", "File Not Selected", MB_ICONSTOP | MB_OK);
m_Edit_Data.SetWindowText("");
This is your problem. Why would you want to do this in OnEnChange...?
---
Ajay
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- edit control problem
- From: Z.K.
- Re: edit control problem
- From: Ajay Kalra
- Re: edit control problem
- From: Z.K.
- edit control problem
- Prev by Date: Re: base class virtual destructor not resolving inherited virtual functions
- Next by Date: Re: edit control problem
- Previous by thread: Re: edit control problem
- Next by thread: Re: edit control problem
- Index(es):
Relevant Pages
|