Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is it possible to draw gridlines in a listview?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
DevilHandCC
How do I cheat?
Reputation: 0

Joined: 02 Jun 2018
Posts: 3

PostPosted: Sat Jun 02, 2018 7:52 am    Post subject: Is it possible to draw gridlines in a listview? Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sat Jun 02, 2018 8:48 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
DevilHandCC
How do I cheat?
Reputation: 0

Joined: 02 Jun 2018
Posts: 3

PostPosted: Sat Jun 02, 2018 9:51 am    Post subject: Reply with quote

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



HitTestPic.jpg
 Description:
I want it to be like this
 Filesize:  36.43 KB
 Viewed:  2079 Time(s)

HitTestPic.jpg



2018-06-02_23-36-54.jpg
 Description:
this is my capture
 Filesize:  172.92 KB
 Viewed:  2079 Time(s)

2018-06-02_23-36-54.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Jun 05, 2018 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
DevilHandCC
How do I cheat?
Reputation: 0

Joined: 02 Jun 2018
Posts: 3

PostPosted: Tue Jul 31, 2018 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites