Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    16

    Object Expansion & Contraction

    I have been looking at an example object expansion and contraction from mina-e.com and was wonder if the same principle can be applied to a label object to increase and decrease the font size. here is the code for the image object expansion:

    Size = Image.GetSize("Image1");
    Image.SetSize("Image1", Size.Width + 10, Size.Height + 10);
    -- Get the size once again, just to be safe
    View = Image.GetSize("Image1");
    Paragraph.SetText("Paragraph1", "Size Of The Image \r\n".."\r\n".."Height: "..View.Height.."\r\n".."Width: "..View.Width);

    Contraction:

    Size = Image.GetSize("Image1");
    Image.SetSize("Image1", Size.Width - 10, Size.Height - 10);
    -- Get the size once again, just to be safe
    View = Image.GetSize("Image1");
    Paragraph.SetText("Paragraph1", "Size Of The Image \r\n".."\r\n".."Height: "..View.Height.."\r\n".."Width: "..View.Width);

    If anyone can point me to an example to do this for the text in a label object would greatly help me out alot. THANKS

  2. #2
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Hi airwv,
    Try this

    Code:
    -- Expansion
    Size = Label.GetSize("Label1");
    Label.SetSize("Label1", Size.Width + 10, Size.Height + 10);
    -- Get the size once again, just to be safe
    View = Label.GetSize("Label1");
    Paragraph.SetText("Paragraph1", "Size Of The Label \r\n".."\r\n".."Height: "..View.Height.."\r\n".."Width: "..View.Width);
    
    -- Contraction
    Size = Label.GetSize("Label1");
    Label.SetSize("Label1", Size.Width - 10, Size.Height - 10);
    -- Get the size once again, just to be safe
    View = Label.GetSize("Label1");
    Paragraph.SetText("Paragraph1", "Size Of The Label \r\n".."\r\n".."Height: "..View.Height.."\r\n".."Width: "..View.Width);

  3. #3
    Join Date
    Jul 2006
    Posts
    16
    wow, THANKS Mina! Exactley what i was wanting it to do! THANKA THANKA

Similar Threads

  1. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  2. INFO: Difference between the Media Player Object and the AVI Object
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 02:15 PM
  3. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  4. TUTORIAL: Showing and Hiding Objects in AutoPlay Menu Studio 3.0
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 02:39 PM
  5. Replies: 0
    Last Post: 10-04-2002, 10:09 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