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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
44 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
58 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
35 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
95 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
59 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment