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!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    UI.messagebox "beep"

    Scheduled Pinned Locked Moved Developers' Forum
    20 Posts 5 Posters 1.7k Views 5 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.
    • thomthomT
      thomthom
      last edited by

      What would probably make it easier to map out was to print out the binary value so we can see which bits are turned on.

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

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

        32.to_s(2) 100000 48.to_s(2) 110000 64.to_s(2) 1000000 80.to_s(2) 1010000 272.to_s(2) 100010000

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

        1 Reply Last reply
        Reply Quote 0
        • honoluludesktopH
          honoluludesktop
          last edited by

          How do I "add some constant value" to the following?
          UI:messagebox "my text "+variable, MB_OK

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

            Use the bitwise And operator to combine flags:
            Messagebox with Yes/No button and question mark icon:
            UI.messagebox('Hello World', MB_YESNO | 32)

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

            1 Reply Last reply
            Reply Quote 0
            • honoluludesktopH
              honoluludesktop
              last edited by

              WOW


              temp04.jpg

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

                The Win32 API docs helped:

                http://msdn.microsoft.com/en-us/library/ms645505%28VS.85%29.aspx

                Stop: 0x00000010 = 16
                Question: 0x00000020 = 32
                Explaination (Yellow Alert Triangle): 0x00000030 = 48
                Information (Blue Info Circle): 0x00000040 = 64

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

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

                  [16,32,48,64,80].each { |i| puts i.to_s(2).rjust(8,'0') } 00010000 00100000 00110000 01000000 01010000

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

                  1 Reply Last reply
                  Reply Quote 0
                  • Dan RathbunD
                    Dan Rathbun
                    last edited by

                    I went thru this a fee months ago or so:

                    It's a Win only thing so far as I know, but I'd like to see what happens on the Mac.

                    Here's a text report of all the integers and the resultant button styles you get. (I believe some of the icons are deprected, specifically the question icon.)

                    UI_messagebox.txt

                    I'm not here much anymore.

                    1 Reply Last reply
                    Reply Quote 0
                    • RunnerPackR
                      RunnerPack
                      last edited by

                      @thomthom said:

                      Use the bitwise And operator to combine flags:
                      Messagebox with Yes/No button and question mark icon:
                      UI.messagebox('Hello World', MB_YESNO | 32)

                      That's actually the Or operator... but you knew that 😉

                      Sorry... pedantic mode, off! 😄

                      @Dan: I've also always wondered what all the obviously-Win32-API-based things did on the Mac version... I always assumed they just translated stuff to the appropriate Mac system-calls/constants, but it would be nice to know for sure.

                      You might have noticed... I'm a bit of a ferpectionist.

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

                        @runnerpack said:

                        @thomthom said:

                        Use the bitwise And operator to combine flags:
                        Messagebox with Yes/No button and question mark icon:
                        UI.messagebox('Hello World', MB_YESNO | 32)

                        That's actually the Or operator... but you knew that 😉

                        Doh! 😳 I swear there's a little brain-gnome that intercepts and swaps words before they reach the hands...

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

                        1 Reply Last reply
                        Reply Quote 0

                        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 Login
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement