ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The GranularityDuration property is used to get and change the size of the grid to resize:
  • appointments in an Organizer control.
  • appointments in a Scheduler control.
Remark: To get and change the size of the grid used to move elements, call the GranularityMovement property.
Example
// Switch the grid to 15 minutes
ORG_Organizer1.GranularityDuration = 15
Syntax

Duration of elements: Finding out the size of the grid Hide the details

<Result> = <Control used>.GranularityDuration
<Result>: Integer
Resolution of the grid found in the control for the duration:
  • of appointments (in minutes). The default value is set to:
    • 30 minutes in an Organizer control.
    • 24 hours in a Scheduler control.
For an Organizer or Scheduler control, this resolution can be included between:
  • WEBDEV - Server code For a Scheduler control: 1 (one minute) and 1440 (24 hours).
  • WEBDEV - Server code For an Organizer control: 1 (one minute) and 1440 (24 hours).
This value must be a multiple of 60 (120, 240, 320, ...) or a sub-multiple of 60 (1, 2, 5, 10, 15, 30, ...).
The appointments or the events start on a multiple of this value.
<Control used>: Control name
Name of the control to be used:
  • Organizer control.
  • Scheduler control.

Duration of elements: Modifying the size of the grid Hide the details

<Control used>.GranularityDuration = <Value>
<Control used>: Control name
Name of the control to be used:
  • Organizer control.
  • Scheduler control.
<Value>: Integer
New resolution of the grid found in the control for the duration:
  • of appointments in a Scheduler or Organizer control. This resolution is expressed in minutes.
This value must be a multiple of 60 (120, 240, 320, ...) or a sub-multiple of 60 (1, 2, 5, 10, 15, 30, ...).
Remarks
  • Events smaller than the size defined with the GranularityDuration property are not displayed.
  • This property is not available for Organizer and Scheduler controls in reports.
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/03/2022

Send a report | Local help