Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ChartControl.Properties.PropertyChanged
Collapse
X
-
ChartControl.Properties.PropertyChanged
For my custom indicator I'm cloning the font from the ChartControl (ChartControl.Properties.LabelFont). When the user changes the properties of the chart font I would like to automatically adjust the font in my indicator. I'm also interested to know if any other ChartControl properties have been updated by the user. I tried to use the ChartControl.Properties.PropertyChanged listener but this does not seem to fire for me. Is there a different even listener I should be using? Thanks.Tags: None
-
Hello martyn73,
Thanks for your post.
ChartControl.Properties.PropertyChanged is not documented for use and is unsupported. If any community members have used this successfully and would like to share their insight, they are welcome to comment here.
If you are trying to detect when font changes and change what your script uses accordingly, you could save the LabelFont's SimpleFont to a private variable and check if it changes in OnRender. If it changes, you can then change the SimpleFont that you use, and also update any SharpDX TextFormats\TextLayouts. I may also promote doing this for scripts that use custom rendering so the change is trapped and can be updated right away.
We look forward to assisting.
-
Hi, i would also be interested if anyone has found a solution, please write briefly here how you did it, thanks.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
368 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
571 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment