CRDBGrid with property Scrollbars(ssNone,ssHorizontal,ssVertical,ssBoth)

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
quadrophenia
Posts: 3
Joined: Sun 08 Apr 2007 19:18

CRDBGrid with property Scrollbars(ssNone,ssHorizontal,ssVertical,ssBoth)

Post by quadrophenia » Mon 23 Jul 2007 22:28

Sorry for asking a question about CDDBGrid as I learned that it is not supported anymore. Although I use this component very often.

the only very important thing for me missing is the public property Scrollbars.

My experience with component-writing is little, so the source-code does not help me to integrate easily a property "Scrollbars" (like in TMemo) into it.
For a real programmer it would take almost no-time i am sure.

Is there someone out there who already extended the CRDBGrid - or give me a literature reference - or directly a code snippet?

Thanx

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 24 Jul 2007 08:54

This property persists in DBGrids, but it is protected. You can try to add the declaration of ScrollBars in the public or published sections of TCRDBGrid to be able to change its value. However I do not think that this is a good solution, as changing a value of this internal property manually may lead to unpredictable behaviour of the grid.

quadrophenia
Posts: 3
Joined: Sun 08 Apr 2007 19:18

Unpredictable

Post by quadrophenia » Tue 24 Jul 2007 09:16

With my little knowhow about component-development I exactly tried you solution. Unfortunately as you assume the result is strange and unpredictable.
However thank you for the answer.

Post Reply