This what you replied for clearing the dropdown list box generated when the password is entered in the input message box.An alternate approach might be to use a new screen and screen script with an edit control to enter the password. KFLOP C Programs can read Screen Script Edit Controls as well as write to them. So it should be possible to clear the edit control after the password is entered.
but i can't understand the method you were suggesting.are you suggesting to create a screen script for entering the password?
i had tried to duplicate my input message box for my password screen but i could not find following options while developing the screen,
- after typing my password and i need a "ok" button which check whether my entered password is correct or not. If the password is correct then just closes my password screen and returns back to my original screen.If my password is wrong i want to indicate the password is wrong and closes my password screen and returns back to original screen
- if i press the cancel button also i need to navigate to my original screen
i had attached my sample password screen
what is the purpose of this program?void CSetValue::OnOK()
{
UpdateData();
double v;
int result = sscanf(m_ValueString,"%lf",&v);
if (result==1)
{
m_Value = v;
POSITION pos = Recent.GetHeadPosition();
POSITION prev=pos;
for (int i=0; i < Recent.GetCount(); i++)
{
if (m_ValueString == Recent.GetNext(pos))
{
Recent.RemoveAt(prev);
}
prev = pos;
}
if (Recent.GetCount() >10)
Recent.RemoveTail();
Recent.AddHead(m_ValueString);
}
else
{
AfxMessageBox("Invalid Entry");
return;
}
CDialog::OnOK();
}
I also have another question that is whether i can inactivate the function of the following highlighted button in the below kmotion screen image? Regards,
Ajith Arawinth,