Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: Sizing

  1. #1
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629

    Lightbulb Sizing

    I tried using the following during runtime:
    -----------------------------------------
    cS = Window.GetSize(Application.GetWndHandle());
    mS = Plugin.GetSize("MediaPlayer");
    ww = cS[1] + "10"
    hh = cS[2] + "10"
    Window.SetSize(Application.GetWndHandle(), ww, hh);
    www = mS[1] + "10"
    hhh = mS[2] + "10"
    Plugin.SetSize("MediaPlayer", www, hhh);
    -----------------------------------------

    Why won't it work ?

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. You are putting the number 10 in quotations, so it gets treated as a string instead of a number. Simply remove the quotation marks, i.e.:

    ww = cS[1] + 10;


  3. #3
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Quote Originally Posted by Corey
    Hi. You are putting the number 10 in quotations, so it gets treated as a string instead of a number. Simply remove the quotation marks, i.e.:

    ww = cS[1] + 10;

    It gives me an error:
    ------------------------------------
    attempt to perform arithmetic on field '?' (a nil value)
    ------------------------------------

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Here's a working example of what you appear to be attempting, attached. It uses this code:

    winSize = Window.GetSize(Application.GetWndHandle());
    Window.SetSize(Application.GetWndHandle(), winSize.Width + 10, winSize.Height + 10);

    Attached Files

  5. #5
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Vollkommen, which means "Perfect" in german

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hee.

Similar Threads

  1. KB: Sizing Application to Specific Dimensions
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-04-2004, 07:41 AM
  2. Sizing Graphics Files
    By Stan Berlin in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 02-25-2001, 05:09 PM

Posting Permissions

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