OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: roy_043 on September 17, 2011, 04:27:19 AM

Title: dcl_Tree_SelectSetFirstVisible does not select?
Post by: roy_043 on September 17, 2011, 04:27:19 AM
I notice that dcl_Tree_SelectSetFirstVisible does expand and scroll to display the item, but the item does not get selected. Is this a Bricscad issue or does the same happen in AutoCAD?
Title: Re: dcl_Tree_SelectSetFirstVisible does not select?
Post by: owenwengerd on September 18, 2011, 10:27:38 PM
The problem happens also in AutoCAD. I'm not sure why it doesn't work correctly or whose fault it is, but it is definitely a bug.
Title: Re: dcl_Tree_SelectSetFirstVisible does not select?
Post by: owenwengerd on September 18, 2011, 10:40:17 PM
On second thought, after a careful reading of the MSDN documentation (http://msdn.microsoft.com/en-us/library/windows/desktop/bb773736(v=vs.85).aspx), I believe this is working as designed. The name should be just SetFirstVisible, but it seems that the control uses the TVM_SELECTITEM message to do the work, hence "Select" in the name. I will correct the OpenDCL documentation.