[Lazarus] Example of TObjectList sorting

2016-05-09 Thread Richard Mace
Hi All, I have a TObjectList that contains many objects that have a property called "Position" which is an integer. Could somebody show me an example of the code that I will need to create that will sort all of my Objects within the TObjectList so that they are in position order e.g. 1,2,3,4,5

Re: [Lazarus] Fw: new message

2016-05-09 Thread brian
On Sun, 8 May 2016 17:42:21 -0400, you wrote: >On 05/08/2016 03:43 PM, Lazarus mailing list wrote: >> Hello! >> >> *You have a new message, please read* >> hxxp://thesafeandlockshop.co.uk/loud.php?lh >> >> Lazarus mailing list > >would an admin handle this infested

Re: [Lazarus] Example of TObjectList sorting

2016-05-09 Thread Denis Kozlov
On 9 May 2016 at 12:48, Richard Mace wrote: > I have a TObjectList that contains many objects that have a property > called "Position" which is an integer. > > Could somebody show me an example of the code that I will need to create > that will sort all of my Objects

Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-05-09 Thread Denis Kozlov
Package "lazarus-1.6" and its sub-packages are missing many of Lazarus 1.6 source files. Reported to Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823706 Beware when installing from Debian packaged repositories. Denis -- ___ Lazarus

Re: [Lazarus] Example of TObjectList sorting

2016-05-09 Thread Graeme Geldenhuys
On 2016-05-09 13:24, Denis Kozlov wrote: > This kind of question is better suited on the forum I think Why? This mailing list is just as much a support area as the web forum. Not everybody likes web based forums (I don't). Granted the question related more to the RTL that Lazarus or LCL, so if

Re: [Lazarus] Example of TObjectList sorting

2016-05-09 Thread Denis Kozlov
On 9 May 2016 at 13:44, Graeme Geldenhuys wrote: > On 2016-05-09 13:24, Denis Kozlov wrote: > > This kind of question is better suited on the forum I think > > Why? This mailing list is just as much a support area as the web forum. > Not everybody likes web based

Re: [Lazarus] Example of TObjectList sorting

2016-05-09 Thread Graeme Geldenhuys
On 2016-05-09 14:12, Denis Kozlov wrote: > Also, forums are more easily > searched, indexed by search engines and easier to view for novice users. Lets agree to disagree. ;-) ps: The mailing lists are also searched and indexed by search engines - thanks to services like Nabble and many

[Lazarus] does dbGrid's AutoSizeColumns method need to also be called in form's OnResize event?

2016-05-09 Thread Bob B.
Or is it sufficient to just include this in form's OnCreate or OnShow event? with myDBGrid beginif not (dgautosizecolumns in options) then         options := options + [dgautosizecolumns];        AutoSizeColumns; end; Thanks. Bob B.-- ___ Lazarus