API - how parameter in seperate tabs

   3150   2   1
User Avatar
Member
229 posts
Joined: May 2006
Offline
Hi,

I'm creating a Particle OP and actualy i got lots of parameters. I want to clean up all the stuff and group them into different tabs. But how can i create different tabs, theres no description in the “Using Parameters” part of the HDK - documentation.

it would be fantastic if somebody has a clou.

thx in advance

Sebastian
User Avatar
Member
166 posts
Joined: Feb. 2006
Offline
Hi Sebastian,

Here an example:

When you declare your parameter the first one will be the switcher/tab

static PRM_Name names =
{
PRM_Name(“sw” , “SW”),
(…)
}


Then…


static PRM_Default switcher_label = {
PRM_Default(2,“tab1”),
PRM_Default(3,“tab2”),
PRM_Default(4,“tab3”),
};


the number is the number of parameters you want to include in that tab.
Then:

PRM_Template
POP_YourPOP::myTemplateList ={
PRM_Template(PRM_SWITCHER,
3, // Number of tabs
&names,switcher_label),

(…)
}



well I think that is it…
if you have a problem, let me know.
Time to get out of this messy world.
User Avatar
Member
229 posts
Joined: May 2006
Offline
works perfect, thx !!!

Sebastian
  • Quick Links