TStringGrid에서 X,Y좌표를 이용하여 Cell 을 알아내는 함수는
MouseToCell이라는 메소들를 이용하면 됩니다.
void __fastcall TForm1::StringGrid1DragDrop(TObject *Sender,
TObject *Source, int X, int Y)
{
int ARow,ACol;
StringGrid1->MouseToCell(X,Y,ACol,ARow);
ShowMessage("Drop Cell = ("+IntToStr(ACol)+" , "+IntToStr(ARow)+" ) ");
}
그럼..
linuxman 님이 쓰신 글 :
: 안녕하세요.
:
: 스트링 그리드에..무언가 drop 되었을때... drop 된 그때의
: 셀의 Col, Row의 값을 알아내고 싶습니다....넘어오는 인자에는 X,Y 값 뿐이 없는데..
:
: void __fastcall TmainF::sg1DragDrop(TObject *Sender, TObject *Source,
: int X, int Y)
: {
:
: //drop 되고 있는 셀의 위치?
:
: }
:
: 수고하세요..
|