Tree Control Notify Events
The following describes the Notify Events for Tree Controls in BBj 3.00 and higher:
Template for events
For codes 1-4: "context:u(2),code:u(1),id:u(2),objtype:i(2),node:u(4)"
For code 5: "context:u(2),code:u(1),id:u(2),objtype:i(2),node:i(4),buf:c(1*)"
For code 5 in BBj 12.00 and higher: "context:u(2),code:u(1),id:u(2),objtype:i(2),node:i(4),buf:c(1*),old:c(1*)"
For code 5 in BBj 20.21 and higher: "context:u(2),code:u(1),id:u(2),objtype:i(2),node:i(4),buf:c(1*),old:c(1*),canceled:n(1*)"
For codes 6-8: "context:u(2),code:u(1),id:u(2),objtype:i(2),wparam:i(4),lparam:i(4),node:i(4),x:i(2),y:i(2)"
For codes 6-8 in BBj 9.00 and higher: "context:u(2),code:u(1),id:u(2),objtype:i(2),wparam:i(4),lparam:i(4),node:i(4),x:i(2),y:i(2),button:i(1),exactnode:i(4)"
|
Name |
Code |
Description |
|---|---|---|
|
Tree Node Selected |
1 |
Tree node selected; node contains id of node. |
|
Tree Node Deselected |
2 |
Tree node deselected; node contains id of node. |
|
Tree Node Expanded |
3 |
Tree node expanded (opened); node contains id of node. |
|
Tree Node Collapsed |
4 |
Tree node collapsed (closed); node contains id of node. |
|
5 |
Editing has stopped on a node, node contains id of node and buf contains new text in the node. In BBj 12.00 and higher, In BBj 20.21 and higher, canceled returns 0 if editing was stopped normally or 1 if editing was |
|
|
6 |
Left mouse button clicked. In BBj 12.00 and higher, In BBj 9.00 and higher, In BBj 8.00 and higher, |
|
|
7 |
Left mouse button double-clicked. In BBj 12.00 and higher, In BBj 9.00 and higher, In BBj 8.00 and higher, |
|
|
8 |
Right mouse button clicked. If mouse was down then
In BBj 12.00 and higher, In BBj 9.00 and higher, In BBj 8.00 and higher, |