[SOLVED] OnClicked & OnDeleteItem not called with DragnDropBegin [6.0.0.2]

Started by stephan_35, September 01, 2009, 04:10:10 AM

Previous topic - Next topic

stephan_35

Hello Owen,

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

OnClicked is call only the fisrt time ???

Best regards.
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

owenwengerd

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.

stephan_35

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 !



OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

owenwengerd

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.

stephan_35

Hello owen.

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

Thanks

Best regards.
OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql