STRINGGRID中加入COMBOBOX 怎样在STRINGGRID组件中加入COMBOBOX? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ComboBox1.Visible := False;ComboBox1.Left := StringGrid1.Left + StringGrid1.CellRect(ACol, ARow).Left + 2;ComboBox1.Top := StringGrid1.Top + StringGrid1.CellRect(ACol, ARow).Top + 1;ComboBox1.Height := StringGrid1.RowHeights[ARow] + 3;ComboBox1.Width := StringGrid1.ColWidths[ACol] + 4;ComboBox1.Visible := True; procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean);begin ComboBox1.Visible := False; ComboBox1.Top := StringGrid1.Top + StringGrid1.CellRect(ACol, ARow).Top + 1; ComboBox1.Left := StringGrid1.Left + StringGrid1.CellRect(ACol, ARow).Left + 2; ComboBox1.Height := StringGrid1.RowHeights[ARow] + 5; ComboBox1.Width := StringGrid1.ColWidths[ACol] + 3; ComboBox1.Visible := True;end; Grid失去焦点事件怎么没有?我的焦点在其它组件,Grid中还会显示Combobox组件。 在 exit 事件中:ComboBox1.Visible := false; [程序員健康篇]程序員如何緩解壓力,保持心理健康! 求教,如何用delphi读取xml 高手请进:关于对象创建的问题? 如何在DirectX窗口中显示一行文字!??? ?????简单的数据库错误问题,高手来指点一下吧!!?? 谁提供或知道哪有双机通迅的源代码(并串口的不要),加100分。 没有学历的人怎么办? 如何分别得到当前日期的年、月、日? 能创建这样的存储过程吗?? delphi6企业版有多大? 散点分,请朋友们指点迷津。 急求各位高手这样的程序该如何做
ComboBox1.Left := StringGrid1.Left + StringGrid1.CellRect(ACol, ARow).Left + 2;
ComboBox1.Top := StringGrid1.Top + StringGrid1.CellRect(ACol, ARow).Top + 1;
ComboBox1.Height := StringGrid1.RowHeights[ARow] + 3;
ComboBox1.Width := StringGrid1.ColWidths[ACol] + 4;
ComboBox1.Visible := True;
ARow: Integer; var CanSelect: Boolean);
begin
ComboBox1.Visible := False;
ComboBox1.Top := StringGrid1.Top + StringGrid1.CellRect(ACol, ARow).Top + 1;
ComboBox1.Left := StringGrid1.Left + StringGrid1.CellRect(ACol, ARow).Left + 2;
ComboBox1.Height := StringGrid1.RowHeights[ARow] + 5;
ComboBox1.Width := StringGrid1.ColWidths[ACol] + 3;
ComboBox1.Visible := True;
end;
ComboBox1.Visible := false;