利用 mouse event + StringGrid.MouseToCell method 得到 col and row

void __fastcall TLCDSimForm::sgComSegViewMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
int iCol, iRow;
TStringGrid *sgTable = (TStringGrid *)Sender;
sgTable->MouseToCell(X, Y, iCol, iRow);
}

 

Reference: [BCB] StringGrid 使用大全

arrow
arrow
    文章標籤
    BCB StringGrid Cell
    全站熱搜

    Nola 發表在 痞客邦 留言(0) 人氣()