Cycle Custom Class and setting value array in new method
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    Hi!
    I created a private cycle custom class with MUI create custom class (subclassing it from cycle).
    Then i create an object with NewObject((mymcc)->mcc_Class, NULL, TAGDONE);
    If i start this way the program crashes.
    If i write this:
    NewObject((mymcc)->mcc_Class, NULL, MUIA_Cycle_Entries, myarray, TAGDONE);
    it's ok.
    But if i want to fill cycle gadget values with an external array (or even with one taken from the data area) i.e. in new method?
    I tried with a set (obj, MUIA_Cycle_Entries, myarray); but it does nothing.
    How can i do if i would like to "set" it at new time?
    Thank you!

    [ Edited by rebraist 02.03.2012 - 20:59 ]
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »02.03.12 - 20:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 511 from 2003/2/25
    From: France
    MUIA_Cycle_Entries is an attribute not settable afair.

    Also, Cycle Object list items are not meant to be dynamically updated (ie : read static list only).

    If you need to update a list of item dynamically, better go for more suitable objects like List for example.

    ++
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »03.03.12 - 08:57
    Profile Visit Website
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    thank you!!
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »03.03.12 - 09:02
    Profile