User Tag List

Results 1 to 4 of 4

Thread: Dynamic properties

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dynamic properties

    What's the easiest way to create/change the number of properties, like alterable values, where the user can add/delete values? Just fiddling around with mvInsertProps/mvRemoveProps? But what about the delete option of the popup and to save the dynamic number of property values in the edit data structure? And maybe also renaming the properties..

  2. #2
    Firecodemonkey

    Join Date
    Aug 2006
    Location
    London, UK
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dynamic properties

    When I want to change the properties, I remove all the properties then call the existing GetProperties function, which calls a function to generate a PropData array containing only the properties I want. It works quite well. Of course, if you only want to remove one property at a time then this isn't a particularly inefficient method, but it's fine when many properties are changing.

    As for dynamic number of property values in the edit data structure, either hard-code a limit, or allocate the memory dynamically. I don't know if rSDK has this, but if you're interested I have an SDK with these kinds of functions that I never got around to releasing...

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dynamic properties

    Thanks for the reply! I made a solution similar to yours, to use a function to create the property list.
    Do you have any thing else exciting in your SDK?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    Norway
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dynamic properties

    Jamie is working on something like that for rSDK I think it is in the svn... If not you could always add it
    Jean Villy Edberg

Similar Threads

  1. Properties Bar Vanished
    By RobTheBuilder in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 30th January 2013, 07:35 AM
  2. File Properties
    By Atom in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th May 2009, 08:57 PM
  3. Properties in Extensions
    By Jaffob in forum Extension Development
    Replies: 6
    Last Post: 1st February 2009, 11:47 AM
  4. Help with properties
    By z33z in forum Extension Developers Lobby
    Replies: 4
    Last Post: 1st March 2008, 01:26 PM
  5. Application properties
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 2nd July 2006, 12:06 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
  •