In the designer its possible to set the Max Value of editable text (with Is Number Editor on). Unfortunately it doesn't allow setting this value programatically. Does anyone know a workaround for this? Or, alternatively, Cherry Audio, is this a feature you could add?
Regards
Tobias
Editable Text Max Value
-
- Posts: 49
- Joined: Sun Aug 25, 2019 10:26 am
Re: Editable Text Max Value
In VoltageModularDesign v2.0.25, an Editable Text control (aka a VoltageLabel) has min and max settings under the "Is Number Editor" checkbox. In the generated code, there is a method call that sets the range:
The SetNumberEditorRange can also be called in methods to change the upper/lower range.
Is that what you were after?
Code: Select all
editableText1.SetIsNumberEditor( true );
editableText1.SetNumberEditorRange( 0, 101 );
editableText1.SetNumberEditorInterval( 1 );
Is that what you were after?
-
- Posts: 74
- Joined: Mon Jan 28, 2019 5:51 am
Re: Editable Text Max Value
Yes! Thats what I’m after, will give it a try, thanks for the help!