Enable Numpad with ST

dgirard
2020-08-07
2020-08-10
  • dgirard - 2020-08-07

    Hi everyone

    Is there any way to pop up a numpad on screen with ST?

    Pseudo code:

    If Boolean = true then
    numpadEnable = true; //make numpad appear on screen for user to enter data
    End_if

    If this is possible, how do I assign which variable the numpad should write to?

    Thanks in advance!

     
  • Morberis

    Morberis - 2020-08-07

    I don't know how to do that unfortunately. However what you can do is place a Numpad on the visualization that you want by using the visualization toolbox if you have the VisuDialogs library in your project. You can then use the State Variable to toggle it between visible and invisible. You could also put it on a visualization page and have the current visualization change to that page by using the VisuElems.CurrentVisu variable. You write the name of the visualization page you want to be displayed to that variable. There are a few other ways to get similar functionality.

    For me I write 'Home_Page' to VisuElems.CurrentVisu when I physical button is pushed. Then a series of on screen prompts guides the worker through the steps they need to do.

     
  • m.prestel - 2020-08-10

    Hey,
    could you please describe what you want to do?

    Best regards,
    Marcel

     
    • dgirard - 2020-08-10

      I am looking to update values in a table by simply clicking on a valid cell and having a number pad pop up for user input.

      Any ideas on how to do this? Currently I am using some cell selection values and a separate button to enable and disable a numpad. However I would like to have the numpad pop up automatically every time a new cell is selected...

       
      • dgirard - 2020-08-10

        Nevermind, I just thought of how I am able to accomplish this:

        I will just use a variable in ST to toggle the visibility of the numpad and a global variable to take in the input of the numpad. I will then use ST to assign the values of the numpad to the correct variables...

         

Log in to post a comment.