M mjcoon Well-Known Member Licensed User Jul 31, 2012 #1 Took it into my head to write a days-between-dates calculator (code attached). It has two calendar controls, either of which may be disabled at user choice. A marker radio button sets which should be disabled. On the desktop the control text gets greyed-out as well to show disablement. But on the device the greying-out does not happen immediately; it is delayed until the other calendar control (which would not be disabled) is opened and set to the same value. The code shows that I have tried various ways to correct this by doing refresh of calendars or of the form; neither works. Another odd behaviour of calendar controls... Mike. Attachments day-calculator.sbp day-calculator.sbp 6.5 KB · Views: 719
Took it into my head to write a days-between-dates calculator (code attached). It has two calendar controls, either of which may be disabled at user choice. A marker radio button sets which should be disabled. On the desktop the control text gets greyed-out as well to show disablement. But on the device the greying-out does not happen immediately; it is delayed until the other calendar control (which would not be disabled) is opened and set to the same value. The code shows that I have tried various ways to correct this by doing refresh of calendars or of the form; neither works. Another odd behaviour of calendar controls... Mike.
M mjcoon Well-Known Member Licensed User Jul 31, 2012 #2 mjcoon said: The code shows that I have tried various ways to correct this by doing refresh of calendars or of the form; neither works. Click to expand... I have to retract that assertion: actually doing a Refresh of the calendar controls each time does keep the greying-out in step with the disablement. So that is an easy work-around. Mike.
mjcoon said: The code shows that I have tried various ways to correct this by doing refresh of calendars or of the form; neither works. Click to expand... I have to retract that assertion: actually doing a Refresh of the calendar controls each time does keep the greying-out in step with the disablement. So that is an easy work-around. Mike.