Boards /
Runtime/AutoLISP /
Topic 937
Grid control issue with column click
Started by johnM ·
2009-09-24 05:00 UTC ·
13 replies · SMF topic #937
johnM
2009-09-24 05:00 UTC
autocad 2004 : opendcl runtime arx 5.1.1.8
I have a grid and I have a modal box that will display at the mouse coordinates when a column header is clicked. I’m using the modal box as a menu to insert clm’s before/after the clicked column.
When I click the column grid header the modal box shows but the grid still has focus until you click anywhere again, on screen on the main form or the modal form. Then you can single click the buttons on the modal form or you have to click the buttons on the modal form twice.
Any suggestions
owenwengerd
2009-09-24 16:12 UTC
This is now fixed for Alpha 6. To work around the problem in 5.1, try this:
(defun showmenu () (dcl_Form_Show MyProject_MyForm))
(defun c:MyProject_MyForm_MyGrid_OnColumnClick (Column /)
(dcl_DelayedInvoke 0 "showmenu")
)
johnM
2009-09-24 17:53 UTC
thanks that worked great
you just needed to make the showmenu defun with a C:showmenu otherwise you get an error "no function found"
thanks for the quick reply
mjacak
2011-12-22 09:31 UTC
Hi Owen
This problem still ocurres with OpenDCL 7.0.0.2 for modal forms. When grid is in modal form and I show menu form (modal as well) column keep focus. In this case I can't use workaround with dcl_DelayedInvoke.
Is any other solution ?
Mateusz
owenwengerd
2011-12-22 13:10 UTC
I'll have a look. Did the problem exist in Alpha 1 or was it was introduced in Alpha 2?
mjacak
2011-12-22 14:11 UTC
Hi Owen.
I noticed this problem for 6.0.2.5, 7.0.0.1 and 7.0.0.2, but could exist before as well.
Thanks
Mateusz
owenwengerd
2012-01-26 22:53 UTC
This should now be fixed in the next alpha build.
mjacak
2012-02-28 07:48 UTC
Hi Owen.
The problem still ocurres with OpenDCL 7.0.0.3. I hope you can find solution :).
Mateusz
owenwengerd
2012-02-28 16:30 UTC
Please try to create a very simple .odcl and .lsp that demonstrates the problem so I can be sure what you are experiencing.
mjacak
2012-02-29 12:36 UTC
Hi Owen.
I attached an example and short video to show the problem.
Thanks
Mateusz
owenwengerd
2012-02-29 18:41 UTC
I've added a bit more code to address the problem, so hopefully the next build will resolve this for you. There is still some potential for problems due to the fact that the column button never gets the "mouse up" event that it is waiting for, but at least the secondary dialog works as expected.
mjacak
2012-03-01 07:59 UTC
The point is to act on second form without additional click. I'm waiting for next build to test it.
Thanks a lot Owen.
Mateusz
owenwengerd
2012-03-03 01:37 UTC
I had to upload new MSI files to correct a problem with inclusion of system DLLs, so I snuck in this fix as well. The version didn't change, so you must uninstall the original 7.0.0.3 before installing the new one.
mjacak
2012-03-03 08:02 UTC
Problem solved. :-). Works as expected.
Thanks again.
Mateusz