Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2005
    Posts
    11

    how to SetMask slider

    hi

    how to SetMask slider

    thanks

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,858
    Only objects with WindowHandle can be setMask(ed).

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

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,962
    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.

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,858
    I didn't know that!
    What other objects does you Dll support that the builtin SetMask in AMS doesn't?

    Yossi

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,962
    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

  6. #6
    Join Date
    Dec 2003
    Posts
    892
    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 at 11:40 AM.

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,962
    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 at 11:49 AM.

  8. #8
    Join Date
    Dec 2003
    Posts
    892
    Thanx WORM

  9. #9
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,962

    Caught me editing

  10. #10
    Join Date
    Sep 2005
    Posts
    11
    dear


    am asking??

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



    thanks

Similar Threads

  1. Using a slider to show audio posiion in time
    By Randy3265 in forum AutoPlay Media Studio 5.0
    Replies: 16
    Last Post: 01-07-2006, 08:34 AM
  2. Skinning the Slider
    By eric_darling in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 03-09-2005, 12:32 AM
  3. Official Release Of SetMask DLL
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 23
    Last Post: 01-24-2005, 09:00 PM
  4. Invitation to Pre-Release of SetMask DLL
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 41
    Last Post: 01-21-2005, 12:06 PM
  5. Volume Slider
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 08-13-2004, 10:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts