[Lazarus] TStringGrid sort symbol in TitleButton

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] TStringGrid sort symbol in TitleButton

Free Pascal - Lazarus mailing list
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.

Attached patch comments out

//FImageIndex := -1;

My first patch :-)

Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64


--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus

grids.pas.patch (530 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TStringGrid sort symbol in TitleButton

Free Pascal - Lazarus mailing list

forget the patch, it doesn't solve the problem!


Am 14.05.2018 um 13:43 schrieb Landmesser John via Lazarus:
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.

Attached patch comments out

//FImageIndex := -1;

My first patch :-)

Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64





--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TStringGrid sort symbol in TitleButton

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
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
>
>
>

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TStringGrid sort symbol in TitleButton

Free Pascal - Lazarus mailing list
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
>>
>>
>>
>

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus