Add separator in contextMenuColumn



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

    On 21/06/2004 at 00:37, xxxxxxxx wrote:

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

    ---------
    Hi,
    I create my own context menu in the function CreateContextMenuColumn.
    And now, I like several separators in the context.
    I added this with the command:
    bc->SetString(FIRST_POPUP_ID, "Command1");
    bc->SetString(0,"");
    bc->SetString(FIRST_POPUP_ID+1, "Command2");
    bc->SetString(0,"");
    ....
    The problem now, I see only the first separator. The other are invisible or not existing.
    Where´s the error??



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

    On 21/06/2004 at 09:10, xxxxxxxx wrote:

    Have you tried adding a submenu after the last separator to see if the separator then appears? Otherwise, your code follows the rules as mentioned in the SDK docs.

    Robert



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

    On 22/06/2004 at 01:46, xxxxxxxx wrote:

    Hi Robert,
    I didn´t try it to add submenu. Maybe it´s a workaround, but no real
    solution. But I will test it.
    Thanks



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

    On 22/06/2004 at 22:21, xxxxxxxx wrote:

    For these rare occasions, when more than one item with the same ID is needed, you can use bc->InsData(0, GeData("")) instead.



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

    On 22/07/2004 at 06:16, xxxxxxxx wrote:

    Hello Mikael,
    thanks, it works fine.


Log in to reply