sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Minimize WebDialog from code?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 292 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      maricanis
      last edited by

      Hi,

      Is there some way to minimize/restore WebDialog programmatically from code?

      In my plugin, after user enter all data in the dialog and press Start, model is exported and some simulations are started. I do not close dialog, because it may be needed after calculation is finished, so it would be good that dialog is minimized while simulation is running.

      I haven't found in API appropriate function for that and no info on the forum too.

      Thanks in advance,
      Marija

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gábor
        last edited by

        You can resize it, you can position it off-screen but I do not know any method for minimizing it unless you somehow manage to trigger a mouse-click on the minimize button.

        1 Reply Last reply Reply Quote 0
        • M Offline
          maricanis
          last edited by

          @gábor said:

          You can resize it, you can position it off-screen but I do not know any method for minimizing it unless you somehow manage to trigger a mouse-click on the minimize button.

          Thanks, it seems like good solution for now.
          Resize it to really small value (so only title bar is visible), and then when calculation is finished resize it back to original size.

          Only problem is that if I want to restore original size while calculation is running, minimize/restore button restores to small window size (and not original one).

          Other ideas are welcome too,
          Marija

          1 Reply Last reply Reply Quote 0
          • tt_suT Offline
            tt_su
            last edited by

            The current API is lacking in good control over the WebDialog windows.
            Under Windows you can use the Win32API if you are familiar with the Win32 API.

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              maybe I'm missing the point...

              
                 @dlg.set_size(100,100)
                 @dlg.set_position(100,100)
              
              
              
                 @dlg.set_size(1000,1000)
                 @dlg.set_position(100,100)
              
              

              can switch between 2 sizes at the same position...

              john

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement