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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
127 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
72 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
112 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
109 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
88 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment