OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on June 26, 2008, 05:05:36 AM

Title: Grid style 39 does not allow point
Post by: Fred Tomke on June 26, 2008, 05:05:36 AM
Hello,

[5.0.0.19 DEU]

before adding it as a bug report I want to know if somebody can reproduce it:
I have a form with grid. In a cell setting style 39 at runtime I cannot input the decimal delimiter "." although 38 is for integer I thougth. The droplist can be added successfully. The decimal delimiter is also shown when using dcl_grid_setitemtext. But I cannot input "." by hand.

Fred
Title: Re: Grid style 39 does not allow point
Post by: owenwengerd on June 26, 2008, 09:04:23 AM
I cannot reproduce the problem in the ENU version.
Title: Re: Grid style 39 does not allow point
Post by: Fred Tomke on June 26, 2008, 03:47:28 PM
Hello Owen,

I've attached an example to test. I cannot input the value 1.3 instead of 5. Can you?

Fred
Title: Re: Grid style 39 does not allow point
Post by: owenwengerd on June 26, 2008, 07:14:46 PM
I can enter 1.3 without any problem (but I did notice that backspace doesn't work -- that is a bug). I tested both the ENU and the DEU versions.
Title: Re: Grid style 39 does not allow point
Post by: owenwengerd on June 26, 2008, 07:19:05 PM
I just had an idea: the input is validated by the ObjectARX equivalent of the AutoLISP (distof) function.  What happens if you try (distof "1.3") at the command line?  In any case, I suppose Windows localization settings and/or AutoCAD units settings could have some bearing on this problem.
Title: Re: Grid style 39 does not allow point
Post by: Fred Tomke on June 30, 2008, 01:27:00 PM
Hello, Owen,

I was out for some days with my wife, so I can answer now: Decimal delimiter (Windows setting) is ",". But AutoCAD works partial different of that: decimal delimiter in AutoCAD DEU version is ".".

The return values of atof and distof are reals:


Befehl: (distof "1.3")
1.3

Befehl: (atof "1.3")
1.3


I think that the AutoCAD standard and not the windows-setting should be used.
On the other hand: item style 9 works very well. Isn't it the same style for internal editbox?

Fred
Title: Re: Grid style 39 does not allow point
Post by: owenwengerd on June 30, 2008, 04:51:56 PM
Quote from: Fred Tomke on June 30, 2008, 01:27:00 PM
On the other hand: item style 9 works very well. Isn't it the same style for internal editbox?

Yes, both styles should be using identical filters in their edit boxes.
Title: Re: Grid style 39 does not allow point
Post by: Fred Tomke on June 30, 2008, 10:01:49 PM
Hello Owen,

I can enter 1.3 in grid itemstyle 9. So that's why I'm confused 'cause it don't work at the example I attached before.
I will have some tests this week with other forms.

Fred