Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 17:35:43 +0000



[Programming Help] - ACSIL: Functions for obtaining chart text formatting details are not working

View Count: 236

[2023-11-09 19:32:27]
binaryduke - Posts: 369
In v2562 the following functions do not work:

1. sc.GetChartFontProperties
Calling this function does not return the font name into the r_FontName reference (although sc.GetChartTextFontFaceName() works just fine)
Also, this function does not return anything into the 4 int32_t numeric references for size, bold, underline, italic.

2. So trying sc.GetGraphicsSetting and specifying the relevant Graphics Setting enum for chart text (i.e. 0), also does not return values matching the chart text settings.
[2023-11-10 20:19:19]
Sierra_Chart Engineering - Posts: 17182
1. The problem with the font name will be resolved.

We do not see any problem with this:
Also, this function does not return anything into the 4 int32_t numeric references for size, bold, underline, italic.



2. This function does correctly get the color and that is the only setting it would get for the text:
  
uint32_t Color=0, LineWidth=0;
SubgraphLineStyles LineStyle=0;
int Result = sc.GetGraphicsSetting(sc.ChartNumber, n_ACSIL::GRAPHICS_SETTING_CHART_TEXT, Color, LineWidth, LineStyle);

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2023-11-10 20:19:48

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account