Jump to content
Sign in to follow this  
ndm

Delphi TdbCtrlGrid

Recommended Posts

ndm

Boas ,

  Por acaso alguem sabe como desactivar as scrollbars do componente TDbCtrlGrid.

  Obrigado

Fiquem bem

ndm

Share this post


Link to post
Share on other sites
knightcoder

aqui vai uma tentativa:

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;

Share this post


Link to post
Share on other sites
ndm

Obrigado knightcoder

De facto ficam escondidas as barras de scroll. No entanto ao clickar no dbctrlgrid elas voltam a aparecer.

.... basta agora puxar um bocadito pela cabeça  ;):P

mais uma vez, obrigado

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.