Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546

    The versatility of a Paragraph-Object

    I've always been a big fan of the Paragraph-Object ... it's so versatile! You can use it for so many different things. Apart from just being a paragraph on your page, you can use it as: a button, a hyperlink, an embedded-hyperlink, a frame or border, and a hotspot. And I'm sure there's more I haven't thought of.

    So, this example's for the newbies ... how to get the most out of a Paragraph-Object. Hope it's of help to somebody, somewhere!

    Commands demonstrated:
    -Page.CreateObject
    -properties tables
    -TextFile.WriteFromString
    -TextFile.ReadToString

    PS.
    If you can think of another way to use the Paragraph-Object, let's hear about it!
    Last edited by mystica; 07-31-2009 at 11:59 PM.

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    3D Text A paragraph containing white text, and behind that a paragraph containing the same text but black. The position, X and Y, + 1 pixel.

    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Code:
    local Text = [[Hey look this is animated and this example is awesome.]];
    
    for Position = 1, String.Length(Text) do
    	Paragraph.SetText("Paragraph1", string.sub(Text, 0, Position));
    	Application.Sleep(10);
    end

  4. #4
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Quote Originally Posted by ShadowUK View Post
    Code:
    local Text = [[Hey look this is animated and this example is awesome.]];
    
    for Position = 1, String.Length(Text) do
    	Paragraph.SetText("Paragraph1", string.sub(Text, 0, Position));
    	Application.Sleep(10);
    end
    Hey, that is awesome! I notice that if you set the text postion to "centre" instead of "left", it animates to both the left and right.
    Thanks Shadow ... that one's going straight to the pool-room!
    Last edited by mystica; 08-01-2009 at 07:49 AM.

  5. #5
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    An example of ShadowUK's awesome animated paragraph-object:

  6. #6
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by ShadowUK View Post
    Code:
    ...and this example is awesome.
    haha nice one indeed
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Posting Permissions

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