Home AMX User Forum AMX General Discussion

how to help pop up pages

I am just getting started with AMX an I am confused as to how to make programming in the mainframe call a popup page when a button is pushed on the TP

for instance I want tp,ch5 when pushed to call popup1 and when released (or another button pushed) to close the popup. I understand this within the TP but cant find documentation on how to make this happen from the mainline

any assistance to put me out of my misery will be appreciated

nigel

Comments

  • jjamesjjames Posts: 2,908
    To do it in code you need to send a command to the TP. So, try this:
    BUTTON_EVENT[dvTP,5]
    {
       PUSH:     // TURN ON THE POPUP
          SEND_COMMAND dvTP,"'@PPN-popup1'"
       RELEASE: // TURN OFF THE POPUP
          SEND_COMMAND dvTP,"'@PPF-popup1'"
    }
    

    For panel commands, open up Software History2 and select the panel that you have, and read through the commands.
  • pop ups code

    This seems to work ok in netlink but it gives not defined errors in axcess am I missing something?
  • Thomas HayesThomas Hayes Posts: 1,164
    The error is because "button_event" does not exist in axcess programming.

    BUTTON_EVENT[dvTP,5]
    {
    PUSH: // TURN ON THE POPUP
    SEND_COMMAND dvTP,"'@PPN-popup1'"
    RELEASE: // TURN OFF THE POPUP
    SEND_COMMAND dvTP,"'@PPF-popup1'"
    }

    try this instead.

    PUSH[dvTP,5]
    {
    SEND_COMMAND dvTP,"'@PPN-popup1'"
    }
    RELEASE[DVTP,5]
    {
    SEND_COMMAND dvTP,"'@PPF-popup1'"
    }
Sign In or Register to comment.