• Status Waiting feedback
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Application
  • Assigned To No-one
  • Operating System All
  • 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 - 03.05.2011
Last edited by Admin - 05.05.2011

FS#235 - Slider | Position

I take Position to be the initial position (value) of the slider.

I set Position to 40. It appeared not to generate any code. I did run. The slider showed at the left end of its range.

Chris Haslam commented on 03.05.2011 18:14

TAProgress seems to have the same problem.

Admin
Admin commented on 04.05.2011 08:50

Can't confirm that. It's generating ok for me.

Chris Haslam commented on 05.05.2011 23:33

Here is how the Position didn't get set:

  1. New Form
  2. Created Slider
  3. Entered 40 in Object Inspector | Position
  4. Clicked on Generate. Code did not show call to GUICtrlSetData

But if I press Enter after step 3, call to GUICtrlSetData is generated.

I then changed the Name to s. Generated code included $s = GUICtrlCreateSlider(

So Position needs an Enter for the new Position value to be accepted, but Name doesn't.

Admin
Admin commented on 11.05.2011 14:23

Yes, this always was so. Name (and Caption) need to be updated in different places, so need to behave in this way. All numeric properties require Enter to confirm.

Chris Haslam commented on 11.05.2011 17:55

Sorry to be an advocate of the devil!

I will ensure that all the tutorials say to press Enter for numeric fields, and add an FAQ saying press Enter for numeric fields.

I do not see why Enter is required for numeric fields but not for string fields. I would have expected both to be updated, al latest, when they lose focus.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing