AdvancedHMI Software
General Category => Support Questions => Topic started by: blaisbb on February 28, 2019, 08:53:29 AM
-
I am trying to write a number in a textbox and would like to have a dash.
ex: 92000-001
I noticed that the MfgControl.AdvancedHMI does not have a dash but that the keypad that comes up in the application when a value on a basic label needs to be changed does have a dash.Can I have that basic label keypad come up for a standard textbox.
-
Keypad can only do numeric values. Your number would actually be a string. You would need to set KeypadAlphanumeric to true. Or use the MfgControl.AdvancedHMI.Controls.AlphaKeyboard
-
I have set up the textbox to show the MfgControl.AdvancedHMI.Controls.AlphaKeyboard on click. It then returns the typed in value to the text box. If I click on the textbox with text already there, the MfgControl.AdvancedHMI.Controls.AlphaKeyboard clears the data and I have to retype the entire number. Can I have the MfgControl.AdvancedHMI.Controls.AlphaKeyboard show the current textbox value for editing?
-
I have set up the textbox to show the MfgControl.AdvancedHMI.Controls.AlphaKeyboard on click. It then returns the typed in value to the text box. If I click on the textbox with text already there, the MfgControl.AdvancedHMI.Controls.AlphaKeyboard clears the data and I have to retype the entire number. Can I have the MfgControl.AdvancedHMI.Controls.AlphaKeyboard show the current textbox value for editing?
Before showing the keyboard, set the value property:
Dim kbd As New MfgControl.AdvancedHMI.Controls.AlphaKeyboard
kbd.Value = "123"
kbd.ShowDialog()
-
That's got it working.
Thanks Archie. :)