Radiogroup/Items & SubID



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/09/2006 at 02:25, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.1 
    Platform:   Windows  ;   
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    Hi,

    I have a radiogroup with Items.
    How can I get the SubID of the Items?

      
    dialog::CreateLayout()  
    {  
    SetTitle("Radiodialog");  
      
    AddRadioGroupH(4000,0,3);  
    {  
        AddItem(4000,4001, "Radio one");  
        AddItem(4000,4002, "Radio two");  
    }  
    AddGroupEnd();  
      
    return TRUE;   
    }  
    

    If I write:

      
    dialog::Command(id, msg)  
    {  
    println(id);  
    }  
    

    always appear only the ID of the radiogroup?

    What Iam doing wrong?

    Regards
    Stefano



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/09/2006 at 07:58, xxxxxxxx wrote:

    I solve the Problem.

    To get the SubId from

    AddItem()
    

    use

    GetItem(ID_OF_GROUP)
    

    Stefano


Log in to reply