- Status Postponed
- Percent Complete
- Task Type Bug Report
- Category Application
- Assigned To No-one
- Operating System Windows 2000
- Severity Low
- Priority Very Low
- Reported Version Development
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#153 - TAInput with TAUpdown always sets initial value to UpDown|Min
I set the Min to 1 and the Max to 9 in Updown. I could not then change the Text in Input to 3. I should be able to do this.
This is not a bug. When Updown attached to input control, it's text become controlled by updown (system behaviour). To have default text, set "Position" property of UpDown control.
Maybe this need a little better documentation.
"Position" is unclear to me. How about "Value"? This is what MS calls it for VB. (I do see that MS calls it nPos for C++).
Position is Delphi's property for updown. Changing it required adding another property with handler and possibly breaking compatibiity. It's worth?
I think that is worth changing Position to Value. Compatibility with what? I would never guess that Position means initial value.
Compatibility with older forms. It's quite simple to add new property, but not removing/renaming already exisiting.
Microsoft control, btw, used "POS" term, which is "position" shortening...
Position is also a property of Form, but there it has a completely different meaning. To me, this is an inconsistency.
You could use Value for Position in the Object Inspector, and retain Position in the .kxf file.
So you have a choice:
You can't win completely!