Page 1 of 1

Data Entry in ToolStripTextBox

Posted: Oct 23 2017
by HarrisonProgramming
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

Re: Data Entry in ToolStripTextBox

Posted: Oct 31 2017
by Anna MultiCharts
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.

Re: Data Entry in ToolStripTextBox

Posted: Nov 01 2017
by HarrisonProgramming
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.