OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on September 01, 2009, 04:10:10 AM

Title: [SOLVED] OnClicked & OnDeleteItem not called with DragnDropBegin [6.0.0.2]
Post by: stephan_35 on September 01, 2009, 04:10:10 AM
Hello Owen,

Again me !, these event are also not call with DragnDropBegin.

OnClicked is call only the fisrt time ???

Best regards.
Title: Re: OnClicked & OnDeleteItem not called with DragnDropBegin [6.0.0.2]
Post by: owenwengerd on September 01, 2009, 07:42:47 AM
AutoCAD has a fixed length buffer to queue asynchronous events, and it looks like your test is overflowing the buffer, causing some events to be ignored. Try it with Event Invoke set to 'Synchronous' to see if you have better results.
Title: Re: OnClicked & OnDeleteItem not called with DragnDropBegin [6.0.0.2]
Post by: stephan_35 on September 01, 2009, 09:05:12 AM
Hello owen,

First step : bring the treeControl Event invoke to synchronous.

You've got it right, now all event seem to be launch ....
The first time, GetSelectItem return nil, maybe no value or because of synchronous ???

Second step : bring back to asynchronous ....
failed !!!

Third step : Bring back to asynchronous, and keep only :OnClicked, OnDragnDropBegin, OnDragnDropFromControl
It Seem to work fine !

Oops, OnDragnFropBegin cannot catch the good item !

Fouth Step : Bring back to synchronous, and verify OnDragnDropBegin.
On a click action :
OnClicked event return last selected item.
OnDragnDropBegin return the selected item.
On a DragnDrop action (move action):
OnDragNdropBegin return the selected item (GOOD !)
OnDragnDropFromControl return the dropitem (GOOD !)



I must verify now, if i can use this TreeControl for the other action i need in my dialog box !



Title: Re: OnClicked & OnDeleteItem not called with DragnDropBegin [6.0.0.2]
Post by: owenwengerd on September 01, 2009, 09:12:18 AM
Keep in mind that an item is not selected until you *release* the mouse button, however OnClicked is called when you *press* the button. Therefore, the first OnClicked will occur before anything is selected.
Title: Re: OnClicked & OnDeleteItem not called with DragnDropBegin [6.0.0.2]
Post by: stephan_35 on September 01, 2009, 12:49:24 PM
Hello owen.

With new arx, all event invoke set to asynchronous seems have been called now !

Thanks

Best regards.