Y
ynduanlian
Unregistered / Unconfirmed
GUEST, unregistred user!
放一个COMBOX
如果单击GRID非COMBOX列时隐藏
我的StringGrid名为SGd,但为什么我的if (gdFocused in State) then 一句总是判断为False,也就是怎么我的ShowMessage('OK')一句怎么也不能执行?
if (gdFocused in State) then
begin
ShowMessage('OK');
if (SGd.Cells[ACol,0]='列二') then
begin
cmbHide.Left := Rect.Left + SGd.Left;
cmbHide.Top := Rect.Top + SGd.top;
cmbHide.Width :=Rect.Right-Rect.Left;
cmbHide.Height:=Rect.Bottom-Rect.Top;
CmbHide.Visible := True;
cmbHide.SetFocus;
end;
end;
如果单击GRID非COMBOX列时隐藏
我的StringGrid名为SGd,但为什么我的if (gdFocused in State) then 一句总是判断为False,也就是怎么我的ShowMessage('OK')一句怎么也不能执行?
if (gdFocused in State) then
begin
ShowMessage('OK');
if (SGd.Cells[ACol,0]='列二') then
begin
cmbHide.Left := Rect.Left + SGd.Left;
cmbHide.Top := Rect.Top + SGd.top;
cmbHide.Width :=Rect.Right-Rect.Left;
cmbHide.Height:=Rect.Bottom-Rect.Top;
CmbHide.Visible := True;
cmbHide.SetFocus;
end;
end;