procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin
if (gdfocused in state) or (gdselected in state) or (gdfixed in state) then
button2.Top:=rect.Top+ StringGrid1.top + 1;
end;
其中if 的作用。
Rect: TRect; State: TGridDrawState);
begin
if (gdfocused in state) or (gdselected in state) or (gdfixed in state) then
button2.Top:=rect.Top+ StringGrid1.top + 1;
end;
其中if 的作用。
解决方案 »
- Fast Report 如果在DesignReport时隐藏某些菜单?
- 接分了!!!!
- Fastreport 的小问题。
- 写了一个打字练习,大家帮助测试能否正确安装,在线!
- 哪位仁兄提供 左键响应popupmenu的资料!
- 哈哈,太搞笑了!
- 关于消息、窗口、窗口过程、进程、线程的问题大家讨论一下
- 如何,通过双击一文件(如:TXT,等)打开程序,同时打开文件
- 简单!多分!怎样在Delphi中操作全局变量?就像C++的::运算符.
- 请问:如何实现listbox的拖动操作?
- Dgmultiselect设置为True可以在Dbedit中选择多行后,为何通过Dbedit只能更改一行的数据?
- 做过停靠窗口的请进
gdFocused The cell has input focus.
gdFixed The cell is in the fixed region of the grid.