I'm trying to automate the process of adding certain, 'known' configurations, as well as their corresponding tools. While this can be done via lots of menus and mouse clicks, I'd like to do this programatically, using Slick-C.
So far, I've found that I can use the elusive '_ProjectAddTool' function to add a 'tool' to an existing configuration (e.g. 'Debug'). The '_ProjectAdd_Target' works even better. This really only leaves the actual custom configuration bit to sort out. I've looked through SlickEdit's bundled macros and the only thing I've found that would allow this to happen is something like this statement from '\macros\p_config.e':
int newIndex=_TreeAddItem(index,NewConfigName,flags,_pic_fldopen,_pic_fldopen,-1);
The only parameter that seems to be giving problems is that of 'index', which is set to the bottom of the current tree object (which happens to be a _control object). I'm not exactly sure how this should best be set up, as the macro I was looking at is a bit convoluted. Is there a more concise example of this anywhere?
Any input is appreciated. Thanks!