Re: How to control a clic in the scroll bar

From: Bruce Roberts (ber_at_bounceitattcanada.xnet)
Date: 06/02/04


Date: Wed, 2 Jun 2004 15:59:24 -0400


"Stark" <starkwedder@virgilio.it> wrote in message
news:CGWuc.269270$hc5.11644839@news3.tin.it...
> How can I control a clic in the vertical scroll bar of a DBGrid ?

You don't need to.

> Let me explain my situation. I have a form:
> - on the left side, a one column DBGrid shows all of the items of a table
> - on the rigth side, a panel with DBEdits shows the details of the
highlited
> item. A title repeats the name of the item shown.

Use the onDataChange event of the datasource to update the title label. The
help on this event is a little misleading, it fires whenever the dataset
scrolls. An alternative, if the name is a field in the table, would be to
use a tDBText control. Then there would be no need to add any code.



Relevant Pages

  • Re: How to control a clic in the scroll bar
    ... > How can I control a clic in the vertical scroll bar of a DBGrid? ...
    (comp.lang.pascal.delphi.misc)
  • How to control a clic in the scroll bar
    ... How can I control a clic in the vertical scroll bar of a DBGrid? ...
    (comp.lang.pascal.delphi.misc)
  • Re: Vertical scroll bar missing
    ... "NTE" wrote in message ... >> A large tab control should not cause vertical scroll bar to not appear. ...
    (microsoft.public.access.forms)
  • Re: Vertical scroll bar missing
    ... Although I was unable to get the Visible property set to true. ... > have been unable to produce any situation where the vertical scroll bar ... This form has a tab control as its only control, ... >> many other controls on each page of the tab control. ...
    (microsoft.public.access.forms)
  • Re: Questions on combo box and MSFlexGrid
    ... When the users choose a fieldname in combobox, ... Use a databound control -- DBCombo and DBGrid, ... I think that most people's objection to DBGrid is for data entry. ...
    (microsoft.public.vb.database)