Last year, we confirmed that Alpha Five had a bug with the double click event for Codejock’s Xtreme CalendarPro control. Alpha fixed this problem in V10. I had hoped problems of this sort were behind us.
Now I’ve encountered what looks like a similar bug, this time with DBI-Tech’s ctTree ActiveX control, version 9.0, the latest and greatest.
The problem is that Alpha Five is again doing nothing when an event is triggered.
Screenprint 1 shows an unexpanded tree
Scrrenprint 2 shows an expanded tree after clicking on the Expand all button with the following code behind it. The tree now appears as successfully expanded.
When the exact same code is placed behind the ClickClip event and the node picture, shown with the magenta background, is clicked --Nothing!
This function was created by right clicking on the control, and inserting the cut and paste code into an empty function that Alpha Five had already created.
The documentation provides the following description for this event:
Because I want a bullet to be shown for all lines, I am trying to get the ClickClip event to work, rather than relying on the typical +/- picture which displays only for nodes which have children.
I’ve attached a zipped database (A5V10) and would be grateful if anyone else could confirm this problem before filing a bug report.
A free 30 day evaluation of Studio Controls for COM 9.0 is available from www.dbi-tech.com.
Bob McGaffic
Pittsburgh, PA
Now I’ve encountered what looks like a similar bug, this time with DBI-Tech’s ctTree ActiveX control, version 9.0, the latest and greatest.
The problem is that Alpha Five is again doing nothing when an event is triggered.
Screenprint 1 shows an unexpanded tree
Scrrenprint 2 shows an expanded tree after clicking on the Expand all button with the following code behind it. The tree now appears as successfully expanded.
Code:
ctTree1.NodeExpanded[0] = .T. ctTree1.NodeExpanded[1] = .T. ctTree1.NodeExpanded[2] = .T. ctTree1.NodeExpanded[3] = .T. ctTree1.NodeExpanded[4] = .T. ctTree1.NodeExpanded[5] = .T.
Code:
function clickclip as v (nIndex as N) ctTree1.NodeExpanded[0] = .T. ctTree1.NodeExpanded[1] = .T. ctTree1.NodeExpanded[2] = .T. ctTree1.NodeExpanded[3] = .T. ctTree1.NodeExpanded[4] = .T. ctTree1.NodeExpanded[5] = .T. end function
The documentation provides the following description for this event:
Code:
Description Occurs when a node picture is clicked. Syntax Visual Basic Public Event ClickClip( _ ByVal nIndex As Long _ ) Parameters nIndex The 0-based index value of the node being clicked. Remarks This event will only fire when a node picture is clicked on. Node pictures can be defined through the NodePicture property or the AddPictureNode and AddPictureFontNode methods.
I’ve attached a zipped database (A5V10) and would be grateful if anyone else could confirm this problem before filing a bug report.
A free 30 day evaluation of Studio Controls for COM 9.0 is available from www.dbi-tech.com.
Bob McGaffic
Pittsburgh, PA
Comment