new MiscellaneousOptions()
For instance, the "requireTimeScaleHeight" option:
misc: { requireTimeScaleHeight: 0 }hides entirely the view's time-scale.
oSchedule.Misc = {requireTimeScaleHeight: 0}where oSchedule is an object of Schedule type.
Members
(static) allowEmptyEvents :number|string
The allowEmptyEvents field can be one of the following:
- {number}
- 0 {number}, permits empty events or events with duration 0 (start and end are equals)
- positive {number}, specifies how many minorTimeRuler defines the minimum duration
- negative {number}, that indicates the number of miliseconds (absolute value)
- {string}, indicates the hours and minutes in "hh:mm" format
Type:
- number | string
Example
0 {number}, the user can create empty events
1 {number}, the mimimum duration for events being created or resized is specified by minorTimeRuler option of the time-scale. For instance, if the minor time-scale are displayed from 15 to 15 minutes, the mimimum duration is 15 minutes
2 {number}, the mimimum duration for events being created or resized is minorTimeRuler option of the time-scale multiplied by 2. For instance, if the minor time-scale are displayed from 15 to 15 minutes, the mimimum duration is 30 minutes
-5 * 1000 or -5 * exontrol.mssec {number}, defines 5 seconds
-5 * 60 * 1000 or -5 * exontrol.msmin {number}, defines 5 minutes
-5 * 60 * 60 * 1000 or -5 * exontrol.mshour {number}, defines 5 hours
-5 * 24 * 60 * 60 * 1000 or -5 * exontrol.msday {number}, defines 5 days
"1:30" {string}, indicates 1 hour and 30 minutes
allowEmptyEvents
(static) arrangeEventsOnDrag :boolean
Type:
- boolean
Example
false {boolean}, no event gets arranged during the drag and drop
true {boolean}, the events get arranged during the drag and drop
arrangeEventsOnDrag
(static) arrowSizeMultiDatesEvent :number|Array.<number>
Type:
- number | Array.<number>
Example
0 {number}, hides the up/down arrow(s) are for any multi-dates event
4 {number}, indicates a 4-pixels wide for up/down arrow(s) of multi-dates event (fixed size)
[4,8] {number[]}, specifies that the size of up/down arrow(s) of multi-dates event is variable from 4 to 8-pixels wide (variable size)
arrowSizeMultiDatesEvent
(static) createEventMargin :number
Type:
- number
Example
0 {number}, hides the right-margin/down-margin of each date to allow users to create new events by drag and drop
8 {number}, indicates a 8-pixels wide for the right-margin/down-margin of each date to allow users to create new events by drag and drop
createEventMargin
(static) displayTimeScaleHeight :number
- zero value which hides entirely the day's time-scale
- positive value which indicates a minimum-height relative to the control's font size, such as 2 (the day's time-scale will not be visible if its height is less than 2 times the control's font size)
- negative value which indicates a fixed minimum-height in pixels, such as -32 (the day's time-scale will not be visible if its height is less than 32 pixels)
Type:
- number
Example
0 {number} hides the date's time-scale
-32 {number} indicates a minimum 32-pixels
2 {number} specifies 2 times control's font-size
displayTimeScaleHeight
(static) dragAlpha :number
Type:
- number
Example
null {null} or 1 {number}, the field is ignored, so the source-event being dragged is shown unchanged
0 {number}, hides the source-event being dragged (fully transparent)
0.5 {number}, the source-event being dragged is shown semi-transparent
dragAlpha
(static) dragAlphaNegate :boolean
Type:
- boolean
Example
false {boolean}, the dragAlpha transparency is applied to source-event only
true {boolean}, the dragAlpha transparency is applied to any other than source-event
dragAlphaNegate
(static) dragDummyAlpha :number
Type:
- number
Example
null {null} or 1 {number}, the field is ignored, so the dummy-event being dragged is shown unchanged
0 {number}, hides the dummy-event being dragged (fully transparent)
0.5 {number}, the dummy-event being dragged is shown semi-transparent
dragDummyAlpha
(static) dragStartOnMove :number
The dragStartOnMove field can be one of the following values:
- -1 {number}, any drag-operation (create, resize or move) begins once the user clicks and drags the pointer
- 0 {number}, any drag-operation (create, resize or move) begins once the user clicks the view, without initially dragging the pointer
Additionally, the dragStartOnMove field can be a combination of one or more of the following values to specify which drag-operations start once the pointer is moved:
- 1 {number}, create a new event by drag and drop
- 2 {number}, resize one or more events by drag and drop
- 4 {number}, move one or more events by drag and drop
By default, the dragStartOnMove field is set to 1, which means that a new event is created once the user clicks and drags the pointer (prevents creating a new event once the user clicks the control without dragging/moving the mouse/pointer).
Type:
- number
Example
0 {number}, any drag-operation (create, resize or move) begins once the user clicks the view, without initially dragging the pointer
-1 {number}, any drag-operation (create, resize or move) begins once the user clicks and drags the pointer
1 {number}, a new event is created once the user clicks and drags the pointer (prevents creating a new event once the user clicks the control without dragging/moving the mouse/pointer)
6 {number}, the move or resize drag-operation begins once the user clicks and drags the pointer
dragStartOnMove
(static) ensureVisibleOnDrag :number
The ensureVisibleOnDrag field can be one of the following values:
- -1 {number}, the EnsureVisibleClient() method is called for any drag and drop operation (create, resize or move)
- 0 {number}, no EnsureVisibleClient() method is called once any drag-operation (create, resize or move) ends
Additionally, the ensureVisibleOnDrag field can be a combination of one or more of the following values to specify for which drag-operations the EnsureVisibleClient() method is called once the drag-operation ends:
- 1 {number}, create a new event by drag and drop
- 2 {number}, resize one or more events by drag and drop
- 4 {number}, move one or more events by drag and drop
By default, the ensureVisibleOnDrag field is set to -1, which means that the EnsureVisibleClient() method is called for any drag and drop operation (create, resize or move). This ensures that after any drag and drop operation, the control will automatically scroll to make sure that the event being created, moved, or resized is visible within the client area of the view.
Type:
- number
Example
0 {number}, no EnsureVisibleClient() method is called once any drag-operation (create, resize or move) ends
-1 {number}, the EnsureVisibleClient() method is called for any drag and drop operation (create, resize or move)
1 {number}, the EnsureVisibleClient() method is called only if the user creates new events by drag and drop
6 {number}, the EnsureVisibleClient() method is called only if the user moves or resizes events by drag and drop
ensureVisibleOnDrag
(static) eventDisplayMarginsSep :string
Type:
- string
Example
" - " {string}, defines " - " the separator character(s) between start and end date-times
eventDisplayMarginsSep
(static) eventMargin :number|Array.<number>
Type:
- number | Array.<number>
Example
0 {number}, indicates no distance between events
4 {number} or [4,4] {array}, indicates a 4-pixels distance between events, horizontally and vertically as well
[4,0] {array}, indicates a 4-pixels distance between events horizontally and 0 vertically
[8,4] {array}, indicates a 8-pixels distance between events horizontally and 4-pixels vertically
eventMargin
(static) formatCreateEventLabel :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type support the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatCreateEventLabel
(static) formatEventExtraLabel :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type support the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatEventExtraLabel
(static) formatEventLongLabel :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type support the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatEventLongLabel
(static) formatEventShortLabel :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type support the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatEventShortLabel
(static) formatGroupCaption :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type supports the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatGroupCaption
(static) formatMarkZoneCaption :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type support the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatMarkZoneCaption
(static) formatUpdateEventLabel :exontrol.DrawTextFormatEnum
The following fields can be used to specify the format for different captions and labels within the control:
-
Event captions and labels
- The formatText field specifies the format used to display event (appointment) captions.
- The formatEventShortLabel, formatEventLongLabel, and formatEventExtraLabel fields specify the format and alignment for the event's short, long, and extra labels.
-
Event interaction (drag & drop)
- The formatCreateEventLabel field specifies the format and alignment of the event's label while the user creates it by drag and drop.
- The formatUpdateEventLabel field specifies the format and alignment of the event's label while the user moves or resizes it by drag and drop.
-
Other captions
- The formatMarkZoneCaption field specifies the format and alignment of the mark-zone's caption.
- The formatGroupCaption field specifies the format and alignment of the group's caption.
The exontrol.DrawTextFormatEnum type support the following flags:
- exTextAlignTop (0x00), justifies the text to the top of the rectangle
- exTextAlignLeft (0x00), aligns text to the left
- exTextAlignCenter (0x01), centers text horizontally in the rectangle
- exTextAlignRight (0x02), aligns text to the right
- exTextAlignVCenter (0x04), centers text vertically
- exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
- exTextAlignMask (0x0F), specifies the mask for text's alignment.
- exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
- exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
- exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
- exPlainText (0x80), treats the text as plain text.
- exTextNoClip (0x0100), draws without clipping.
- exHTMLTextNoColors (0x0200), ignores the
and tags. - exTextCalcRect (0x0400), determines the width and height of the text.
- exHTMLTextNoTags (0x0800), ignores all HTML tags.
- exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
- exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
- exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
- exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
formatUpdateEventLabel
(static) groupingButtonPrompt :string
Type:
- string
Example
null {null}, equivalent of "Enter the id or index of each visible-group (separated by comma):"
"" {string}, no message is displayed
groupingButtonPrompt
(static) minHeight :number
- positive value which indicates a minimum-height relative to the control's font size, such as 2 (the schedule view will not be displayed if the height of a day is less than 2 times the control's font size)
- negative value which indicates a fixed minimum-height in pixels, such as -32 (the schedule view will not be displayed if the height of a day is less than 32 pixels)
Type:
- number
Example
-32 {number} indicates a minimum 32-pixels
2 {number} specifies 2 times control's font-size
minHeight
(static) minWidth :number
Type:
- number
- Since:
- 4.1
Example
16 {number} defines a minimum width of 16 pixels
minWidth
(static) padSelectEvent :number|string|array
The padSelectEvent field can be of one of the following types:
- {number} a numeric value, to pad horizontal and vertical size with the same value
- {(string|number[])} a "x,y" or [x,y] type to specify the padding on horizontal and vertical side
Type:
- number | string | array
Example
null {null}, indicates that the default-padding field is used ([3,3])
0 {number}, indicates no padding
4 {number} or [4,4] {array}, increases the size of selected-border around event, with 2 * 4-pixels
"8,4" {string} or [8,4] {array}, increases the width of selected-border around event, with 2 * 8-pixels height with 2 * 4-pixels
padSelectEvent
(static) requireRulerDistance :number
The requireRulerDistance field can be:
- zero value which indicates that the field is ignored and the distance between two consecutive rulers is not checked
- positive value which indicates a minimum-distance relative to the control's font size, such as 2 (the distance between two consecutive rulers will not be checked if it is less than 2 times the control's font size)
- negative value which indicates a fixed minimum-distance in pixels, such as -32 (the distance between two consecutive rulers will not be checked if it is less than 32 pixels)
Type:
- number
Example
0 {number} the requireRulerDistance option is ignored
-32 {number} indicates a minimum 32-pixels
2 {number} specifies 2 times control's font-size
requireRulerDistance
(static) requireTimeScaleHeight :number
- zero value which hides entirely the view's time-scale header
- positive value which indicates a minimum-height relative to the control's font size, such as 2 (the view's time-scale header will not be visible if its height is less than 2 times the control's font size)
- negative value which indicates a fixed minimum-height in pixels, such as -32 (the view's time-scale header will not be visible if its height is less than 32 pixels)
Type:
- number
Example
0 {number} hides the view's time-scale
-32 {number} indicates a minimum 32-pixels
2 {number} specifies 2 times control's font-size
requireTimeScaleHeight