|
StringGrid에서 Col = @,# 일 경우 StringGrid위에 ComboBox가 생겨나도록 하여
입력을 하려 하는데..
Enter를 치면 StringGrid위에 ComboBox에서 다음 칸으로(또는 다른 ComboBox로)
가도록 하려 하니 링크에러가 떠서 여기에 올립니다..
======================================================================================
void __fastcall TForm::StringGrid1KeyPress(TObject *Sender, char &Key)
if((Key == VK_RETURN)||(Key == VK_TAB)){
if(( StringGrid1->Col + 1) == StringGrid1->ColCount ){
StringGrid1->Row = StringGrid1->Row + 1;
StringGrid1->Col = 0;
ComboBox1->Visible = true;
StringGrid1->Options >> goAlwaysShowEditor;
ComboBox1->SetFocus();
}
else if(ComboBox1->Focused()){
ComboBox1->Visible = false;
ComboBox2->Visible = true;
StringGrid1->Options >> goAlwaysShowEditor;
ComboBox2->SetFocus();
StringGrid1->Col = StringGrid1->Col +1;
}
else{
ComboBox1->Visible = false;
ComboBox2->Visible = false;
StringGrid1->Options >> goAlwaysShowEditor;
StringGrid1->Col = StringGrid1->Col + 1;
}
Key = 0;
Perform(WM_NEXTDLGCTL,0,0);
}// if
}
============================================================================================
그럼 답변 부탁드립니다.
감사합니다.~~.
|