Textbox in integer style

Started by Fred Tomke, March 16, 2008, 03:20:36 AM

Previous topic - Next topic

Fred Tomke

Hello,

I used the textbox with integer style for years to let the user input only numbers for a code, 01103 for instance.
In the latest release suddenly I got the problem that the first zero has been trimmed automatically when leaving the textbox :-[. Because this is not done by my code the question is if it is a wanted feature in OpenDCL. This would break my code, so please let me know, if this is wanted.

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

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

owenwengerd

I can't reproduce this problem. Can you post a sample?

Fred Tomke

Hello,

I go crazy!   ???

When using the form without lisp source code, the zero in front won't disappear. So everybody would think it's a problem of my code. But I cannot see a position of my code where the zero in front will be trimmed  :'( .

Does anybody have an idea?

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

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

owenwengerd

Fred, I loaded your project, but I don't know what I need to do to see the problem.

Fred Tomke

Hello Owen,

I'm using 5.0.0.9 DEU
If you try this like in the video - can you reproduce this?

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

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

owenwengerd

Fred, I cannot reproduce this using either the ENU or DEU runtimes.

Fred Tomke

Hello, Owen, did you use the lisp code or did you only loaded the project file?

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

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

owenwengerd

I loaded the lisp and eecuted the SYMB_ADD_CATEGORY command.

Fred Tomke

I can reproduce this on two different computers on xp and vista.  :-\
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

owenwengerd

Is it possible that you have a symbol name conflict, or loading the wrong project file?

Fred Tomke

Unfortunately not, I opened pure AutoCAD without any application and added one supportpath in a new directory to avoid such problems on both workstations.
I can reproduce that the problem won't occur when using the form without the code from top of this thread. I'm absolutely confused.

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

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

owenwengerd

I'm out of ideas. Hopefully someone else will test your code.

Fred Tomke

I'll rewrite the code anew.   :(
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

Fred Tomke

#13
Hello

Is there anyone who can reproduce that the leading 0 in the example will be removed from the inputted code 012345 after changing to another control?
I want to stop beating my head on the table because of it.

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

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

Fred Tomke

#14
Hello Owen,

I added a new source code. Here you can see that OnEditChanged will be fired before OnKillFocus will be fired although the content was not changed. Steps to reproduce:

1. call the command
2. note the string 01 in the field Schlüsselnummer
3. click into the text box Schlüsselnummer behind the last character and do not write anything
4. note what is written last in the command line
5. click into the textbox Beschreibung.
6. note in the command line that OnEditChanged was called although nothing was changed by me  ??? ???
7. note that after OnEditChanged OnKillFocus was called
8. note that the leading zero disappeared. :'( :'( :'( :'( :'( :'(

Question: why will OnEditChanged be called although I didn't change anything?

Hope anyone can help help help

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

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