05-14-2019 08:37 AM
I working with the tree object in a DIAdem 2018 dialog. The tree object has duplicated events for EventOnContextMenuPointSelected, and the event EventContextMenuShowing is missing. See the attached image.
DIAdem 2018 18.0.0f7096 (64-bit)
05-15-2019 05:19 PM
Hi Mark,
It sounds like you are experiencing some unintended behavior here. To understand better, we'll need a few more details here on what is occurring.
1. How are you generating this tree object?
2. With question 1, what makes you expect different events than the ones you see here?
3. Your post reads more like a statement rather than a specific question. Could you clarify the question you are hoping the forums can help you answer?
Thank you,
05-16-2019 07:18 AM
Please review the image I attached and referenced in my post. You will see two events named 'EventOnContextMenuPointSelected', (the "duplicates"), and notice that the event named 'EventContextMenuShowing' is missing.
Through a little trial and error, I found that if I manually create the script code for the event 'EventContextMenuShowing', and then double click on one of the events EventOnContextMenuPointSelected and don't put any code into EventOnContextMenuPointSelected , then event 'EventContextMenuShowing' works as it should.
It appears that the event 'EventContextMenuShowing' has been accidentally renamed to EventOnContextMenuPointSelected , thus creating the duplicate event, and causing the missing event.
To duplicate the situation, simply create a new dialog and add the tree object. Then within the script, review the events and you will see what I have included in the attached image.