OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on November 26, 2009, 05:04:40 AM

Title: Adding a new child node , not immedatly appear in the treeview.
Post by: stephan_35 on November 26, 2009, 05:04:40 AM
Hello,

Is anybody can confirm that , at the moment, adding a new child node in a treeview does not appear immediatly, and this only if it is the first child of a parent node.

I hate to expand (0 or 1) the parent node to see expand icon.

Is this will be resolved ?

PS: i will spend time on 6.0.0.14 next week.

Thanks.
Best regards.
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: Fred Tomke on November 27, 2009, 01:45:41 AM
Hi Stephan, I cannot reproduce this in my forms. But can you tell us the settings for event invoke settings for the form AND the tree control?

Fred
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: stephan_35 on November 27, 2009, 02:40:16 AM
Quote from: Fred Tomke on November 27, 2009, 01:45:41 AM
Hi Stephan, I cannot reproduce this in my forms. But can you tell us the settings for event invoke settings for the form AND the tree control?

Hi Fred,

I always use asynchronous event settings for the both  ;)

Best regards.
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: Fred Tomke on November 27, 2009, 04:46:12 AM
That means it is a palette or other not modal form?

Fred
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: stephan_35 on November 27, 2009, 05:08:30 AM
Quote from: Fred Tomke on November 27, 2009, 04:46:12 AM
That means it is a palette or other not modal form?

Sorry, i didn't understood your final question  ;D

But seems to have the trouble on these (tested) : Palette and modeless dialog
Modal,control bar : not tested

Best regards.
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: Fred Tomke on November 27, 2009, 05:15:16 AM
Yes, you gave me the correct answer: you've tested it on forms which are not modal.  ;)

That's why I can suggest you to switch event invoke property to synchronous event invoke just for testing if it still occurs.

Fred
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: stephan_35 on November 27, 2009, 05:54:45 AM
Quote from: Fred Tomke on November 27, 2009, 05:15:16 AM
That's why I can suggest you to switch event invoke property to synchronous event invoke just for testing if it still occurs.

I just tried with a sample , with palette and treeview set to synchronous : nothing change .

with 6.0.0.6 and 6.0.0.14

Opps, awfull ! my sample return runtime error with dcl_control_getText (recurvise error ! have to shut down autocad  ???)  , have to see also that with owen  :(
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: owenwengerd on November 27, 2009, 08:19:50 AM
I can reproduce in the treeview sample that adding a child does not update the icon.
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: owenwengerd on November 27, 2009, 02:46:34 PM
I've added code to repaint the control after adding a child node, so that problem should be fixed in Alpha 15.
Title: Re: Adding a new child node , not immedatly appear in the treeview.
Post by: stephan_35 on November 28, 2009, 02:40:15 AM
Quote from: owenwengerd on November 27, 2009, 02:46:34 PM
I've added code to repaint the control after adding a child node, so that problem should be fixed in Alpha 15.

Thanks, waiting for alpha 15 to have a try

Best regards.