On Fri, 19 Jan 2007 09:48:10 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Thanks Jesus,
> 
> On 1/19/07, Jesus Reyes <[EMAIL PROTECTED]> wrote:
> > > Anybody know if the TStringGrid can make sure that the selected
> > > row is in view?
> > >
> >
> > Yes it can.
> 
> Excellent!  Can you give a hint on how this is done?  I looked at the
> TCustomStringGrid class and nothing came to mind.
> 
> > > We just need to be sure that the StringGrid will support all the
> > > features of the ListBox as is currently used in the Messages
> > > window.
> > >
> >
> > I don't know exactly what are all the features, but I think the grid
> > can do anything a listbox does.
> 
> I'm sure it can.  Vincent mentioned the 'selected row in view'.  Maybe
> Mattias can mention a few others.  Looking at the Messages Window code
> - it is quite busy code to say the least.  A lot happens in there..
> :-)

But not much about TListBox.
It simply needs a scrollable list of custom drawn rects with click,
double click, selected item, ensure selected is visible, begin update,
end update. TStringGrid can do that.
Can TStringGrid handle 30.000 rows?
Because this is easily created by compiling with -vt and TListBox can
not handle it fast enough.

 
> >
> > If you want to do it and have questions I can help you.
> >
> 
> Thanks for the offer.  This should be a good exercise in working with
> the TStringGrid, seeing that I am starting to use it in my own
> applications as well.  I first need to find out all that the Messages
> Window does, before I start changing things.



Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to