Forum > LCL

2 Problems with TSpinEdit

(1/2) > >>

chrv:
Hi all,

2 problems (see attached)

1/ Why is the NullValue shown at runtime while the value is set to 10 at designtime (and to 20 in FormCreate at runtime) ?
2/ Is it possible to Nullify the TSpinEditEx by code (instead of showine a 0) ?

Thanks all

Bart:

--- Quote from: chrv on February 18, 2024, 11:09:22 am ---2/ Is it possible to Nullify the TSpinEditEx by code (instead of showine a 0) ?

--- End quote ---
You "nullify" the control by settingit's value equal to it's NullValue (which is 0 by default).
If Value = NullValue then the NullValueBehaviour controls what is shown in the control.

Bart

jamie:
I was going to say something about the version of LAZ 2.0.14 or something like that.

I tested that on 2.0.4 and trunk, it works fine.

Bart:

--- Quote from: chrv on February 18, 2024, 11:09:22 am ---1/ Why is the NullValue shown at runtime while the value is set to 10 at designtime (and to 20 in FormCreate at runtime) ?

--- End quote ---
That is in fact a bug.
Fixed in commit 5168d97f.

Thanks for reporting.
Please test and report back.

Bart

chrv:

--- Quote ---That is in fact a bug.
Fixed in commit 5168d97f.
--- End quote ---
@Bart : it works now. Thank you so much ;).

Unfortunately, the other doesn't.
When I set it to NullValue by code with NullValueBehaviour=nvbShowTextHint, in fact it shows "0" (not "MY NULL VALUE" in my case).

Navigation

[0] Message Index

[#] Next page

Go to full version