Previous values in Dialog's Command

  • On 17/06/2016 at 01:49, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R17 
    Platform:   Windows  ;   
    Language(s) :     C++  ;


    I have a GeDialog subclass that reimplements the Command method.
    Whenever The command is called, I get the new parameter values.
    How can i also get the previous ones ?

    The reason why I need this is because I have a combo box that when switched, some buttons have to switch their images. I want to avoid switching these images if the same combo box value has been selected twice in a row.

    So I want to check "If  new value is not the same as previous, switch images".

    Thank you for your time.

  • On 20/06/2016 at 06:13, xxxxxxxx wrote:

    the command message is sent after the values have been changed. So there's no built in way to get the last/old value. Instead you will have to store the old values yourself.

Log in to reply