Startbeitrag von Arie am 09.04.2013 21:03
Hi,
I have a scheduler control in week mode.
By default it is displayed started at day 1 (monday)
The window is too small to display all days, but the user can use the scrollbar or mousewheel, to say day 4.
Now I want to do this programmatically. However SchedulerPosition or SchedulerPositionDateTime both jump to the correct week, but still display is started at day 1.
Did I miss an option or function to get hits done?
If not: is there some kind of smart trick to do this, i.e. sending mousewheel events or moving the scrollbar by code. Something like that?
I have a scheduler control in week mode.
By default it is displayed started at day 1 (monday)
The window is too small to display all days, but the user can use the scrollbar or mousewheel, to say day 4.
Now I want to do this programmatically. However SchedulerPosition or SchedulerPositionDateTime both jump to the correct week, but still display is started at day 1.
Did I miss an option or function to get hits done?
If not: is there some kind of smart trick to do this, i.e. sending mousewheel events or moving the scrollbar by code. Something like that?
Antworten:
Have you used a DateTime variable for SchedulerPositionDateTime() ?
I've used the following code for that, but it doesn't give you full control (on that moment, there was no SchedulerPositionDateTime() available) :
von Stefan Bentvelsen - am 10.04.2013 08:00
But your SendMessage does the trick - thanks.
btw: I added SCH_Planning..DisplayEnabled = False/True to speed things up. Otherwise it scrolls every tick (75 times in you example), which is slow.
von Arie - am 10.04.2013 08:38
I have also used DisplayEnabled, but that was no part of the trick-code ;)
von Stefan Bentvelsen - am 10.04.2013 09:53