lazhen
2025-01-09 8afe90b633046db39042aada36b88193062f8cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Quintiq file version 2.0
#parent: #root
Method SetDaysOnlyMode () id:Method_LibCal_dlgMultipleEvent_SetDaysOnlyMode
{
  #keys: '[415136.0.646700929]'
  Body:
  [*
    // Force the times to be 0:00, in case an event is edited that was created in 'regular' mode,
    // and set IsAllDay.
    this.ShowDaysOnlyModeWarning();
    
    dhStartTimeOfDay.Data( Duration::Zero() );
    dhEndTimeOfDay  .Data( Duration::Zero() );
    
    durStartTimeOfDay.Duration( Duration::Zero() );
    durEndTimeOfDay  .Duration( Duration::Zero() );
    
    //ckbIsAllDay.Checked(  true );
    
    // Disable start and end time, and hide checkbox 'All day'.
    // Disabling start and end makes the duration more clear; you can better see that end is NOT part of the duration.
    durStartTimeOfDay.Enabled( false, "Days only mode is enabled" );
    durEndTimeOfDay  .Enabled( false, "Days only mode is enabled" );
    //ckbIsAllDay      .Visible( false );
  *]
}