Default Removing scrollbars from TDBCtrlGrid

来源:互联网 发布:世界上最出名的程序员 编辑:程序博客网 时间:2024/05/16 01:29

http://www.delphipages.com/forum/showthread.php?t=133067

 

This one works for TDBGrid, but I think it also works for TDBCtrlGrid:

http://www.swissdelphicenter.ch/en/showcode.php?id=1880

Regards,
Abdulaziz Jasser
Reply With Quote
 #3  
Old05-06-2005, 02:44 AM
omercanomercan is offline
Member
 
Join Date: Aug 2001
Posts: 89
DefaultRE: Removing scrollbars from TDBCtrlGrid

Hi

This is how to remove both scrollbars from a
TDBCtrlGrid:

procedure TForm1.BitBtn1Click(Sender: TObject);
const
Enable: Array[Boolean] of Byte = (ESB_ENABLE_BOTH, ESB_DISABLE_BOTH);
begin
EnableScrollBar(DBCtrlGrid1.Handle,SB_VERT,Enable[Abs(VertScrollBar.Range - Height) < 3]);
ShowScrollbar(DBCtrlGrid1.Handle, SB_BOTH, false);
end;

Good luck!

Omer
原创粉丝点击