Data Entry in ToolStripTextBox

Questions about MultiCharts .NET and user contributed studies.
User avatar
HarrisonProgramming
Posts: 14
Joined: 22 Aug 2012
Location: Greater Phoenix, Arizona, US
Has thanked: 18 times
Been thanked: 7 times
Contact:

Data Entry in ToolStripTextBox

Postby HarrisonProgramming » 23 Oct 2017

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
Attachments
_PL_ToolStripTextBox_Test100.pln
(2.73 KiB) Downloaded 524 times

User avatar
Anna MultiCharts
Posts: 560
Joined: 14 Jul 2017
Has thanked: 42 times
Been thanked: 141 times

Re: Data Entry in ToolStripTextBox

Postby Anna MultiCharts » 31 Oct 2017

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.

User avatar
HarrisonProgramming
Posts: 14
Joined: 22 Aug 2012
Location: Greater Phoenix, Arizona, US
Has thanked: 18 times
Been thanked: 7 times
Contact:

Re: Data Entry in ToolStripTextBox

Postby HarrisonProgramming » 01 Nov 2017

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.


Return to “MultiCharts .NET”