menu separator

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

On 28/09/2003 at 07:39, xxxxxxxx wrote:

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

---------
Hello Everyone,
About me...
I've been using Cinema since v.6 and always wanted to learn c++ (I've had a little experience in programming here and there - Basically I'm another newbie) So, I've decided to take it on and study/learn the Cinema SDK along the way... I've downloaded the latest demo and I'm using the plugin project as my testing grounds...
Question:
In the 3rd edition of the R8 C++ SKK Docs - on the "c4d_commanddata" page, there is the following note:
" Note: If you want to affect the order that your plugins are displayed in menus you can add

#$n

as a prefix to this name, where

n

is a number. Lower numbers are displayed before higher numbers. If you make the name "--" it will show up as a menu separator"
I can get the "

#$n" prefix to work - I've changed the IDS_ATOM and IDS_CIRCLE in the "c4d_strings.str" file. But, when I change either of these to "--" as it states in the note, then they just disappear from the menu. What is the proper way to code this so I get both the "Atom" plugin and the "Double Circle" plugin, but they have a menu separator between them?
Thanks...

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

On 01/10/2003 at 03:58, xxxxxxxx wrote:

Well... I found the menu separator - It places it at the top of the menu untill the prefixes are added (#$n) - But I'm still not quite sure how to add a separator instead of replacing one of the plugins names. Is there any way to append the separator to one of the current plugins, or do I basically have to add/register a dummy plugin (with its own ID) in order to get the menu separator?
Thanks again...

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

On 02/10/2003 at 05:35, xxxxxxxx wrote:

Unfortunately you have to register a dummy plugin. (It can be in the same project of course.) You can see that MAXON has to do this for modules as well, since there are lots of -- entries at the bottom of the Plugin section of the Command Manager.

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

On 02/10/2003 at 14:05, xxxxxxxx wrote:

Thank You Mikael...
I appreciate the response !

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

On 30/08/2006 at 13:34, xxxxxxxx wrote:

Quote: Originally posted by Mikael Sterner on 02  October 2003
>
> * * *
>
> Unfortunately you have to register a dummy plugin. (It can be in the same project of course.) You can see that MAXON has to do this for modules as well, since there are lots of -- entries at the bottom of the Plugin section of the Command Manager.
>
> * * *
...so, you have to create a new plugin for each separator you want to add?  
And then... hard-code the name for each dummy plugin in the executable with a proper numbering prefix? (I notice that Mocca has separators, but I don't see any strings listed for those in the c4d_strings.str file).

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

On 30/08/2006 at 13:59, xxxxxxxx wrote:

Quote: Originally posted by Giblet on 30  August 2006
>
> * * *
>
>> Quote: Originally posted by Mikael Sterner on 02  October 2003
>>
>> * * *
>>
>> Unfortunately you have to register a dummy plugin. (It can be in the same project of course.) You can see that MAXON has to do this for modules as well, since there are lots of -- entries at the bottom of the Plugin section of the Command Manager.
>>
>> * * *
>
> ...so, you have to create a new plugin for each separator you want to add?  
>
> And then... hard-code the name for each dummy plugin in the executable with a proper numbering prefix? (I notice that Mocca has separators, but I don't see any strings listed for those in the c4d_strings.str file).
>
>
> * * *

I don't know if there's some other way, but this seems to work:

    
    
    
    
     RegisterCommandPlugin(SEP01_PLUGID,"#$10--",0,NULL, "",gNew CommandData);  
     RegisterCommandPlugin(SEP02_PLUGID,"#$30--",0,NULL, "",gNew CommandData);  
     RegisterCommandPlugin(SEP03_PLUGID,"#$40--",0,NULL, "",gNew CommandData);  
     RegisterCommandPlugin(SEP04_PLUGID,"#$50--",0,NULL, "",gNew CommandData);  
    

...of course I had to grab 4 plugin IDs.