Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Redraw property or multi day style setting
Looking for an undocumented feature here.
Is there a redraw or refresh type property for the datepicker?
I am setting the daystyle property day by day as any particular day could have a different appearance so date ranges won't work.
At the moment I'm only displaying up to 3 months at a time so it's not too bad watching the calendar paint itself.
Moving forward though I'd like to be able to display a year at a time so I was hoping there was some means of speeding up the painting process much like other controls where you can turn off the drawing of the control until you've set all the properties you want and then turn them back on again to display the finished result.
Is there a redraw or refresh type property for the datepicker?
I am setting the daystyle property day by day as any particular day could have a different appearance so date ranges won't work.
At the moment I'm only displaying up to 3 months at a time so it's not too bad watching the calendar paint itself.
Moving forward though I'd like to be able to display a year at a time so I was hoping there was some means of speeding up the painting process much like other controls where you can turn off the drawing of the control until you've set all the properties you want and then turn them back on again to display the finished result.
Comments
I changed the code to build an array of ctrls, daystyleprops, and values and then made just one set_property call to see if that would improve things. It did but had the interesting effect of starting out painting one by one by one and then at an arbitrary point say about halfway, the rest of the dates would show in one flash.
Your suggestion Don, simple as it was, was the magic solution. Window redraw off. Window Redraw on. Instantaneous!
Would very much like to replace an existing window that was built on the old OI popup_year.
Looks very dated and is rather tedious to use but it shows an entire calendar year. Need at the very least to show that much. The redraw off/on means I can show more.