• Status Postponed
  • Percent Complete
    0%
  • 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
Attached to Project: Koda
Opened by Chris Haslam - 02.01.2011
Last edited by Admin - 17.01.2011

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.

Admin
Admin commented on 02.01.2011 12:32

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.

Chris Haslam commented on 03.01.2011 04:37

"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++).

Admin
Admin commented on 03.01.2011 09:58

Position is Delphi's property for updown. Changing it required adding another property with handler and possibly breaking compatibiity. It's worth?

Chris Haslam commented on 03.01.2011 21:17

I think that is worth changing Position to Value. Compatibility with what? I would never guess that Position means initial value.

Admin
Admin commented on 04.01.2011 14:49

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...

Chris Haslam commented on 04.01.2011 15:54

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:

  • Be inconsistent in the UI, or
  • Be inconsistent between the UI and the .kxf file.

You can't win completely!

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing