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

Is it possible to extend UI.inputbox?

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 569 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.
  • D Offline
    DerekEhrman
    last edited by 17 Jun 2008, 21:47

    I'm assuming the answer here is to use WebDialog. However, there are only one or two things I would like to modify about the UI.inputbox and I have no javascript or DHTML experience so there would be time involved for me to ramp up on that stuff to make the WebDialog at all useful.

    Perhaps some specifics are in order:

    I would like to be able to modify the buttons and their functionality on an inputbox. So, instead of the standard OK and CANCEL buttons I would like to have Apply and Cancel buttons. The underlying functionality would be the same for the Cancel button, but on Apply I would simply like to perform some actions in my plugin, but allow the inputbox to remain open.

    I would also like it to be non-modal so that I can select various objects in the scene (and of course fields in the input box would need to update based on the active_model's attributes 😄). Are things like this even possible? The docs for the UI.inputbox don't appear to suggest that they are, but I'm hoping to avoid having to use WebDialog for the time being unless absolutely necessary.

    Thanks in advance for any advice/insight

    1 Reply Last reply Reply Quote 0
    • T Offline
      todd burch
      last edited by 17 Jun 2008, 21:49

      You can't extend it. Post what you want it to look like and I'll create a webdialog for you.

      Todd

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 17 Jun 2008, 22:36

        Yeah, you're going to have to use a WebDialog to get the functionality you want. Since you're asking about UI.inputboxen, you must have already been looking through the API. WebDialogs really aren't too bad. Have a look at this article on the SketchUp API Blog.

        Hi

        1 Reply Last reply Reply Quote 0
        • D Offline
          DerekEhrman
          last edited by 18 Jun 2008, 01:12

          Todd: I sincerely appreciate the offer but must decline for a number of reasons. Besides, what's the fun in having someone else do it for me when I now have an excuse to pick up javascript and DHTML? 😄 This is for a propietary in-house plugin so it would also be slightly unethical for me to just take someone elses code, freely offered or not. But again, thank you for the generosity!

          Jim: thanks for the link, that looks like a great place to get me started!

          If I have questions along the way it seems this is a good place to ask, glad I've found it!

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

          Advertisement