Webdialog and input box
-
I have a problem with displaying a webdialog and an input box at the same time. The web dialog shows a diagram which gives guidance on how to fill in the input box. So the web dialog is opened first followed by the input box. I can position the web dialog box but wherever it is the input box opens over it which is far from ideal. Is there a way of fixing the positions of both boxes so that they are not ontop of each other?
Also, the web dialog is opened in a def prior to the input box but I cannot then close the webdialog programmatically.
ThanksAndrew
-
Hi Andrew, what operating system are you using? And is this a plugin that you are using that does this?
-
Hi Chris,
Windows 7.
Yes it is a plugin that I am developing in Ruby for use with Sketchup. -
A (native) inputbox is always modal. I just tried it out, it opens in the center of the last active SketchUp window. While a modal dialog is active, changes to other SketchUp windows are not possible (even programmatically, ie.
webdialog.set_position(100,100)).We should emphasis again on the feature request to control window focus (we can bring a webdialog to the front, but not remove focus or focus the SketchUp main window).
Is
[Sketchup.set_status_text](http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup#set_status_text)sufficient for your purpose, or can you put the input into the webdialog (or into another, not modal webdialog)? -
You have confirmed my fear that a simple issue compromises what I can do. Unless there is a way to put an image into an input box it looks as if I will have to put the input which has about a dozen data items into the webdialog.I will have to master pushing data back to Ruby from the Webdialog.
Thanks
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 LoginAdvertisement