[Lazarus] TStringGrid sort symbol in TitleButton

John Landmesser jmlandmesser at gmx.de
Mon May 14 18:37:41 CEST 2018


Hi Zeljko,

think of a *.csv file and StringGrid.LoadFromCSV...

No columns defined in StringGrid, they will be created "on the fly" and 
user wants to sort a column by click on columnTitle.

There are default arrows that only show up if you define at least one 
column and thats not ok i think!

Bug report:
https://bugs.freepascal.org/view.php?id=33731


Am 14.05.2018 um 14:30 schrieb zeljko:
> On 05/14/2018 01:43 PM, Landmesser John via Lazarus wrote:
>> In a StringGrid without(!) defined columns you never see that up and 
>> down arrow in the TitleButton if you click to sort this column.
>>
>> It's ok if you define at least one column, but i think that shouldn't 
>> be this way.
>
> I don't get what is exact problem. If there's no columns why Sort 
> indicator should be visible at all (and where) ?
> In any case you can create bug report and attach example project.
>
> zeljko
>
>>
>> Attached patch comments out
>>
>> //FImageIndex := -1;
>>
>> My first patch :-)
>>
>> Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64
>>
>>
>>
>



More information about the Lazarus mailing list