PDA

View Full Version : Events on browser


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.

lcsoft
12-15-2004, 06:33 AM
Hello!

:update-event oli:*SD-CHANGE-OBJECT-TREE-EVENT*



Ok, sorry, I need the trailing s:


:update-events oli:*SD-CHANGE-OBJECT-TREE-EVENT*


but there is always the problem with the parcel-gbrowser event.