Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 8 1 2 3 ... LastLast
Results 1 to 15 of 114
  1. #1
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150

    Lightbulb Example: Resize Runtime

    Attached is a sample project that will allow your AutoPlay Media Studio 6.0 runtime to be resized dynamically at runtime. To apply this example to your project follow these steps:

    1) Copy the contents of the "Global Functions" section of the sample project to the same location in your project.
    2) On each page in your project you must add the following function calls to the appropriate events:

    On Preload:
    Resize_OnPreLoad();

    On Close:
    Resize_OnClose();

    On Size:
    Resize_OnSize(e_PageWidth,e_PageHeight);

    3) You must enable the "Resizable" option under Project -> Settings.

    Adam Kapilik
    Attached Files

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Adam, I'm surprised that you ddin't get any responses to this. It's a really sweet template, thanks!

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Thanks Ron. must appreciated

    Adam Kapilik

  4. #4
    Join Date
    Feb 2001
    Location
    Washington State
    Posts
    120
    This is awesome! It works splendidly! Thank you!

  5. #5
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    74
    hi adam,
    i apply your example to my project, and get the following errors:

    on starting the application

    "On Preload, Line 134: Argument 1 must be of type table."
    which ist this line
    for i = 1, Table.Count(Objects) do

    if i klick ok, the application starts
    if i jump to the next page i get the error:

    "On Preload, Line 239: attempt to index global 'tblProps' (a nil value)"
    which is this line
    if tblProps.ObType == OBJECT_BUTTON then

    after klicking on ok it jumps to this page but is not displaying anything.

    by jumping to the next page i get the error:

    "On Close, Line 65: attempt to index global 'tblPos' (a nil value)"
    which is this line
    if tblPos.ObType == OBJECT_BUTTON then

    and again the error:
    "On Preload, Line 239: attempt to index global 'tblProps' (a nil value)"

    an so on

    any suggestions on that problem?

    byte

  6. #6
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Check your "Page Actions" for exact spelling/case

  7. #7
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    74
    i copyed everything out of adam's example. add the functions on each page and checked it again. it's all there, but i still get these errors

    byte

  8. #8
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Can you post the project?

  9. #9
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    74
    i don't think so, the project is over 5 mb big.

    but never mind, i just don't use the resize in my project.

    thanks alot anyway for help

    byte

  10. #10
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    FWIW the project works perfectly on my end too.

  11. #11
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Yeah, it works flawlessly for me too and I have many objects on the page(s). byte, I had your symptoms by simply misspelling a function call. Never give up the ship!

  12. #12
    Join Date
    Feb 2001
    Location
    Washington State
    Posts
    120
    Hey, Byte,
    There is some script in "Project > Global Functions..." that makes the whole thing work. Did you copy that part to your project?

  13. #13
    Join Date
    Feb 2001
    Location
    Washington State
    Posts
    120
    By the way, just want to say thanks again for this example: it really opened my eyes to the possibilities of global functions. I'm still learning all this scripting, and I was thinking I'd have to go to each object and put this resize stuff on each one individually. From now on I'm going to always ask: How can I do this globally (read: quickly and easily)? Thanks, Adam, for the big bump on the head!

  14. #14
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Yes, Global Functions are definitely the way to go. Modular code rules. It's the key to designing projects which can be easily modified/upgraded. I put almost all of my code in the Global Functions area these days... Very easy to work with too, custom functions are incredibly simple to work with yet super powerful.

  15. #15
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    74
    hi pjborg,

    yes i did copy the whole part to my Project > Global Functions. that's exactly where i am getting my errors from. when it calls the

    On Preload:
    Resize_OnPreLoad();

    the error "On Preload, Line 134: Argument 1 must be of type table." is line 134 in Global Functions.

    after i finish some other stuff in my project, i will go through these global functions again.

    byte

+ Reply to Thread
Page 1 of 8 1 2 3 ... LastLast

Similar Threads

  1. On Resize min-max App runtime Height Tweak
    By Eagle in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 04-08-2006, 11:07 PM
  2. INFO: Microsoft Data Access Components 2.8 Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:20 AM
  3. INFO: Visual C++ 6.0 (SP4) Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 12:53 PM
  4. INFO: DCOM 95 1.3 Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 12:38 PM
  5. INFO: MDAC 2.7 Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 03:55 PM

Tags for this Thread

Posting Permissions

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