Custom Message Dialog

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Dermot
    Indigo Rose Customer
    • Apr 2004
    • 1791

    #16
    Thank you.

    I believe that it is a failure, because autoplay media studio, when selecting "MB_OK" in Spanish sample "Aceptar".
    It is not a failure, it only supports English. AMS uses the built-in windows message box which will use what ever lanuage your computer is set to. This dll does not use the windows message box but instead creates a custom window that allows the customization like the checkbox, background colour, text etc. But I think I can add the ability to specify the text for the buttons so that you could use any language or spelling you want.

    Another question, like I can do, in the example of which it selects:

    button style: "YES_NO" and checkbox activated

    like doing so that if the user presses YES+checkbox, a value writes in the registry,

    but if the user presses NO+checkbox, another different value writes in regisyro,

    asi with all the variables? thank you very much
    It returns which button was clicked and whether the checkbox was checked or not. So if the Yes button was clicked and the checkbox was checked, it will return YES and Checked. You can do what ever you want with these, write to the registry, save to a text or ini file etc. The demo app shows how to retrieve the return values.
    Dermot

    I am so out of here :yes

    Comment

    • Solmos
      New Member
      • Aug 2006
      • 355

      #17
      Dermot thank you very much!

      now if it works the variables. if Button == "YES" then... etc

      thank you very much!!!!!

      And I wait for with many desire new .dll compatible with the Spanish language.

      thanks!

      Comment

      • SiNisTer
        Forum Member
        • Mar 2007
        • 187

        #18
        Hey Man

        I tried all your links, but they seem to be non-exitant...could you please check the links to see if they r ok??:o

        If they arent i hope you wont mind uploading them again..

        Thanks in advance

        Comment

        • Dermot
          Indigo Rose Customer
          • Apr 2004
          • 1791

          #19
          Originally posted by SiNisTer View Post
          Hey Man

          I tried all your links, but they seem to be non-exitant...could you please check the links to see if they r ok??:o

          If they arent i hope you wont mind uploading them again..

          Thanks in advance
          They all work fine for me.
          Dermot

          I am so out of here :yes

          Comment

          • RizlaUK
            Indigo Rose Customer
            • May 2006
            • 5552

            #20
            Hey Dermot, while we are on the subject of custom text in the buttons, any chance of making xDialog do the same thing (i mean in the about dialog) i want to use the about dialog to show a registration prompt and id like it to read "Register Now" rather than "Visit WebSite", and it would be cool to have all the objects do the same thing

            if that possible, id be most greatfull
            Embrace change in your life, you never know, it could all work out for the best

            Comment

            • usernameCasper
              Forum Member
              • Nov 2006
              • 306

              #21
              Very cool Dermot,
              keep up the good work ! :yes

              Comment

              • shervin
                Forum Member
                • Jun 2007
                • 14

                #22
                How can I set YES or NO button action ?

                Hello Everyone ;

                Thanks for your useful utlity. I have a question how to write action for YES and NO Button in this code :


                for example if user choose yes then exit app and if not jump to page 2



                ----------------------------------------------------------
                --------- Start of generated xDialog Message code --------
                ---- Generated by xDialog Message Builder by Roboblue ----
                ---------------- Generated on: 2007-07-24 ----------------
                ----------------------------------------------------------

                --Get the handle to the AMS window. Need to pass this to the dll
                hWnd = Application.GetWndHandle()
                --Set the title of the message box window
                sTitle = "Type Dialog Title Here"
                --Set the message to be displayed. This can be a variable that is defined elsewhere
                sMsg = "Type message text here"
                -- Set the buttons to display
                sButtons = "YES_NO"
                -- Set the icon to display
                sIcon = "ICON_NONE"
                -- If Icon is set to ICON_CUSTOM then set the path to the icon
                sIcon_File = ""
                -- Set the checkbox text. Set to NONE for no checkbox
                sCheckText = "NONE"
                -- Set the font size for the message text. Set to "" for default size
                nFont_Size = ""
                -- Set the message text font color. Set to -1 for default Windows color
                nText_Color = "-1"
                -- Set whether to make the message text font bold or not
                sFont_Bold = "NO"
                -- Set whether the hide or show the window title bar
                sHide_Title_Bar = "NO"
                -- Set the window style. NORMAL or TOOL
                sStyle = "NORMAL"
                -- Set the window background color. Set to -1 for default Windows color
                nBG_Color = -1
                -- Set the window width
                nWidth = 300
                -- Set the window height
                nHeight = 120

                -- Call the dll and pass the variables
                result = DLL.CallFunction(_SourceFolder.."\\AutoPlay\\Docs\ \xDialog_Message.dll", "Show_Msg", "\""..sTitle.."\",\""..sMsg.."\",\""..sCheckTe xt.. "\",\""..sButtons.."\",\""..sIcon.."\",\""..sI con_ File.."\",\""..nFont_Size.."\",\""..sFont_Bold.."\ ",\""..nBG_Color.."\",\""..nText_Color.."\",\" "..s Style.."\",\""..sHide_Title_Bar.."\",\""..nWidth.. "\",\""..nHeight.."\",\""..hWnd.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)

                -- Display the result
                -- If there is a "|" in the result then there was a checkbox displayed. If so then we need to get the value of the checkbox
                nPos = String.Find(result, "|", 1, false)

                if nPos == -1 then
                sClicked = result
                else
                sClicked = String.Left(result, nPos-1)
                sChecked = String.Mid(result, nPos+1, 11)
                end

                -- If required add your code here to carry out any actions based on the values of sClicked and sChecked

                ----------------------------------------------------------
                ---------- End of generated xDialog Message code ---------
                ----------------------------------------------------------

                Comment

                • spider
                  Forum Member
                  • Aug 2007
                  • 13

                  #23
                  it 's cool

                  Comment

                  • rida
                    Forum Member
                    • Nov 2008
                    • 7

                    #24
                    good work guys:yes

                    Comment

                    Working...
                    X