Popup Up Window, Resize and Move with mouse?

rickj
2020-11-19
2021-10-11
  • rickj - 2020-11-19

    Client and I are making great use of popup dialogs to show additional information and for entering configuration and tuneup data. I'd like to take this technique to the next level where the end user would be able to drag a popup to a convenient location so it's not blocking critical information on the main screen behind.

    This can be very useful, in that instead of cluttering a given screen with as much as possible, one could simply provide and over view widget (i.e. some combination indicators) which when clicked could popup details that could remain. This would require that the operator have the ability to reposition and resize the window as desired/required.

    I have not found a way of obtaining realtime mouse data nor a way of writing such data to position and scale properties of the window such that it would be redrawn at the new location.

    Please let me know if this is possible. If not please add this to some kind of wish list as it would be very useful to all codesys users/customers.

     
    πŸ‘
    1
  • m.prestel - 2020-11-19

    Moving dialogs is planned for one of the next releases.

     
    πŸ‘
    2
    • ojz0r - 2021-08-26

      Is there any ETA for this feature?
      I'm trying to create templates for different control objects (like motors, valves etc) with a popup dialog faceplate to control the object, it would be very nice to be able to move them around instead of having fixed positions.

       
      • m.prestel - 2021-08-26

        As of today, moving dialogs is part of the 4.1.0.0 visualization release.
        This release contains the support for moving dialogs in the webvisualization.
        For the targetvisualization you have to wait for 3.5 SP18 release.

        The release for visualization 4.1.0.0 is currently planned for october 2021.

        Best regards,
        Marcel

         
        πŸ‘
        1
        • ojz0r - 2021-08-26

          Thank you for your quick answer Marcel.
          Great to hear that it will soon be here.

           
        • rmaas - 2021-10-11

          i'm using codesysy 3.5.17.10 with visualization package 4.1.0.0 but cannot find the option to move dialogs in webvisualization.

          Can you confirm if this is possible now?

          BR,
          Rinie

           
          • m.prestel - 2021-10-11

            Hey,
            yes it is part of the 4.1.0.0 visualization, but requires the option "Support client animations and overlay of native elements" to be checked.

            Best regards,
            Marcel

             
            πŸ‘
            1
            • rmaas - 2021-10-11

              Thanks Marcel, it is working now

              BR,
              Rinie

               
  • rickj - 2020-11-19

    Thanks for the quick reply. That's great news and will be anxiously awaiting for this feature.

     
  • rickj - 2020-11-19

    Thanks for the quick reply. That's great news and will be anxiously awaiting for this feature.

     
  • bubulindo - 2021-01-02

    Care to point me in the direction of any information on how to create pop ups?

     
  • rickj - 2021-01-02

    Create a visualization object and set its properties to "Dialog"
    Create a button, InputConfiguratioin=>OnMouseDown=>OpenDialog

     
  • bubulindo - 2021-01-03

    Fantastic!! Thanks!!!

     
  • bubulindo - 2021-08-07

    So I've started playing with dialogs, but am getting a bit frustrated as I can't seem to get them to work with my VAR_IN_OUT.

    Essentially, the dialog is has a start, Stop and Close button. And the interface to the visualisation is a UDT with Start, Stop and Running.

    I placed the button action to toggle variable and these appear available so I linked them, but when operating the button, it really doesn't do anything to the variables.

    Any idea what I may be doing wrong, here?

     
  • bubulindo - 2021-08-08

    Found it... It's not immediate unless passed as a pointer with:

    {attribute 'VAR_IN_OUT_AS_POINTER'}

     
    πŸ‘
    1

Log in to post a comment.