View previous topic :: View next topic |
Author |
Message |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Thu Mar 10, 2016 10:26 am Post subject: List View Color Font Editor Problem |
|
|
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.
Description: |
|
Filesize: |
37.9 KB |
Viewed: |
8043 Time(s) |

|
Description: |
|
 Download |
Filename: |
List View Editor.CT |
Filesize: |
5.52 KB |
Downloaded: |
601 Time(s) |
|
|
Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Mar 10, 2016 10:51 am Post subject: |
|
|
HeaderControl changing font:
Code: | getAddressList().Component[1].Font.Name = 'Verdana' |
_________________
|
|
Back to top |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Thu Mar 10, 2016 1:26 pm Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Mar 13, 2016 5:18 am Post subject: |
|
|
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 |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sun Mar 13, 2016 7:00 am Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Mar 13, 2016 7:03 am Post subject: |
|
|
Of course there exist the "hackish" way...
_________________
|
|
Back to top |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sun Mar 13, 2016 3:02 pm Post subject: |
|
|
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 |
|
 |
|