• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

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

Scheduled Pinned Locked Moved Developers' Forum
12 Posts 5 Posters 896 Views
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.
  • R Offline
    renderiza
    last edited by 28 Sept 2013, 00:32

    Hi,

    I opened the extension warehouse web-dialog in SketchUp and I noticed it only showed the close button at the top right corner of the web-dialog...How can I not show maximize & minimize buttons?

    Thanks in advance!

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

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 28 Sept 2013, 03:48

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

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • R Offline
        renderiza
        last edited by 28 Sept 2013, 06:35

        @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
        • T Offline
          TIG Moderator
          last edited by 28 Sept 2013, 10:54

          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
          • R Offline
            renderiza
            last edited by 28 Sept 2013, 17:52

            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
            • J Offline
              jiminy-billy-bob
              last edited by 28 Sept 2013, 20:53

              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
              • R Offline
                renderiza
                last edited by 28 Sept 2013, 23:32

                @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
                • D Offline
                  Dan Rathbun
                  last edited by 29 Sept 2013, 14:15

                  But it only applies on PC.

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tt_su
                    last edited by 30 Sept 2013, 08:51

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

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 30 Sept 2013, 10:12

                      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
                      • J Offline
                        jiminy-billy-bob
                        last edited by 2 Oct 2013, 18:42

                        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
                        • T Offline
                          tt_su
                          last edited by 3 Oct 2013, 09:29

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

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

                          Advertisement