sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Shift WebDialog Focus to SU?

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 4 Posters 715 Views 4 Watching
    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.
    • J Offline
      Jim
      last edited by

      How would I make a WebDialog change the focus to the main SU window after a user clicks on something in the dialog?

      Hi

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        hmm... A Win32 API call on the PC maybe? Then, something else on the Mac..?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • AdamBA Offline
          AdamB
          last edited by

          Would closing the dialog work to transfer focus to the parent (SU) window?

          Developer of LightUp Click for website

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            Yeah, that's what I thought. Thanks guys.

            Hi

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              EDIT: Maybe it's not important... If I select a Tool in the Dialog, move to the SU drawing area - even if the dialog still has focus, the selected tool still appears to be active using inferencing et.al.

              Hi

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                Don't think you can control the focus of anything outside the HTML page from JavaScript.

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  Something like

                  onfocus="this.blur()"
                  

                  ?

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • AdamBA Offline
                    AdamB
                    last edited by

                    And rightly so. Its a basic tenet of UI design that users choose where to focus.

                    And I guess a corollary of that is you might ask yourself if this is the best approach.. ie don't let it become of feat of engineering and lose sight whether its such a hot idea to be pinging the focus automagically around..

                    Adam

                    Developer of LightUp Click for website

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      @adamb said:

                      And rightly so. Its a basic tenet of UI design that users choose where to focus.

                      And I guess a corollary of that is you might ask yourself if this is the best approach.. ie don't let it become of feat of engineering and lose sight whether its such a hot idea to be pinging the focus automagically around..

                      Adam

                      Such as SU bouncing focus back to toolwindows when you undo operations..? grumble

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • AdamBA Offline
                        AdamB
                        last edited by

                        @thomthom said:

                        Such as SU bouncing focus back to toolwindows when you undo operations..? grumble

                        But thats correct behavior if I unwind an operation to just before the Tool was used..No?

                        Just becomes others are inconsistent doesn't mean you have to stoop to that too! You're better than that.. 😄

                        Adam

                        Developer of LightUp Click for website

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @adamb said:

                          But thats correct behavior if I unwind an operation to just before the Tool was used..No?

                          Nah. Not IMO. I find it very annoying. I want to keep the focus on the viewport.

                          Thomas Thomassen — SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

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

                          Advertisement