Unfortunately, adding a System.Windows.Controls.TextBox to a chart is not officially supported by NinjaTrader. This would require undocumented and unsupported code to acheive.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
NumericTextBox Not Accepting Input
Collapse
X
-
Hi colleagues.
Here is the reason and the solution of the issue, described in the header of current thread:
Test_NumBox = new NumericTextBox ()
{Width = 50,
ValueType = typeof (double),
};
You should just specify the type.
Comment
-
Hello fx.practic,
Thank you for your recommendation. Unfortunately this does not resolve the problem of "NumericTextBox Not Accepting Input" within the NTWindow environment.
Using the xaml listing from Ninjascript reference and addition of your code shown below, the NumericTextBox only shows a cursor and still would not accept any character from the keyboard. It is almost like the characters from the keyboard were intercepted by another process and not reaching the NumericTextBox.
Do you have a sample NTwindow addon (or code snippets) with a NumericTextBox that is functional?
<Grid>
<!-- Define a NumericTextBox -->
<t:NumericTextBox x:Name="daysBackSelector" Text ="5" ValueType="{x:Type system:Int32}" Width="50" Grid.Column="2">
<!-- Set the margins for the box -->
<t:NumericTextBox.Margin>
<Thickness Left="{StaticResource MarginButtonLeft}" Top="{StaticResource PaddingColumn}" Right="{StaticResource MarginBase}"/>
</t:NumericTextBox.Margin>
</t:NumericTextBox>
</Grid>
private NumericTextBox daysBack = new NumericTextBox ()
{
Width = 50,
ValueType = typeof (double),
};
private DependencyObject LoadXAML()
{
// Find days back selector
daysBack = LogicalTreeHelper.FindLogicalNode(pag eContent, "daysBackSelector") as NumericTextBox;
}
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rocketman7, Today, 09:41 AM
|
2 responses
4 views
0 likes
|
Last Post
by rocketman7
Today, 09:52 AM
|
||
Started by traderqz, Today, 09:44 AM
|
1 response
2 views
0 likes
|
Last Post
by traderqz
Today, 09:48 AM
|
||
Started by rocketman7, Today, 02:12 AM
|
7 responses
31 views
0 likes
|
Last Post Today, 09:23 AM | ||
Started by guillembm, Yesterday, 11:25 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 09:11 AM | ||
Started by junkone, 04-21-2024, 07:17 AM
|
10 responses
149 views
0 likes
|
Last Post Today, 09:03 AM |
Comment