View previous topic :: View next topic |
Author |
Message |
DevilHandCC How do I cheat? Reputation: 0
Joined: 02 Jun 2018 Posts: 3
|
Posted: Sat Jun 02, 2018 7:52 am Post subject: Is it possible to draw gridlines in a listview? |
|
|
Well,my code below does not work
Code: | f=createForm()
lv=createListView(f)
setProperty(f, 'BorderStyle', 'bsSizeable')
setProperty(lv, 'Align', 'alClient')
setProperty(lv, 'RowSelect', 'True')
setProperty(lv, 'ReadOnly', 'True')
setProperty(lv, 'ViewStyle', 'vsReport')
setProperty(lv, 'GridLines', 'True')
...blah blah blah
|
So, how can I draw gridlines in a listview?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Jun 02, 2018 8:48 am Post subject: |
|
|
it only draws lines for entries so you need to fill it with data first
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
DevilHandCC How do I cheat? Reputation: 0
Joined: 02 Jun 2018 Posts: 3
|
Posted: Sat Jun 02, 2018 9:51 am Post subject: |
|
|
Dark Byte wrote: | it only draws lines for entries so you need to fill it with data first |
Actually, I did fill it with data, but there's no gridline
I want it to be like the pic below
Description: |
I want it to be like this |
|
Filesize: |
36.43 KB |
Viewed: |
2079 Time(s) |
|
Description: |
|
Filesize: |
172.92 KB |
Viewed: |
2079 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue Jun 05, 2018 4:34 am Post subject: |
|
|
ah yes, CEListView doesn't expose gridview. It's a new property in lazarus.
try the normal TListView:
Code: |
f=createForm()
lv=createComponentClass("TListView",f)
lv.Align='alClient'
lv.RowSelect=true
lv.ReadOnly=true
lv.ViewStyle='vsReport'
lv.GridLines=true
lv.parent=f
c1=lv.Columns.add()
c2=lv.Columns.add()
c3=lv.Columns.add()
c1.Caption="bla"
c2.Caption="bla2"
c3.Caption="bla3"
i1=lv.Items.Add()
i1.Caption='xxx'
i1.SubItems.add('yyy')
i1.SubItems.add('zzz')
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
DevilHandCC How do I cheat? Reputation: 0
Joined: 02 Jun 2018 Posts: 3
|
Posted: Tue Jul 31, 2018 9:21 pm Post subject: |
|
|
Dark Byte wrote: | ah yes, CEListView doesn't expose gridview. It's a new property in lazarus.
try the normal TListView:
Code: |
f=createForm()
lv=createComponentClass("TListView",f)
lv.Align='alClient'
lv.RowSelect=true
lv.ReadOnly=true
lv.ViewStyle='vsReport'
lv.GridLines=true
lv.parent=f
c1=lv.Columns.add()
c2=lv.Columns.add()
c3=lv.Columns.add()
c1.Caption="bla"
c2.Caption="bla2"
c3.Caption="bla3"
i1=lv.Items.Add()
i1.Caption='xxx'
i1.SubItems.add('yyy')
i1.SubItems.add('zzz')
|
|
thank you DB
|
|
Back to top |
|
|
|