Hello,
Could you help with this question on ToolStripTextBox in MultiCharts.Net?
When we try to enter data into ToolStripTextBox, the data ends up in the Command Line instead of staying in the ToolStripTextBox. What do we need to do to keep the data entry in the ToolStripTextBox?
Attached is a test code. Version: MultiCharts .NET64 Version 11.0 Release (Build 14947).
Thank you. --Harrison
Data Entry in ToolStripTextBox
- HarrisonProgramming
- Posts: 14
- Joined: Aug 22 2012
- Location: Greater Phoenix, Arizona, US
- Has thanked: 18 times
- Been thanked: 7 times
- Contact:
- Anna MultiCharts
- Posts: 560
- Joined: Jul 14 2017
- Has thanked: 42 times
- Been thanked: 141 times
Hello, HarrisonProgramming!
Unfortunately keeping focus on the ToolStripTextBox control generated by a study is not possible. When you start typing in the ToolStripTextBox control the focus will always be automatically switched to the Command Line as it’s done in all cases when a user starts typing in an active chart window. This is because this focusing feature is not aware of the controls generated by a study as they are not stable program implemented controls.
We can suggest you using TrackBar control instead of ToolStripTextBox. You can find an example of this control in the pre-built _Chart_Toolbar_Example indicator.
Unfortunately keeping focus on the ToolStripTextBox control generated by a study is not possible. When you start typing in the ToolStripTextBox control the focus will always be automatically switched to the Command Line as it’s done in all cases when a user starts typing in an active chart window. This is because this focusing feature is not aware of the controls generated by a study as they are not stable program implemented controls.
We can suggest you using TrackBar control instead of ToolStripTextBox. You can find an example of this control in the pre-built _Chart_Toolbar_Example indicator.
- HarrisonProgramming
- Posts: 14
- Joined: Aug 22 2012
- Location: Greater Phoenix, Arizona, US
- Has thanked: 18 times
- Been thanked: 7 times
- Contact:
Hello Anna,
I understand the issue with ToolStripTextBox in MultiCharts.Net. Though TrackBar is not an ideal replacement for TextBox for entering a specific number, it is a possible solution in the mean time with proper TrackBar Min and Max selection along with a TextBox to display the value.
Thank you for your help and suggestion.
I understand the issue with ToolStripTextBox in MultiCharts.Net. Though TrackBar is not an ideal replacement for TextBox for entering a specific number, it is a possible solution in the mean time with proper TrackBar Min and Max selection along with a TextBox to display the value.
Thank you for your help and suggestion.