# Integrating Html Dialog

**URL:** <https://forums.sketchup.com/t/integrating-html-dialog/95119>\
**Category:** Feature Requests\
**Created:** [May 10, 2019, 10:45am UTC](https://forums.sketchup.com/t/integrating-html-dialog/95119 "2019-05-10T10:45:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmiro](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@nmiro](https://forums.sketchup.com/u/nmiro)\
**Post date:** [May 10, 2019, 10:45am UTC](https://forums.sketchup.com/t/integrating-html-dialog/95119/1 "2019-05-10T10:45:30Z")

</div>

It would be interesting the possibility of integrate your html dialog on the default tray (or not inside default tray but the possibility of integrate it on the right side of the Sketchup). I think it’s too annoying having two different windows (sketchup, and htmldialog)… It’s would be nicer and easier if it were only one.  
What do you think?

---

<div class="post-metadata">

**Author:** ![eneroth3](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/eneroth3/32/1222_2.png) [@eneroth3](https://forums.sketchup.com/u/eneroth3)\
**Post date:** [May 10, 2019, 11:38am UTC](https://forums.sketchup.com/t/integrating-html-dialog/95119/2 "2019-05-10T11:38:06Z")

</div>

A lot of people want this but unfortunately it cannot be done (as of now). You can however submit an issue for this in the [SketchUp API Issue tracker](https://github.com/SketchUp/api-issue-tracker/issues) (or upvote the existing issue if there is one).

---

<div class="post-metadata">

**Author:** ![Aerilius](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Aerilius](https://forums.sketchup.com/u/Aerilius)\
**Post date:** [May 10, 2019, 12:19pm UTC](https://forums.sketchup.com/t/integrating-html-dialog/95119/3 "2019-05-10T12:19:39Z")

</div>

I think it would be nice, too. When using SketchUp fullscreen (e.g. on notebooks) it makes the user interface clean and well-arranged. For example Inkscape and GIMP revamped their Gtk+3 UIs and moved content into trays.

However, there are two very different cases:

- **Dialog windows** which the user closes after finishing interaction and before getting back to the model (thus called _“dialog”_). It must be obvious to the user where it is located and that interaction is required (confusing when it appears somewhere in a tray like in Inkscape). In most of these cases, it would be _modal_ anyways (to block interaction with the parent window).
- **Perpetual windows** where the user must interact with both the model and the window over a period of time, to inspect information or change/experiment with settings.

Some more thoughts:

- Size constraints: Floating webdialogs/htmldialogs are only limited by screen size (although some developers don’t consider this), the tray **size is limited** and requires some more thought about UI design patterns. Of course one could use responsive layouts and when necessary view stacks (like mobiles with “back navigation”).

- Better management of tray windows:

- Changed **focus** behavior: For htmldialog developers, it usually was a challenge to get cursor/keyboard events in the viewport when a floating window is opened. If the window content is integrated in the tray, focus is not anymore determined by the focussed window, but the focussed widget within the main window (which can be the correct one in the tray, or unexpectedly another widget).
