| |
exEditTickLabel | 5
|
Specifies the expression that determines the HTML labels to be shown on ticks.
For instance:
- "value", shows the values
for each tick.
- " (value=current ? '<font
;12><fgcolor=FF0000>' : '' ) + value", shows
the current slider's position with a different color and font.
- "value = current ? value : ''",
shows the value for the current tick only.
- "( value = current ? '<b><font
;10>' : '' ) + (value array 'ab bc cd de ef fg gh hi ij jk kl'
split ' ')" displays different captions for slider's
values.
The option supports the following keywords:
- value gets the slider's position to be displayed
- current gets the current slider's value.
- vmin gets the slider's minimum value.
- vmax gets the slider's maximum value.
- smin gets the slider's selection minimum value.
- smax gets the slider's selection maximum value.
The supported binary arithmetic operators are:
- * ( multiplicity operator ), priority 5
- / ( divide operator ), priority 5
- mod ( reminder operator ), priority 5
- + ( addition operator ), priority 4 ( concatenates two
strings, if one of the operands is of string type )
- - ( subtraction operator ), priority 4
The supported unary boolean operators are:
- not ( not operator ), priority 3 ( high priority )
The supported binary boolean operators are:
- or ( or operator ), priority 2
- and ( or operator ), priority 1
The supported binary boolean operators, all these with the same
priority 0, are :
- < ( less operator )
- <= ( less or equal operator )
- = ( equal operator )
- != ( not equal operator )
- >= ( greater or equal operator )
- > ( greater operator )
The supported ternary operators, all these with the same priority
0, are :
- ? ( Immediate If operator ), returns and executes
one of two expressions, depending on the evaluation of an
expression. The syntax for is
"expression ?
true_part : false_part"
, while it executes and returns the true_part if the expression is
true, else it executes and returns the false_part. For instance, the "%0
= 1 ? 'One' : (%0 = 2 ? 'Two' : 'not found')" returns 'One'
if the value is 1, 'Two' if the value is 2, and 'not found' for any
other value. A n-ary equivalent operation is the case() statement,
which is available in newer versions of the component.
The supported n-ary operators are (with priority 5):
- array (at operator), returns the element from an
array giving its index ( 0 base ). The array operator returns
empty if the element is found, else the associated element in the
collection if it is found. The syntax for array operator is
"expression array
(c1,c2,c3,...cn)"
, where the c1, c2, ... are constant elements. The constant
elements could be numeric, date or string expressions. For instance
the "month(value)-1 array ('J','F','M','A','M','Jun','J','A','S','O','N','D')"
is equivalent with "month(value)-1 case (default:'';
0:'J';1:'F';2:'M';3:'A';4:'M';5:'Jun';6:'J';7:'A';8:'S';9:'O';10:'N';11:'D')".
- in (include operator), specifies whether an element
is found in a set of constant elements. The in operator
returns -1 ( True ) if the element is found, else 0 (false) is
retrieved. The syntax for in operator is
"expression in
(c1,c2,c3,...cn)"
, where the c1, c2, ... are constant elements. The constant
elements could be numeric, date or string expressions. For instance
the "value in (11,22,33,44,13)" is equivalent with "(expression
= 11) or (expression = 22) or (expression = 33) or (expression = 44)
or (expression = 13)". The in operator is not a time
consuming as the equivalent or version is, so when you have
large number of constant elements it is recommended using the in
operator. Shortly, if the collection of elements has 1000 elements the
in operator could take up to 8 operations in order to find if
an element fits the set, else if the or statement is used, it
could take up to 1000 operations to check, so by far, the in
operator could save time on finding elements within a collection.
- switch (switch operator), returns the value being
found in the collection, or a predefined value if the element is not
found (default). The syntax for switch operator is
"expression switch
(default,c1,c2,c3,...,cn)"
, where the c1, c2, ... are constant elements, and the default is a
constant element being returned when the element is not found in the
collection. The constant elements could be numeric, date or string
expressions. The equivalent syntax is "%0 = c 1 ? c 1 : (
%0 = c 2 ? c 2 : ( ... ? . : default) )". The switch operator
is very similar with the in operator excepts that the first
element in the switch is always returned by the statement if the
element is not found, while the returned value is the value
itself instead -1. For instance, the "%0 switch ('not
found',1,4,7,9,11)" gets 1, 4, 7, 9 or 11, or 'not found' for any
other value. As the in operator the switch operator uses
binary searches for fitting the element, so it is quicker that iif
(immediate if operator) alterative.
- case() (case operator) returns and executes one of n
expressions, depending on the evaluation of the expression ( IIF -
immediate IF operator is a binary case() operator ). The syntax for case()
operator is:
"expression case
([default : default_expression ; ] c1 : expression1 ; c2 : expression2 ;
c3 : expression3 ;....)"
If the default part is missing, the case() operator returns the
value of the expression if it is not found in the collection of cases
( c1, c2, ...). For instance, if the value of expression is not any of
c1, c2, .... the default_expression is executed and returned. If the
value of the expression is c1, then the case() operator
executes and returns the expression1. The default, c1, c2,
c3, ... must be constant elements as numbers, dates or strings.
For instance, the "date(shortdate(value)) case (default:0 ;
#1/1/2002#:1 ; #2/1/2002#:1; #4/1/2002#:1; #5/1/2002#:1)"
indicates that only #1/1/2002#, #2/1/2002#, #4/1/2002# and
#5/1/2002# dates returns 1, since the others returns 0. For
instance the following sample specifies the hour being non-working for
specified dates: "date(shortdate(value))
case(default:0;#4/1/2009# : hour(value) >= 6 and hour(value) <=
12 ; #4/5/2009# : hour(value) >= 7 and hour(value) <= 10 or
hour(value) in(15,16,18,22); #5/1/2009# : hour(value) <= 8)"
statement indicates the working hours for dates as follows:
-
- #4/1/2009#, from hours 06:00 AM to 12:00 PM
- #4/5/2009#, from hours 07:00 AM to 10:00 AM and hours
03:00PM, 04:00PM, 06:00PM and 10:00PM
- #5/1/2009#, from hours 12:00 AM to 08:00 AM
The in, switch and case() use binary search to
look for elements so they are faster then using iif and or expressions.
Obviously, the priority of the operations inside the expression is
determined by ( ) parenthesis and the priority for each operator.
The supported conversion unary operators are:
Other known operators for numbers are:
Other known operators for strings are:
- len (unary operator) retrieves the number of characters in
the string
- lower (unary operator) returns a string expression in
lowercase letters
- upper (unary operator) returns a string expression in
uppercase letters
- proper (unary operator) returns from a character expression
a string capitalized as appropriate for proper names
- ltrim (unary operator) removes spaces on the left side of a
string
- rtrim (unary operator) removes spaces on the right side of
a string
- trim (unary operator) removes spaces on both sides of a
string
- startwith (binary operator) specifies whether a string
starts with specified string
- endwith (binary operator) specifies whether a string ends
with specified string
- contains (binary operator) specifies whether a string
contains another specified string
- left (binary operator) retrieves the left part of the
string
- right (binary operator) retrieves the right part of the
string
- a mid b (binary operator) retrieves the middle part of the
string a starting from b ( 1 means first position, and so on )
- a count b (binary operator) retrieves the number of
occurrences of the b in a
- a replace b with c (double binary operator) replaces
in a the b with c, and gets the result.
- a split b, splits the a using the separator b, and returns
an array. For instance, the "weekday(value) array 'Sun Mon Thu
Wed Thu Fri Sat' split ' '" gets the weekday as string.
This operator can be used with the array
Other known operators for dates are:
- time (unary operator) retrieves the time of the date in
string format, as specified in the control's panel.
- timeF (unary operator) retrieves the time of the date in
string format, as "HH:MM:SS". For instance the timeF(1:23
PM) returns "13:23:00"
- shortdate (unary operator) formats a date as a date string
using the short date format, as specified in the control's panel.
- shortdateF (unary operator) formats a date as a date string
using the "MM/DD/YYYY" format. For instance the
shortdateF(December 31, 1971 11:00 AM) returns
"12/31/1971".
- dateF (unary operator) converts the date expression to a
string expression in "MM/DD/YYYY HH:MM:SS" format.
- longdate (unary operator) formats a date as a date string
using the long date format, as specified in the control's panel.
- year (unary operator) retrieves the year of the date
(100,...,9999)
- month (unary operator) retrieves the month of the date ( 1,
2,...,12 )
- day (unary operator) retrieves the day of the date ( 1,
2,...,31 )
- yearday (unary operator) retrieves the number of the day in
the year, or the days since January 1st ( 0, 1,...,365 )
- weekday (unary operator) retrieves the number of days since
Sunday ( 0 - Sunday, 1 - Monday,..., 6 - Saturday )
- hour (unary operator) retrieves the hour of the date ( 0,
1, ..., 23 )
- min (unary operator) retrieves the minute of the date ( 0,
1, ..., 59 )
- sec (unary operator) retrieves the second of the date ( 0,
1, ..., 59 )
The The <VALUE> of [ticklabel] option can display labels using the
following built-in HTML tags:
- <b>…</b> displays the text in bold.
- <i>…</i> displays the text in italics.
- <u>…</u> underlines the text.
- <s>…</s>
Strike-through text
- <font face;size>…</font> displays portions of
text with a different font and/or different size. For instance, the
<font Tahoma;12>bit</font>
draws the bit text using the Tahoma font, on size 12 pt. If the name
of the font is missing, and instead size is present, the current
font is used with a different size. For instance, <font ;12>bit</font>
displays the bit text using the current font, but with a different
size.
- <fgcolor=RRGGBB>…</fgcolor> displays text
with a specified foreground color. The
RR, GG or BB should be hexa values and indicates red, green and blue
values.
- <bgcolor=RRGGBB>…</bgcolor> displays text
with a specified background
color. The RR, GG or BB should be hexa values and indicates red,
green and blue values.
- <br> a forced line-break
- <solidline> The next line shows a solid-line on
top/bottom side. If has no effect for a single line caption.
- <dotline> The next line shows a dot-line on
top/bottom side. If has no effect for a single line caption.
- <upline> The next line shows a solid/dot-line on top
side. If has no effect for a single line caption.
- <r> Right aligns the text
- <c> Centers the text
- <img>number[:width]</img> inserts an icon
inside the text. The number indicates the index of the icon being
inserted. Use the Images method to assign a list of icons to your
chart. The last 7 bits in the high significant byte of the number
expression indicates the identifier of the skin being used to paint
the object. Use the Add method to add new skins to the control. If
you need to remove the skin appearance from a part of the control
you need to reset the last 7 bits in the high significant byte of
the color being applied to the part. The width is optional and
indicates the width of the icon being inserted. Using the width
option you can overwrite multiple icons getting a nice effect. By
default, if the width field is missing, the width is 18 pixels.
- <img>key[:width]</img> inserts a custom size
picture into the text being previously loaded using the HTMLPicture
property. The Key parameter indicates the key of the picture being
displayed. The Width parameter indicates a custom size, if you
require to stretch the picture, else the original size of the
picture is used.
- & glyph characters as & ( & ), <
( < ), > ( > ), &qout; ( "
) and &#number ( the character with specified code ), For
instance, the € displays the EUR character, in UNICODE
configuration. The & ampersand is only recognized as
markup when it is followed by a known letter or a # character and a
digit. For instance if you want to display <b>bold</b>
in HTML caption you can use <b>bold</b>
(string expression)
| |
| |
exEditChangeToolTip | 8
|
Specifies the expression that determines the HTML tooltip to be shown when the item's value is changed. By default, the
exEditChangeToolTip option is "value". This option is valid for editors like:
exItemEditSlider,
exItemEditScrollBar The option supports the following keywords:
- value gets the slider's position to be displayed
The supported binary arithmetic operators are:
- * ( multiplicity operator ), priority 5
- / ( divide operator ), priority 5
- mod ( reminder operator ), priority 5
- + ( addition operator ), priority 4 ( concatenates two
strings, if one of the operands is of string type )
- - ( subtraction operator ), priority 4
The supported unary boolean operators are:
- not ( not operator ), priority 3 ( high priority )
The supported binary boolean operators are:
- or ( or operator ), priority 2
- and ( or operator ), priority 1
The supported binary boolean operators, all these with the same
priority 0, are :
- < ( less operator )
- <= ( less or equal operator )
- = ( equal operator )
- != ( not equal operator )
- >= ( greater or equal operator )
- > ( greater operator )
The supported ternary operators, all these with the same priority
0, are :
- ? ( Immediate If operator ), returns and executes
one of two expressions, depending on the evaluation of an
expression. The syntax for is
"expression ?
true_part : false_part"
, while it executes and returns the true_part if the expression is
true, else it executes and returns the false_part. For instance, the "%0
= 1 ? 'One' : (%0 = 2 ? 'Two' : 'not found')" returns 'One'
if the value is 1, 'Two' if the value is 2, and 'not found' for any
other value. A n-ary equivalent operation is the case() statement,
which is available in newer versions of the component.
The supported n-ary operators are (with priority 5):
- array (at operator), returns the element from an
array giving its index ( 0 base ). The array operator returns
empty if the element is found, else the associated element in the
collection if it is found. The syntax for array operator is
"expression array
(c1,c2,c3,...cn)"
, where the c1, c2, ... are constant elements. The constant
elements could be numeric, date or string expressions. For instance
the "month(value)-1 array ('J','F','M','A','M','Jun','J','A','S','O','N','D')"
is equivalent with "month(value)-1 case (default:'';
0:'J';1:'F';2:'M';3:'A';4:'M';5:'Jun';6:'J';7:'A';8:'S';9:'O';10:'N';11:'D')".
- in (include operator), specifies whether an element
is found in a set of constant elements. The in operator
returns -1 ( True ) if the element is found, else 0 (false) is
retrieved. The syntax for in operator is
"expression in
(c1,c2,c3,...cn)"
, where the c1, c2, ... are constant elements. The constant
elements could be numeric, date or string expressions. For instance
the "value in (11,22,33,44,13)" is equivalent with "(expression
= 11) or (expression = 22) or (expression = 33) or (expression = 44)
or (expression = 13)". The in operator is not a time
consuming as the equivalent or version is, so when you have
large number of constant elements it is recommended using the in
operator. Shortly, if the collection of elements has 1000 elements the
in operator could take up to 8 operations in order to find if
an element fits the set, else if the or statement is used, it
could take up to 1000 operations to check, so by far, the in
operator could save time on finding elements within a collection.
- switch (switch operator), returns the value being
found in the collection, or a predefined value if the element is not
found (default). The syntax for switch operator is
"expression switch
(default,c1,c2,c3,...,cn)"
, where the c1, c2, ... are constant elements, and the default is a
constant element being returned when the element is not found in the
collection. The constant elements could be numeric, date or string
expressions. The equivalent syntax is "%0 = c 1 ? c 1 : (
%0 = c 2 ? c 2 : ( ... ? . : default) )". The switch operator
is very similar with the in operator excepts that the first
element in the switch is always returned by the statement if the
element is not found, while the returned value is the value
itself instead -1. For instance, the "%0 switch ('not
found',1,4,7,9,11)" gets 1, 4, 7, 9 or 11, or 'not found' for any
other value. As the in operator the switch operator uses
binary searches for fitting the element, so it is quicker that iif
(immediate if operator) alterative.
- case() (case operator) returns and executes one of n
expressions, depending on the evaluation of the expression ( IIF -
immediate IF operator is a binary case() operator ). The syntax for case()
operator is:
"expression case
([default : default_expression ; ] c1 : expression1 ; c2 : expression2 ;
c3 : expression3 ;....)"
If the default part is missing, the case() operator returns the
value of the expression if it is not found in the collection of cases
( c1, c2, ...). For instance, if the value of expression is not any of
c1, c2, .... the default_expression is executed and returned. If the
value of the expression is c1, then the case() operator
executes and returns the expression1. The default, c1, c2,
c3, ... must be constant elements as numbers, dates or strings.
For instance, the "date(shortdate(value)) case (default:0 ;
#1/1/2002#:1 ; #2/1/2002#:1; #4/1/2002#:1; #5/1/2002#:1)"
indicates that only #1/1/2002#, #2/1/2002#, #4/1/2002# and
#5/1/2002# dates returns 1, since the others returns 0. For
instance the following sample specifies the hour being non-working for
specified dates: "date(shortdate(value))
case(default:0;#4/1/2009# : hour(value) >= 6 and hour(value) <=
12 ; #4/5/2009# : hour(value) >= 7 and hour(value) <= 10 or
hour(value) in(15,16,18,22); #5/1/2009# : hour(value) <= 8)"
statement indicates the working hours for dates as follows:
-
- #4/1/2009#, from hours 06:00 AM to 12:00 PM
- #4/5/2009#, from hours 07:00 AM to 10:00 AM and hours
03:00PM, 04:00PM, 06:00PM and 10:00PM
- #5/1/2009#, from hours 12:00 AM to 08:00 AM
The in, switch and case() use binary search to
look for elements so they are faster then using iif and or expressions.
Obviously, the priority of the operations inside the expression is
determined by ( ) parenthesis and the priority for each operator.
The supported conversion unary operators are:
Other known operators for numbers are:
Other known operators for strings are:
- len (unary operator) retrieves the number of characters in
the string
- lower (unary operator) returns a string expression in
lowercase letters
- upper (unary operator) returns a string expression in
uppercase letters
- proper (unary operator) returns from a character expression
a string capitalized as appropriate for proper names
- ltrim (unary operator) removes spaces on the left side of a
string
- rtrim (unary operator) removes spaces on the right side of
a string
- trim (unary operator) removes spaces on both sides of a
string
- startwith (binary operator) specifies whether a string
starts with specified string
- endwith (binary operator) specifies whether a string ends
with specified string
- contains (binary operator) specifies whether a string
contains another specified string
- left (binary operator) retrieves the left part of the
string
- right (binary operator) retrieves the right part of the
string
- a mid b (binary operator) retrieves the middle part of the
string a starting from b ( 1 means first position, and so on )
- a count b (binary operator) retrieves the number of
occurrences of the b in a
- a replace b with c (double binary operator) replaces
in a the b with c, and gets the result.
- a split b, splits the a using the separator b, and returns
an array. For instance, the "weekday(value) array 'Sun Mon Thu
Wed Thu Fri Sat' split ' '" gets the weekday as string.
This operator can be used with the array
Other known operators for dates are:
- time (unary operator) retrieves the time of the date in
string format, as specified in the control's panel.
- timeF (unary operator) retrieves the time of the date in
string format, as "HH:MM:SS". For instance the timeF(1:23
PM) returns "13:23:00"
- shortdate (unary operator) formats a date as a date string
using the short date format, as specified in the control's panel.
- shortdateF (unary operator) formats a date as a date string
using the "MM/DD/YYYY" format. For instance the
shortdateF(December 31, 1971 11:00 AM) returns
"12/31/1971".
- dateF (unary operator) converts the date expression to a
string expression in "MM/DD/YYYY HH:MM:SS" format.
- longdate (unary operator) formats a date as a date string
using the long date format, as specified in the control's panel.
- year (unary operator) retrieves the year of the date
(100,...,9999)
- month (unary operator) retrieves the month of the date ( 1,
2,...,12 )
- day (unary operator) retrieves the day of the date ( 1,
2,...,31 )
- yearday (unary operator) retrieves the number of the day in
the year, or the days since January 1st ( 0, 1,...,365 )
- weekday (unary operator) retrieves the number of days since
Sunday ( 0 - Sunday, 1 - Monday,..., 6 - Saturday )
- hour (unary operator) retrieves the hour of the date ( 0,
1, ..., 23 )
- min (unary operator) retrieves the minute of the date ( 0,
1, ..., 59 )
- sec (unary operator) retrieves the second of the date ( 0,
1, ..., 59 )
The The <VALUE> of [ticklabel] option can display labels using the
following built-in HTML tags:
- <b>…</b> displays the text in bold.
- <i>…</i> displays the text in italics.
- <u>…</u> underlines the text.
- <s>…</s>
Strike-through text
- <font face;size>…</font> displays portions of
text with a different font and/or different size. For instance, the
<font Tahoma;12>bit</font>
draws the bit text using the Tahoma font, on size 12 pt. If the name
of the font is missing, and instead size is present, the current
font is used with a different size. For instance, <font ;12>bit</font>
displays the bit text using the current font, but with a different
size.
- <fgcolor=RRGGBB>…</fgcolor> displays text
with a specified foreground color. The
RR, GG or BB should be hexa values and indicates red, green and blue
values.
- <bgcolor=RRGGBB>…</bgcolor> displays text
with a specified background
color. The RR, GG or BB should be hexa values and indicates red,
green and blue values.
- <br> a forced line-break
- <solidline> The next line shows a solid-line on
top/bottom side. If has no effect for a single line caption.
- <dotline> The next line shows a dot-line on
top/bottom side. If has no effect for a single line caption.
- <upline> The next line shows a solid/dot-line on top
side. If has no effect for a single line caption.
- <r> Right aligns the text
- <c> Centers the text
- <img>number[:width]</img> inserts an icon
inside the text. The number indicates the index of the icon being
inserted. Use the Images method to assign a list of icons to your
chart. The last 7 bits in the high significant byte of the number
expression indicates the identifier of the skin being used to paint
the object. Use the Add method to add new skins to the control. If
you need to remove the skin appearance from a part of the control
you need to reset the last 7 bits in the high significant byte of
the color being applied to the part. The width is optional and
indicates the width of the icon being inserted. Using the width
option you can overwrite multiple icons getting a nice effect. By
default, if the width field is missing, the width is 18 pixels.
- <img>key[:width]</img> inserts a custom size
picture into the text being previously loaded using the HTMLPicture
property. The Key parameter indicates the key of the picture being
displayed. The Width parameter indicates a custom size, if you
require to stretch the picture, else the original size of the
picture is used.
- & glyph characters as & ( & ), <
( < ), > ( > ), &qout; ( "
) and &#number ( the character with specified code ), For
instance, the € displays the EUR character, in UNICODE
configuration. The & ampersand is only recognized as
markup when it is followed by a known letter or a # character and a
digit. For instance if you want to display <b>bold</b>
in HTML caption you can use <b>bold</b>
(string expression)
| |