Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: Project masking

  1. #1
    Join Date
    Feb 2003
    Posts
    5

    Project masking

    Is there a way to:
    1. Have my main opening page contain an image mask.
    2. When links are clicked the image mask is removed and a new page is opened.
    3. When new page is exited to main page the image is once again masked.

    Or...maybe I am making this too difficult for myself. What I am trying to do is have the opening page displayed as an irregular shaped object with links to non-irregular shaped pages or objects. I just can't seem to find a script that will allow me to change the project settings (mask) feature. Can this be accomplished with the record macro feature? and if so...how?

    Thanks in advance!

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    You can use the Window.SetMask() action to do that.

    From the help file:
    Window.SetMask (
    number WindowHandle,
    string MaskFile,
    boolean FitToWindow = true,
    number TransparentColor = 0 )


    Description
    Applies an image mask to the specified window. This allows you to change the shape of your application's window at runtime.

    Note: On Windows 9x systems, this action will only work on AutoPlay created windows at runtime. This means masks cannot be applied to any windows belonging to other programs on Windows 9x systems.

    Tip: You can use this action to change the shape of certain objects which are actually windows within your autoplay application. The following objects are technically windows within your application: Video, Flash, ComboBox, ListBox, Input, Tree, Progress, and Web. You can get the window handles for any of these objects by using their respective GetProperties actions.

    Parameters
    WindowHandle
    (number) The integer value that represents the specific window on the user's desktop. (Commonly referred to as an hWnd.)

    MaskFile
    (string) The path to the file to be used as the window mask.

    Tip: Pass an empty string ("") as MaskFile to clear the window mask.

    FitToWindow
    (boolean) True if the mask file should be resized to match the dimensions of the window, false if it should not be. The default is true.

    TransparentColor
    (number) The decimal value of the color to use as the transparent color for your window mask. The default is 0 (black). Click the select button to bring up a color chooser.

    Note: We recommend using black (0) as your window mask transparent color for ease of use. As well, always using the same color for all of your masks ensures compatibility.

    Tip: You can calculate the decimal value of your transparent color from its hex value using the Math.HexColorToNumber action.

    Returns
    Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
    Dermot

    I am so out of here

  3. #3
    Join Date
    Feb 2003
    Posts
    5
    Thank you so much for taking the time to reply. This seems to be my answer, however, in going back to main page, even after setting the mask value to null ("") the widow retains the previous masked value. It's probably me so I need to review more carefully.

    Thanks again

Similar Threads

  1. Saving a Backup Copy of Your Project
    By Adam in forum Autorun MAX! 2.1 FAQ
    Replies: 0
    Last Post: 08-29-2006, 12:51 PM
  2. Status of project when doing a backup
    By yosik in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 05-01-2005, 12:46 AM
  3. HOWTO: Open a Version 3.0 Project in Version 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 02:09 PM
  4. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  5. INFO: Recovering a Project File From a Built Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 08:44 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