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: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post by mol »

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: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

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

Post by andyglezl »

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


<ParentWindowName>.<TreeControlName>.FullRowSelect := lBoolean
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post by mol »

It does not help...

By the way, what FullRowSelect does? There is nothing about it in documentation.
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

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

Post by andyglezl »

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: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

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

Post by mol »

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
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

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

Post by andyglezl »

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