how to SetMask slider

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • aidamo
    Forum Member
    • Sep 2005
    • 11

    how to SetMask slider

    hi

    how to SetMask slider

    thanks
  • yosik
    Indigo Rose Customer
    • Jun 2002
    • 1858

    #2
    Only objects with WindowHandle can be setMask(ed).

    Yossi
    Last edited by yosik; 10-31-2005, 04:10 AM.

    Comment

    • Worm
      Indigo Rose Customer
      • Jul 2002
      • 3971

      #3
      The slider is a "windowed" object, but there isn't a native way within AMS to get the window handle. You could use the SetMask DLL I wrote to mask this particular object thought. If interested, follow the link in my signature.

      Comment

      • yosik
        Indigo Rose Customer
        • Jun 2002
        • 1858

        #4
        I didn't know that!
        What other objects does you Dll support that the builtin SetMask in AMS doesn't?

        Yossi

        Comment

        • Worm
          Indigo Rose Customer
          • Jul 2002
          • 3971

          #5
          Any object (except the Flash Window), as best I know, that returns a Window Handle can be masked. Whether its through v6 or my SetMask DLL.

          Let me clarify. The SetMask in AMS6 will mask the slider. The problem is that the Plugin Actions do not allow you to use GetProperties to get a Window Handle to use in the action.

          When I wrote SetMask, I didn't have the luxury of getting the window handle of the objects back in v5. I used some API calls to get the window handle (GetWindow and ChildWindowFromPoint). Ultimately, all v6 needs is the abilty to get the plugins handle (if there is one) to mask it.

          Here is a example that uses the above API calls, and v6's SetMask to mask the slider.
          Attached Files

          Comment

          • Roboblue
            Forum Member
            • Dec 2003
            • 892

            #6
            There are apparently several objects that you cant get the window properties to.
            One of the first that I noticed is the Thumb List object.
            I am using WORM's Setmask until/if there are changes made to get propeties for all windowed objects.
            I have had problems with using the internal setmask and WORM's setmask in the same project. The application setmask that is enabled in the project settings is ok, but trying to use both on objects can cause problems. Also, some times I have problems exporting a project if I use both.
            Last edited by Roboblue; 10-31-2005, 11:40 AM.

            Comment

            • Worm
              Indigo Rose Customer
              • Jul 2002
              • 3971

              #7
              Using the method I use in the example above, you would be able to use the AMS SetMask to mask the thumblist.

              Don't get me wrong, I'd rather everybody buy the DLL. That'd be cool!! But, I wouldn't feel right if I didn't share the small bit of code it takes to get the handle of the plugin object.
              Code:
              --global variable
              GW_CHILD = 5;
              
              --Get the position of the object to mask
              tblPos = Plugin.GetPos("Slider")
              
              --get the handle of the object
              --I'm using the upper left corner here, but you should use a spot that
              --is unique only to this control, or where you know it is topmost in the 
              --z-order of controls at that position
              hwndChild = DLL.CallFunction(_SystemFolder.."\\User32.dll", "GetWindow", Application.GetWndHandle()..","..GW_CHILD, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
              HWnd = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ChildWindowFromPoint", hwndChild..","..tblPos.X..","..tblPos.Y, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
              
              --set the mask using the handle
              Window.SetMask(HWnd, "AutoPlay\\Images\\630_11.png", true, 0)
              Last edited by Worm; 10-31-2005, 11:49 AM.

              Comment

              • Roboblue
                Forum Member
                • Dec 2003
                • 892

                #8
                Thanx WORM

                Comment

                • Worm
                  Indigo Rose Customer
                  • Jul 2002
                  • 3971

                  #9
                  :yes
                  Caught me editing

                  Comment

                  • aidamo
                    Forum Member
                    • Sep 2005
                    • 11

                    #10
                    dear


                    am asking??

                    any way to make or build slider from out or inner sources...



                    thanks

                    Comment

                    Working...
                    X