How can I change backcolor of selected node of tree when it's not focused?

Source code related resources

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3105
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 190 times
Been thanked: 100 times
Contact:

How can I change backcolor of selected node of tree when it's not focused?

Post by mol » Sat Dec 29, 2018 5:42 pm

When the tree is not focused, select node/item has grey backcolor. I want it to stay blue or other more contrast.
Is it simple way to do it?
Last edited by mol on Sun Dec 30, 2018 4:55 pm, edited 1 time in total.

User avatar
andyglezl
Posts: 1073
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 26 times
Been thanked: 49 times
Contact:

Post by andyglezl » Sat Dec 29, 2018 8:20 pm

Quizá con...
*-----------------------------
Maybe with ...


<ParentWindowName>.<TreeControlName>.FullRowSelect := lBoolean
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
mol
Posts: 3105
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 190 times
Been thanked: 100 times
Contact:

Post by mol » Sat Dec 29, 2018 8:25 pm

It does not help...

By the way, what FullRowSelect does? There is nothing about it in documentation.

User avatar
andyglezl
Posts: 1073
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 26 times
Been thanked: 49 times
Contact:

Post by andyglezl » Sat Dec 29, 2018 8:37 pm

Se supone que te debe de señalar todo el renglón en el que estás,
no solo el texto del nodo.
*------------------------------------------------------------------------------------
It's supposed to point you to the whole line you're on,
not just the text of the node.


Aquí hice algo, pero no recuerdo si utilizé el FullRowSelect...
*-----------------------------------------------------------------------------
Here I did something, but I do not remember if I used the FullRowSelect ...


http://www.hmgforum.com/viewtopic.php?f=35&t=3886
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
mol
Posts: 3105
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 190 times
Been thanked: 100 times
Contact:

Post by mol » Sat Dec 29, 2018 9:10 pm

I've used dynamicbackcolor and it works as I want.
I had to set value to first node abd set focus. After loosing focus last selected node stays coloured as I need.
Thanks Andy!

User avatar
mol
Posts: 3105
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 190 times
Been thanked: 100 times
Contact:

Post by mol » Sun Dec 30, 2018 4:56 pm

Did someone realised drag and drop technic within tree control?

User avatar
andyglezl
Posts: 1073
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 26 times
Been thanked: 49 times
Contact:

Post by andyglezl » Mon Dec 31, 2018 3:21 pm

mol wrote:
Sun Dec 30, 2018 4:56 pm
Did someone realised drag and drop technic within tree control?

http://www.hmgforum.com/viewtopic.php?f ... rop#p53777
Andrés González López
Desde Guadalajara, Jalisco. México.

Post Reply