OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: khann on August 22, 2013, 11:53:13 PM

Title: dcl_Grid_SetCurCell does not go to the Top row
Post by: khann on August 22, 2013, 11:53:13 PM
Hi, all.
dcl_Grid_SetCurCell  does not go to Top of the Grid.

(dcl_Grid_SetCurCell 0 1) scroll stop at the just second row and does not go to Top.

Anybody knows about this?
(Tested Win 7 / 64 bit, acad2014 , ODCL 7.0.0.12 )

Thanks.
Title: Re: dcl_Grid_SetCurCell does not go to the Top row
Post by: owenwengerd on August 23, 2013, 08:03:49 AM
Can you attach a very simple sample that demonstrates the problem?
Title: Re: dcl_Grid_SetCurCell does not go to the Top row
Post by: khann on August 23, 2013, 08:09:54 PM
Hi, Owen.

This is a sample.

On initialize Grid and ComboBox load values.
When select an item in ComboBox, SetCurCell on Grid works.

You can also test the dcl_form_hide button.

Thanks.

Title: Re: dcl_Grid_SetCurCell does not go to the Top row
Post by: owenwengerd on August 23, 2013, 09:24:26 PM
Good catch. This is now fixed for the next build.

I am pretty sure that the (dcl_Form_Hide) behavior is by design. Control bars are hosted inside a control bar frame, and the frame is managed by the host application. A single frame can host multiple control bars. I know that some frameworks "hide" a control bar by actually closing it, but OpenDCL does not. In this case, hiding the form is working as designed, but the host app is not closing the frame as you expect. The solution is to close the form instead of hiding it.