bwalker
06-05-2009, 12:06 PM
I am using AMS 7.5.
I have a tree control with checkboxes, and I need to code some behavior in the "OnCheck" action based in which node is selected.
However, I have a problem where if the focus is on one node, and then the checkbox on another node is checked, the action fires on the checkbox but with the node which has focus rather than the node which has the checkbox.
It is not until after the checkbox is checked that the current node becomes the "selected" node.
Example:
Tree control with 5 nodes.
Focus (selected) is on node 2.
The user checks the checkbox on node 4, the code in the "OnCheck" action has a "strNode = Tree.GetSelectedNode("Tree_Control")" line in the first line of the script, and the valus of strNode is 2, rather than 4 where the checkbox was.
Is this a bug, or is there a workaround solution to this problem?
I have a tree control with checkboxes, and I need to code some behavior in the "OnCheck" action based in which node is selected.
However, I have a problem where if the focus is on one node, and then the checkbox on another node is checked, the action fires on the checkbox but with the node which has focus rather than the node which has the checkbox.
It is not until after the checkbox is checked that the current node becomes the "selected" node.
Example:
Tree control with 5 nodes.
Focus (selected) is on node 2.
The user checks the checkbox on node 4, the code in the "OnCheck" action has a "strNode = Tree.GetSelectedNode("Tree_Control")" line in the first line of the script, and the valus of strNode is 2, rather than 4 where the checkbox was.
Is this a bug, or is there a workaround solution to this problem?