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 


List View Color Font Editor Problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Thu Mar 10, 2016 10:26 am    Post subject: List View Color Font Editor Problem Reply with quote

I wrote this Lua Extension up last night. And I am Having Some Issues with this thing.

1.Fist Issue I am Unable to Set The Background Color for the AddressList

Is this a separate section of the form build?

2. How Can I Change the Default Font Color.
IDK.. LUA script I included has a couple failed attempts.

3. The Check Box Seems to Separate also from Font Color.

4. The Sort Bar Why Cant I Access this Independently.
it is AddressList,1 Correct. It Responds to no color either.

Still new to LUA so maybe im missing something simple.



List_Editor.png
 Description:
 Filesize:  37.9 KB
 Viewed:  8028 Time(s)

List_Editor.png



List View Editor.CT
 Description:

Download
 Filename:  List View Editor.CT
 Filesize:  5.52 KB
 Downloaded:  599 Time(s)

Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Mar 10, 2016 10:51 am    Post subject: Reply with quote

HeaderControl changing font:

Code:
getAddressList().Component[1].Font.Name = 'Verdana'

_________________
Back to top
View user's profile Send private message MSN Messenger
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Thu Mar 10, 2016 1:26 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
HeaderControl changing font:

Code:
getAddressList().Component[1].Font.Name = 'Verdana'


Always with my Syntax. UGh.........

Thanks mgr. always coming to my to ignorance's rescue.

getAddressList().Component[0].Font.Name = 'Verdana'

getAddressList().Component[0].Font.Size = '8'
Isolating On the List Now.

getAddressList().Component[0].BackgroundColor = '0x00676767'
Question 1 Solved.

_________________
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Mar 13, 2016 5:18 am    Post subject: Reply with quote

akumakuja28 wrote:
Its just 90% of the time you are the only one who answers my questions. I figure I would skip right over the Forum Post.

Can you tell me why the LUA below is Failing to Update the AddressList.

Code:
local Grey = "0x00c7c7c7"
local Pink = "0x00FF00FF"
local Green = "0x0000FF00"


local Adl = getAddressList().Component[0]

---- Loop For Print-----------
local DisplayProperties = getPropertyList( Adl )           --- Define Thing in ()
for Loop = 0, strings_getCount( DisplayProperties ) - 1 do    --- Add {-1} for Zero as First
    print(strings_getString( DisplayProperties, Loop ) )
end


-----ExpandSigns Color------
Adl.ExpandSignColor = Pink
Adl.ExpandSignType = 'tvestArrow'

---Treeline--
Adl.ShowLines = true
Adl.TreelineColor = Green
Adl.TreeLinePenStyle = 'psSolid'

---------BG COlor -----------
Adl.BackgroundColor = Grey
Adl.Color = Grey


At my wits end with this.
Is this protected in some way? Only the BG color updates.


Thank you.


DarkByte uses AdvancedCustomDrawItem for TCustomTreeView object.
Some elements have hard-coded color, style, default font color, etc.

Also, he does not use built-in ExpandSign, Lines, etc.




For example, the expandsign (his, not the default one), he draws it like this:
sender.canvas.Rectangle()
sender.canvas.MoveTo()
sender.canvas.LineTo()
// square with minus sign

And if entry is expanded, one extra vertical line:
sender.canvas.MoveTo()
sender.canvas.LineTo()
// minus sign becomes plus sign

_________________
Back to top
View user's profile Send private message MSN Messenger
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sun Mar 13, 2016 7:00 am    Post subject: Reply with quote

So no way to force an update/rebuild? I have noticed that many colors do not update when windows colors are adjusted. The color information for these items is only load once upon CE start.
_________________
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Mar 13, 2016 7:03 am    Post subject: Reply with quote

Of course there exist the "hackish" way...
_________________
Back to top
View user's profile Send private message MSN Messenger
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sun Mar 13, 2016 3:02 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Of course there exist the "hackish" way...


Or, draw over it. Prolly easier that way.

Thanks again mgr.

_________________
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