StringGrid控件的问题

tls3511 2011-11-28 10:18:36
在StringGrid中,用鼠标拖动选择了多row,在程序中如何知道那些row被选中了?谢谢!
...全文
72 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangcftxz 2011-11-29
  • 打赏
  • 举报
回复
留个标记 以后好来找
mgsg 2011-11-28
  • 打赏
  • 举报
回复
The following code selects the rectangle containing rows 1 through 4, and columns 2 and 3.

void __fastcall TForm1::Button1Click(TObject *Sender)

{
TGridRect myRect;
myRect.Left = 3;
myRect.Top = 1;
myRect.Right = 2;
myRect.Bottom = 4;
DrawGrid1->Selection = myRect;
}

13,871

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧