Re: [Lazarus] How to populate a TListView programatically

2022-11-17 Thread Aruna Hewapathirane via lazarus
On Thu, Nov 17, 2022 at 8:37 AM Matthieu Giroux wrote: > It is Extended suite : > Download XML Frames BPM VRAD Lazarus from SourceForge.net > > > Download XML Frames BPM VRAD Lazarus from

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Michael Van Canneyt via lazarus
On Thu, 17 Nov 2022, Aruna Hewapathirane wrote: Hello again, I have column headers and sorting works on a button click . Thank you once again Michael. I am trying to figure out how to sort when a user clicks a column header? Screenshot: https://pasteboard.co/QSf8hNafG0x5.png And I

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Aruna Hewapathirane via lazarus
On Thu, Nov 17, 2022 at 8:13 AM Sven Barth via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Aruna Hewapathirane via lazarus schrieb > am Do., 17. Nov. 2022, 12:31: > >> I managed to get the TListView to work after studying the example Sven >> sent. You can see a screenshot here: >>

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Aruna Hewapathirane via lazarus
On Thu, Nov 17, 2022 at 7:54 AM R.Smith via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > On 2022/11/17 13:47, Aruna Hewapathirane via lazarus wrote: > > On Thu, Nov 17, 2022 at 6:39 AM Michael Van Canneyt via lazarus < > lazarus@lists.lazarus-ide.org> wrote: > >> >> >> >> Var >>aCol :

Re: [Lazarus] How to populate a TListView programatically

2022-11-17 Thread Matthieu Giroux via lazarus
It is Extended suite :Download XML Frames BPM VRAD Lazarus from SourceForge.net | | | | Download XML Frames BPM VRAD Lazarus from SourceForge.net Your download will start shortly... | | | Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesTél : 02 23 46 06 54 - 06 44 733

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Sven Barth via lazarus
Aruna Hewapathirane via lazarus schrieb am Do., 17. Nov. 2022, 12:31: > I managed to get the TListView to work after studying the example Sven > sent. You can see a screenshot here: > https://pasteboard.co/inCtdrOWwAvV.png > You sure you don't mean Werner instead of me? ;) Regards, Sven --

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread R.Smith via lazarus
On 2022/11/17 13:47, Aruna Hewapathirane via lazarus wrote: On Thu, Nov 17, 2022 at 6:39 AM Michael Van Canneyt via lazarus wrote: Var    aCol : TListviewColumn; begin    aCol:=Listview1.Columns.Add;    aCol.Caption:='Country';    aCol:=Listview1.Columns.Add;  

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Aruna Hewapathirane via lazarus
Hello again, I have column headers and sorting works on a button click . Thank you once again Michael. I am trying to figure out how to sort when a user clicks a column header? Screenshot: https://pasteboard.co/QSf8hNafG0x5.png And I notice the column headers are sort of greyed out. Is it

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Aruna Hewapathirane via lazarus
On Thu, Nov 17, 2022 at 6:39 AM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > > On Thu, 17 Nov 2022, Aruna Hewapathirane via lazarus wrote: > > > Hello Everyone, > > > > I managed to get the TListView to work after studying the example Sven > > sent. You can see a

Re: [Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Michael Van Canneyt via lazarus
On Thu, 17 Nov 2022, Aruna Hewapathirane via lazarus wrote: Hello Everyone, I managed to get the TListView to work after studying the example Sven sent. You can see a screenshot here: https://pasteboard.co/inCtdrOWwAvV.png How do I set the caption/Title for each column header? How do I

[Lazarus] TListView: Column Header Captions and Column Sorting

2022-11-17 Thread Aruna Hewapathirane via lazarus
Hello Everyone, I managed to get the TListView to work after studying the example Sven sent. You can see a screenshot here: https://pasteboard.co/inCtdrOWwAvV.png How do I set the caption/Title for each column header? How do I set column header 1 to 'Country' and column header 2 to 'Region'