Author Topic: Editbox & keypad  (Read 1459 times)

robkwan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Editbox & keypad
« on: July 02, 2015, 02:52:31 PM »
Why AdvancedHMI does not have an editbox/textbox control?

The basicLabel's KeypadAlpahNumeric property invokes an alphanumeric keyboard. Is a keypad available?

I would like to implement the following functions.
1) Touch a string textbox, an alphanumeric keyboard pops up.
2) Touch a numeric textbox, a numeric (no alpha) keypad pops up.

Any suggestion?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5268
    • View Profile
    • AdvancedHMI
Re: Editbox & keypad
« Reply #1 on: July 02, 2015, 03:25:28 PM »
If you have a TextBox that data can be entered through either a numeric or alphanumeric keypad, should the information only go into the text box or get written to the PLC?

If it were written to a PLC, then a BasicLabel should be able to do the same thing. In design view you would set the AlphanumericKeypad property based on whether the PLCAddressValue point to a string or a numeric value.

Let me know if I am not completely understanding correctly.

robkwan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Editbox & keypad
« Reply #2 on: July 02, 2015, 04:22:04 PM »
Yes, that works. I have to set PLCAddressKeypad and PLCAddressValue to the same holding register.
It seems the BasicLabel is updated after the data went a round trip to the PLC.
Thanks

Any tip on the numeric keypad?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5268
    • View Profile
    • AdvancedHMI
Re: Editbox & keypad
« Reply #3 on: July 02, 2015, 05:18:35 PM »
If you set AlphaNumericKeypad to False, then you will only get a numeric keypad to pop up when you click the label (as long as a valid address is in PLCAddressKeypad)