sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    How to hide the maximize & minimize web-dialog button?

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 5 Posters 1.4k Views 5 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.
    • renderizaR
      renderiza
      last edited by

      @dan rathbun said:

      Try setting the webdialog to a fixed size (min == max, in both x & y), with the sizable argument to false.

      Hi, thanks for respond...bellow is what I tried but the max & min button are still showing. πŸ˜•

      dialog = UI;;WebDialog.new("Test", false, "Test", 420, 500, 400, 400, false)
      
      dialog.set_size(420, 500)
      dialog.max_width = 420
      dialog.min_width = 420
      dialog.max_height = 500
      dialog.min_height = 500
      
      dialog.set_file(file)
      dialog.show()
      
      

      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

      1 Reply Last reply
      Reply Quote 0
      • TIGT
        TIG Moderator
        last edited by

        The EW is NOT a 'normal' webdialog.
        Our paltry webdialogs will show the PC top-bar 3 buttons [although on MAC I think you can hide them ?]
        As Dan says - setting the webdialog's height's max and min to the same pixel values and then the same for the width's max and min, will then make it a fixed size - so the user can NOT drag out its edges to resize it. The top-bar 3 buttons will always display: when clicked they will still close it, minimize it etc...

        TIG

        1 Reply Last reply
        Reply Quote 0
        • renderizaR
          renderiza
          last edited by

          Maybe in the future this will be allowed...Thanks for reply! πŸ‘

          [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

          1 Reply Last reply
          Reply Quote 0
          • jiminy-billy-bobJ
            jiminy-billy-bob
            last edited by

            You can make your webdialog a toolwindow, though : http://sketchucation.com/forums/viewtopic.php?p=280331#p280331

            25% off Skatter for SketchUcation Premium Members

            1 Reply Last reply
            Reply Quote 0
            • renderizaR
              renderiza
              last edited by

              @jiminy-billy-bob said:

              You can make your webdialog a toolwindow, though : http://sketchucation.com/forums/viewtopic.php?p=280331#p280331

              This might be the answer for making better looking web-dialogs!...Thanks! πŸ‘

              [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

              1 Reply Last reply
              Reply Quote 0
              • Dan RathbunD
                Dan Rathbun
                last edited by

                But it only applies on PC.

                I'm not here much anymore.

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

                  Indeed, I never found a way to do the same for OSX. 😞

                  1 Reply Last reply
                  Reply Quote 0
                  • TIGT
                    TIG Moderator
                    last edited by

                    You could perhaps make an 'ordinary' very small webdialog located 'off-screen' [-ve XY ?].
                    Then run all of the tool's input/output through a js generated 'popup window' - which you can then style to suit your wishes using some clever js and css ?
                    Urm... how to get it to appear mid-screen when the parent is off-screen [just some convoluted math ?] ??
                    Just idle musings, not tested at all... πŸ˜’

                    TIG

                    1 Reply Last reply
                    Reply Quote 0
                    • jiminy-billy-bobJ
                      jiminy-billy-bob
                      last edited by

                      Did anyone find a way to collapse these (fake-)toolwindows by clicking on its title bar ?

                      25% off Skatter for SketchUcation Premium Members

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

                        Didn't try. Then you'd have to hook into the windows messages. yuck

                        1 Reply Last reply
                        Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better πŸ’—

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement