Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About ActiveTreeView

Status
Not open for further replies.

OneTJN

Programmer
Dec 25, 2007
11
US
I can't seem to display images in Sheridan's Active Tree View. Followed examples...no go. Images are properly stored but don't appear when I run program. I am using their image list and not Microsoft's image list. VB6
"CloseFolder" is key to image. I have also tried using the index number 1. I only have 1 entry.
'------------here is a snipit of the code-------------
With SSTreeSelection
.UseImageList = False
.style = ssatTreelinesPlusMinusText
.LineStyle = ssatRootLines
.LoadStyleRoot = ssatLoadStyleChildrenAddItem
.Indentation = DefaultIndentation
.Redraw = False
Set Node = .Nodes.Add(, , sOrganizations, sOrganizations, "ClosedFolder", , BookRecordTypeMajOrg & "," & BookRecordTypeQClub)
With Node
.Font.Bold = True
.Font.Size = 12
' This causes OnDemandPrepare to be called when node is selected
.LoadStyleChildren = ssatLoadStyleChildrenOnDemandKeep
End With




 
I have not used this control, but reading through your code, I noticed this
Code:
.UseImageList = False

Should that be set to true.

If that does not solve the problem, try setting the index number to 0 (zero).

-Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top