OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Marco Jacinto on August 10, 2010, 09:57:31 PM

Title: Grid on Palette crashing Acad
Post by: Marco Jacinto on August 10, 2010, 09:57:31 PM
When I try to change from a DropDown cell in a grid to another cell of the same type, AutoCAD crashes, tested with palette and modal forms.

I was trying to read the Enter key when editing a text cell, but in 5.0.2.3 wasn't able to accomplish this, so I install the newer version so this happened, the best is the grid control has the Key events already added, lol.

Saludos
Marco Jacinto
Title: Re: Grid on Palette crashing Acad
Post by: owenwengerd on August 11, 2010, 11:44:59 AM
Can you attach a simple sample file that demonstrates the problem?
Title: Re: Grid on Palette crashing Acad
Post by: Marco Jacinto on August 11, 2010, 06:16:22 PM
Sure, here it goes, I'm using W7 on Acad 2010, also this happens on Vista
Title: Re: Grid on Palette crashing Acad
Post by: owenwengerd on August 11, 2010, 06:49:08 PM
Since this is a modal form, most of your code will not execute until after the dialog is closed. See if it works when you put the code inside the OnInitialized event instead.
Title: Re: Grid on Palette crashing Acad
Post by: Marco Jacinto on August 11, 2010, 08:14:12 PM
This is the other one I try, the same control in the palette crashes. Think I post an older code without tho Oninitialized event.
Title: Re: Grid on Palette crashing Acad
Post by: BazzaCAD on August 12, 2010, 10:34:38 AM
Quote from: Marco Jacinto on August 11, 2010, 08:14:12 PM
This is the other one I try, the same control in the palette crashes. Think I post an older code without tho Oninitialized event.

You didn't attach anything.....
Title: Re: Grid on Palette crashing Acad
Post by: Marco Jacinto on August 12, 2010, 12:46:59 PM
Sorry, what I meant, is that the form that I use previouosly was a pallete, so I could use the functions outside the oninitialize event. Anyway, here it is the last code.

Thanks for supporting this awesome tool.

Title: Re: Grid on Palette crashing Acad
Post by: owenwengerd on August 12, 2010, 01:01:16 PM
I loaded the sample and clicked on a few cells. Everything is working as expected. Can you provide more information?
Title: Re: Grid on Palette crashing Acad
Post by: Marco Jacinto on August 18, 2010, 02:29:56 PM
Oops, I installed the latest studio and the problem didn't appear, will try with another PC and post the problem if any.

Saludos y gracias

Marco Jacinto