X xiaoyonghero Unregistered / Unconfirmed GUEST, unregistred user! 2002-02-25 #1 在FORM窗体中,我先放了一个DBGrid控件,再在它的上面加一个DBComboBox控件, 请问: 怎样才能动态地控制 DBComboBox控件 与 DBGrid控件地第一列相同地宽度?
L l_x_yuan Unregistered / Unconfirmed GUEST, unregistred user! 2002-02-25 #3 在OnDrawDataCell事件上写: DBComboBox1.left := rect.left + dbgrid1.left + 1; DBComboBox1.top := rect.top + dbgrid1.top + 1; DBComboBox.height := rect.bottom - rect.top + 2; DBComboBox.Width := rect.Right- rect.left;
在OnDrawDataCell事件上写: DBComboBox1.left := rect.left + dbgrid1.left + 1; DBComboBox1.top := rect.top + dbgrid1.top + 1; DBComboBox.height := rect.bottom - rect.top + 2; DBComboBox.Width := rect.Right- rect.left;
S snow-yi Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-27 #7 http://211.100.17.210:208/DownLoad/DownLoad.asp