Hello:
I try this code with for displaystart at 08:00:00:
Agenda= Tplanner
wndprincipal.configuracion.HORA_INICIO_AGENDA = '08:00:00'
wndprincipal.configuracion.HORA_FIN_AGENDA) = '21:00:00'
wndprincipal.configuracion.unidad_tiempo = 15
agenda.ActiveDisplay:=true;
with agenda.Display do begin
DisplayUnit := wndprincipal.configuracion.unidad_tiempo;
RowsPerHour := 60 div DisplayUnit;
DisplayStart :=round(HourOf(wndprincipal.configuracion.HORA_INICIO_AGENDA * RowsPerhour));
DisplayEnd :=round(HourOf(wndprincipal.configuracion.HORA_FIN_AGENDA)) * RowsPerhour;
ActiveStart := round((HourOf(wndprincipal.configuracion.HORA_INICIO_AGENDA)-8) * RowsPerHour);
ActiveEnd :=round((HourOf(wndprincipal.configuracion.HORA_fin_AGENDA)-8 ) * RowsPerHour+1);
colornonactive:=clRed;
colorActive:=clMoneyGreen;
end;
agenda.Mode.Date := date;
agenda.GridTopRow:=(HourOf(time)-7)* RowsPerHour;
but agenda displaystart at 02:00:00
Thank's
Alfonso