领测软件测试网
软件测试技术门户&\;w^j:mG]M3^v~9|"Px If (ACol = 2) and (ARow >= FixedRows) Then Begin
OS,f*wEv1m7@ // entered the column associated to the combobox
4vPS5K&\&| // get grid out of selection mode
软件测试技术门户q3L `.V rQ c$vV(Gl@ perform( WM_CANCELMODE, 0, 0 );
9`:A'lVGaC0H:n6? w2G // position the control on top of the cell
4{pM6XMCY
i1n R := CellRect( Acol, Arow );
软件测试技术门户V.U0@oD+h0Q;b org:= Self.ScreenToClient( ClientToScreen( R.topleft ));
软件测试技术门户%t[/ce$sX With combobox1 do begin
软件测试技术门户T
^{yR5vZ%D:Yg!} setbounds( org.X, org.Y, r.right-r.left, height );
t)LW)FKmf)s'Q
A itemindex := Items.IndexOf( Cells[ acol, arow ] );
软件测试技术门户
TIFs:ET Show;
eur5Z)~lQO BringTofront;
软件测试技术门户x6i$C.Yc // focus the combobox and drop down the list
软件测试技术门户
u;P0jQ6_S!p#v1j SetFocus;
软件测试技术门户(e0{1]sS$oCe DroppedDown := true;
G4Ei+VP.~'vIM end;
软件测试技术门户
g-G'a xv0_]e$X End;
.? Z
])j]h-@end;
kS|;?I!|!^D5h软件测试技术门户K)Su1@F6]|2Oend.
&oBGUOQ%Q'g软件测试技术门户