|
| Iniciado por guest, 20,jun. 2015 23:02 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 20,junio 2015 - 23:02 |
Hey to all.
What I want to achieve is when I move the mouse over a scheduler that the cell is colored with the function SchedulerBackgroundColor
In the WM_MOUSEMOVE event of the scheduler i do this:
Res is int = SchedulerInfoXY(SCH_PLANNING,schResource ,MouseXPos(), MouseYPos()) Datum is DateTime = SchedulerInfoXY(SCH_PLANNING,schDateTime ,MouseXPos(), MouseYPos()) TmDatum is DateTime = Datum TmDatum..Time..Hour += 23 SchedulerBackgroundColor(SCH_PLANNING,Datum,TmDatum,ArrResource[Res],DarkGreen)
But nothing happens Some has i idea why ??? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2015 - 19:40 |
Hi Jan, I did a small test in one of my projects. It looks like this line is not working as expected TmDatum..Time..Hour += 23
After changing it to TmDatum..Hour += 23 I show the scheduler background changing
Funny enough only the working hours (as defined in the 7-tab of the scheduler) are coloured. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2015 - 21:30 |
Hi Arie
Thank you very very much for your reply But after that change nothing happens with me...
Is a little example possible ??
TIA Jan |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2015 - 21:54 |
Res is int = SchedulerInfoXY(SCH_PLANNING,schResource ,MouseXPos(), MouseYPos())
In this case Res must be a string !!!!
Thanks anyway Arie !!
Jan |
| |
| |
| | | |
|
| | | | |
| | |
|