sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Toolbar Win vs Mac

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 2 Posters 319 Views 2 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.
    • B Offline
      bluetale
      last edited by

      Hello!

      I've discovered a different behaviour of my toolbar buttons on windows and on mac.
      When I press my toolbar-button on windows, the button 'jumps' back and on mac the button keeps pressed.
      I have tried to use the .set_validation_proc method to get the same behaviour on both systems, but my solutions don't work. How do I have to manipulate the .set_validation_proc method the get the same toolbar-button-behaviour on mac as on windows-systems?

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

        What does the button do? activate a Tool?

        Are you sure the difference isn't just some OS specific differences in the way the UI behaves?

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

        1 Reply Last reply Reply Quote 0
        • B Offline
          bluetale
          last edited by

          I try to describe my problem:

          I have 3 buttons and each one represents a tool. Now I want the same behaviour as the standard-sketchup toolbar, so that only one tool can be activated at one time. (the button of the selected tool should be pressed)
          My solution works only on windows, where I use the flags mf_checked and mf_unchecked in the .set_validation_proc method.

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

            What I see under Windows is:
            If a toolbar button activates a Tool - then the button is pressed until the Tool session ends
            If a menu activates a Tool - there is a checkbox next to the menu item until the Tool session ends.

            And this is done automatically by SU without use for validation procs...

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

            1 Reply Last reply Reply Quote 0
            • B Offline
              bluetale
              last edited by

              @thomthom said:

              And this is done automatically by SU without use for validation procs...

              Ok, so I better forget my validaction proc tries.
              Another question related to this topic:
              Is there a way to keep one of my tools active when I select e.g. the paint bucket tool?

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

                No. You can stack your own Ruby Tools - but you can't stack the native ones unfortunately.
                You've have to recreate the tool.

                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