lcsoft
12-15-2004, 06:27 AM
Hello!
My need is to rebuild a browser when an event occurs.
I have a custom browser that shows parts and groups. I need this browser to be rebuilt when a part or a group are added in the "parcel-gbrowser". Is it possible?
I've found 2 types of problems. First of all, when I specify an event in the browser creation:
(sd-create-browser-tree *dirbrowser-tree*
:update-func 'dirbrowser-build-tree
:update-event oli:*SD-CHANGE-OBJECT-TREE-EVENT*
)
Modeling tell me that "The keyword :UPDATE-EVENT is not allowed." but I read this type of call in the examples.
The second problem is that I don't understand how to bind the event "modification on parcel-gbrowser" with the update function of my custom browser.
Thanks in advance.
My need is to rebuild a browser when an event occurs.
I have a custom browser that shows parts and groups. I need this browser to be rebuilt when a part or a group are added in the "parcel-gbrowser". Is it possible?
I've found 2 types of problems. First of all, when I specify an event in the browser creation:
(sd-create-browser-tree *dirbrowser-tree*
:update-func 'dirbrowser-build-tree
:update-event oli:*SD-CHANGE-OBJECT-TREE-EVENT*
)
Modeling tell me that "The keyword :UPDATE-EVENT is not allowed." but I read this type of call in the examples.
The second problem is that I don't understand how to bind the event "modification on parcel-gbrowser" with the update function of my custom browser.
Thanks in advance.