• Login
sketchucation logo sketchucation
  • Login
ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

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 25 Apr 2014, 09:08

    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 25 Apr 2014, 09:35

      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 25 Apr 2014, 11:04

        @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
        • T Offline
          tt_su
          last edited by 25 Apr 2014, 11:15

          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 25 Apr 2014, 15:36

            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
            1 / 1
            • First post
              1/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement