Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView BackGround Colour
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00642611
Message ID:
00642712
Views:
32
My gues would be, that you've to chose between changing treeview background and using TreeLines. Otherwise would they removed TreeLines in that mskb article in the first place?

>Yes I was playing with it to try to get it to work. This way round it changes the background correctly, removes the TreeLines correctly and everything goes grey but as soon and the TreeLines and reinstated the white areas to before the TreeLines comes back :-( any ideas?
>
>>You changed the order of commands. The style should be reset after the background has been changed.
  ThisForm.Visible = .T.
>>    =SendMessage(.hWnd, TV_SetBackColour, 0, Rgb(192,192,192))
>>    *-- Reset the Style so that the TreeView appear properly.
>>    lnStyle = GetWindow(.hWnd, TV_Style)
>>    =SetWindow(.hWnd, TV_Style, lnStyle - TV_HasLines)
>>
>>
>>>Sergey you have already pointed me there and I believe that I've got the Node bit of it working but there is a section to the left of the indented nodes that is still white!
>>>
>>>>Check Message #526263.
>>>>
>>>>>Hi all,
>>>>>
>>>>>I've been trying to change the Background colour for a simple TreeView. I was given the reference to the Basic example but have been unable to translated it correctly as I'm still getting a small patch of white appearing. Here is my code. (VF7)
>>>>>

>>
>>< snip >
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform