Another Bug in calendar (more subtle!)

mjcoon

Well-Known Member
Licensed User
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

mjcoon

Well-Known Member
Licensed User
The code shows that I have tried various ways to correct this by doing refresh of calendars or of the form; neither works.
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.
 
Top