How to hide the maximize & minimize web-dialog button?
-
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!
-
Try setting the webdialog to a fixed size (min == max, in both x & y), with the sizable argument to false.
-
@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()
-
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... -
Maybe in the future this will be allowed...Thanks for reply!
-
You can make your webdialog a toolwindow, though : http://sketchucation.com/forums/viewtopic.php?p=280331#p280331
-
@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!
-
But it only applies on PC.
-
Indeed, I never found a way to do the same for OSX.
-
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... -
Did anyone find a way to collapse these (fake-)toolwindows by clicking on its title bar ?
-
Didn't try. Then you'd have to hook into the windows messages. yuck
Advertisement