Palette problem

Started by Fred Tomke, January 03, 2010, 01:17:30 PM

Previous topic - Next topic

Fred Tomke

Hello and have a good new year!

Today I have a new problem. Owen, I tried making a smaller sample. But in this smaller sample which you desire to debug I cannot reproduce my problem. So I try to point it with a little less code.

Problem: A palette seems to forget its properties and VarNames.


  • Start AutoCAD and load the code by calling (vl-load-all "forms.lsp").
  • Create another new empty drawing. The code will be loaded automatically.
  • Call the command TEST in the second in the latest opened drawing.
  • Move the mouse over the form. In the bottom of the palette the KeepFocus text will be changed.
  • Switch to the first opened drawing. An error will occure.
  • Move the mouse over the form. Another error occurs.
  • Try to close the form by calling (dcl_form_close forms_blocks).
  • A returning value is given back but the palette won't disappear.
  • Close AutoCAD.
  • Open the odcl-file in the Studio and delete the tab control.
  • Save the project and start AutoCAD anew.
  • Load the code by calling (vl-load-all "forms.lsp").
  • Create another new empty drawing. The code will be loaded automatically.
  • Call the command TEST in the second in the latest opened drawing.
  • Move the mouse over the form. In the bottom of the palette the KeepFocus text will be changed.
  • Switch to the first opened drawing. The KeepFocus text will be changed.
  • Move the mouse over the form. The KeepFocus text will be changed.
  • No error occurs. Every thing seems to work.

Does this issue depend to the tab control?

Fred

[EDIT:] I tested it in 5.1.2.3 and in this releases I couldn't reproduce this. I haven't tested it in all the 16 alpha releases of OpenDCL 6 before A17.
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

This was caused by a bug in the code that sets lisp symbols when switching documents. The symbols were being set to the last tab page (because tab pages have the same varname as their parent form). I've fixed the problem in Alpha 18.

Fred Tomke

Hi, Owen, thanks a lot!

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]