CT SET TIPS ATTRIBUTES

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 2003 (Modified)


CT SET TIPS ATTRIBUTES (area; object; axis; toolBar; status; contents; format; formatX; method)

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
axisIntegerSelected axes
1 = Category
2 = Series
4 = Values
toolBarIntegerObsolete parameter; pass 0
statusIntegerDisplay mode
0 = No tips
1 = Always display tips
2 = Only display tips on request
contentsIntegerContents of tip
0 = Value only
1 = Percentage only
2 = Value and percentage
formatAlphaDisplay format for Z-axis values
formatXAlphaDisplay format for X-axis values
methodAlphaName of the method to execute

Description

The CT SET TIPS ATTRIBUTES command allows you to modify the attributes of the tips specified by area and object in the variables for the parameters axis, toolBar, status, contents, format, formatX and method.

axis indicates the axes for which tips will be available. This is a composite number resulting from adding several axis numbers. The axis numbers are:

NumberAxis
1Category axis
2Series axis
4Values axis

toolBar is no longer used; pass 0 in this parameter.

status indicates the display settings for tips. Tips can be constantly displayed, displayed on request (if Ctrl on Windows or Command on Mac OS is pressed) or inactive.

contents allows you to know the type of information displayed. Information can be a value, a percentage or both.

format is the display format of the Z-axis tip values. If the format is "General," an empty string "" is returned in format. For more information on special characters used in display formats, refer to the 4th Dimension Design Reference manual.

formatX is similar to format except that it applies to the X-axis (XY graphs only).

method is the name of the method that will be executed each time a tip is displayed. It accepts four parameters. If method is an empty string, no method will be executed when the tip is displayed. When 4D Chart calls method, it returns four parameters ($1, $2, $3 and $4) that can be used for error processing.

ParameterDescription
$1 Long integerRepresents the 4D Chart area for which this method is executed
$2 Long integerContains the ID of the graph
$3 Long integerXth element of the category
$4 Long integerXth element of the series

The $3 and $4 parameters can be set to zero if the cursor is not located on a graph element.

If you want to compile your database later, declare these parameters as follows:

   C_LONGINT ($1;$2;$3;$4)

See Also

CT GET TIPS ATTRIBUTES.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next