On Thu, 23 Feb 2006 03:02:14 -0600 "Jesus Reyes" <[EMAIL PROTECTED]> wrote:
> > ----- Original Message ----- > From: "Micha Nelissen" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, February 23, 2006 2:32 AM > Subject: Re: [lazarus] Enhanced versions of TStringGrid > > > > Jesus Reyes wrote: > > > It's a nice argument, however if this grid continue to get improved > > > and more features are added to it, the descriptive name become > > > misleading. TMaskEdit it's a good example of a component with a > > > specific purpose not meant to be improved but used as it is. > > > > > > But this is also the topic of this thread, to allow a component to > > > grow in features (in this case a better, more general name could used) > > > or let it as it is (and in this case your argument fits very well). > > > > Try to prevent designing components that are "bloated". Use as much as > > possible events and component connections (aka plugins), to expand > > features, otherwise you get a component no one can use because it's > > simply too complex. > > > > What kind of features are you thinking to add, and how ? > > > > Just my 2c, > > > > Micha > > > > We are talking of the possiblity only, indeed at the moment I don't have > more features to add to this component and my intention was to made it > available "as is". However I'm happy that this thread started, I already > was asked to make some improvements to grids and I have declined with the > argument that it should be made in derived grids, so for me it's all > exploring the possiblities. > > Being said that, I think your final question remains open to others > wanting to participate on ideas of enhancement, deriving or whatever :) I think, Michael already gave a nice solution: Let's implement a plugin system for grids. See SynEdit for an example. For the hook lists see TControl.AddHandler. It should be possible to write plugins for cell drawing, cell editors, sorting, navigation and data connections. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
