dcl_Tree_SelectSetFirstVisible does not select?

Started by roy_043, September 17, 2011, 04:27:19 AM

Previous topic - Next topic

roy_043

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?

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

owenwengerd

On second thought, after a careful reading of the MSDN documentation, 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.
Owen Wengerd (Outside The Box) / ManuSoft