Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2005
    Posts
    1,115

    Page.CreateObject() limitation?!

    I need to use Page.CreateObject() to create shape objects
    dynamically to show schedules for undermined number of halls.
    Shape object height will depend on the number of halls.

    Page.CreateObject() action seem not to be able to do so.
    Is there any particular reason for this limitation?

    For example, something like this:
    Code:
    Page.CreateObject(OBJECT_PLUGIN, "NewObject", {PluginName="Shape"});
    Never know what life is gonna throw at you.
    (Based on a true story.)

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    It would be nice to be able to create plugins as well. I use a Paragrapgh object when I need to create boxes or bars at runtime. The advantage is that it is easy to add text and make the boxes clickable. I usually have a hidden one that I copy the properties from.
    Dermot

    I am so out of here

  3. #3
    Join Date
    May 2005
    Posts
    1,115
    Well I resorted to that as well.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  4. #4
    Join Date
    May 2006
    Posts
    1,443
    You Can Create Shapes Dynamically With WinApi Action Plugin
    But You Will Need A Timer For Keep Shapes On Page Surface

  5. #5
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    This is definately not a solution to the problem, but something I've done in the past with children's color book project.

    Similiar to what Dermot mentioned, I've had multiple invisible plugin 'shapes', resized, positioned and made visible when needed. It didn't seem to affect the size of the project significantly. But in lieu of an undetermined number, you'd need to set some maximum. I don't know how much dead-weight that could add to a project.

    Dynamic shape creation would be a welcome feature...

  6. #6
    Join Date
    May 2005
    Posts
    1,115
    I think that the problem is the custom plugin properties.
    If I am correct, plugins save all of their settings in one
    line in the xml file that is also known as your project file:

    <Object>
    <Type>40</Type>
    <Name>plBack1</Name>
    <VisibleAtDesignTime>1</VisibleAtDesignTime>
    <VisibleAtRunTime>1</VisibleAtRunTime>
    <Locked>0</Locked>
    <Enabled>1</Enabled>
    <ToolTip/>
    <Cursor>0</Cursor>
    <Group>0</Group>
    <MaintainAspectRatio>0</MaintainAspectRatio>
    <Pin>0</Pin>
    <TabIndex>-1</TabIndex>
    <AutoResize>0</AutoResize>
    <Coordinates>
    <Top>84</Top>
    <Bottom>253</Bottom>
    <Left>448</Left>
    <Right>605</Right>
    </Coordinates>
    <Ratios>
    <WidthRatio>-1.000000</WidthRatio>
    <HeightRatio>-1.000000</HeightRatio>
    </Ratios>
    <Event>
    <Name>On Click</Name>
    <Args/>
    <Script/>
    <TreeStates>
    <TreeState>0</TreeState>
    <TreeState>0</TreeState>
    <TreeState>0</TreeState>
    </TreeStates>
    <BookMarks count="0">
    </BookMarks>
    </Event>
    <Event>
    <Name>On Enter</Name>
    <Args/>
    <Script/>
    <TreeStates>
    <TreeState>0</TreeState>
    <TreeState>0</TreeState>
    <TreeState>0</TreeState>
    </TreeStates>
    <BookMarks count="0">
    </BookMarks>
    </Event>
    <Event>
    <Name>On Leave</Name>
    <Args/>
    <Script/>
    <TreeStates>
    <TreeState>0</TreeState>
    <TreeState>0</TreeState>
    <TreeState>0</TreeState>
    </TreeStates>
    <BookMarks count="0">
    </BookMarks>
    </Event>
    <Actions/>
    <PLUGIN>
    <DLLFile>Shape\Shape.apo</DLLFile>
    <CustomData>1,0,2631720,1,1,16117995,7,7</CustomData>
    </PLUGIN>
    <MouseOverSndMode>0</MouseOverSndMode>
    <MouseOverSound/>
    <MouseClickSndMode>0</MouseClickSndMode>
    <MouseClickSound/>
    </Object>
    The structure of this line is unknown to the APMS.
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Page.CreateObject COMBOBOX
    By adivin in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 04-12-2006, 12:36 PM
  2. Page.CreateObject - Trigger Double Click
    By Byte in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 12-13-2005, 10:57 PM
  3. Dealing with text size limitation in paragraphs
    By Readme3x in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 10-05-2005, 06:54 AM
  4. Is there a page limitation per project?
    By mike41 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-26-2005, 08:21 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