条件是使用基本控件

解决方案 »

  1.   

    stringGrid.cell[col,row].rect.top;
    stringGrid.cell[col,row].rect.left;
      

  2.   

    忘了说了,是在点击事件中,
    col,row是你中的单元格的列号和行号
    stringgrid.col,stringgrid.row
      

  3.   

    还有col,row本身就是TCellRect的坐标
      

  4.   

    我说的坐标是相对于stringgrid的坐标,不是说它是第几行第几列
      

  5.   

    取得选定单元的TRect:
    StringGrid1.CellRect(StringGrid1.Col,StringGrid1.Row)这个取得后应该懂得坐标了吧?
      

  6.   

    StringGrid1.CellRect(StringGrid1.Col,StringGrid1.Row).Left
    StringGrid1.CellRect(StringGrid1.Col,StringGrid1.Row).Top