But is it possible to only allow the user to select the Font Family and NOT size/color/bold/italic? I don't want the user to be able to specify the size or color because I'm declaring size and color variations of that elsewhere in the indicator. But I want the user to be able to select the global font family used.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
FontFamily Parameter
Collapse
X
-
FontFamily Parameter
I know how to create SimpleFont parameter which allows the user to specify the size/family and color of the font etc....
But is it possible to only allow the user to select the Font Family and NOT size/color/bold/italic? I don't want the user to be able to specify the size or color because I'm declaring size and color variations of that elsewhere in the indicator. But I want the user to be able to select the global font family used.Tags: None
- Likes 1
-
Hello several,
You would need to make an enum for that purpose and then depending on the enum value construct the font.
-
Hello several,
The default is listed on the simplefont page:
Creates a SimpleFont object using a family name of "Arial" and a size of "12"
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
547 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
323 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
99 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
543 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
545 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment