- Joined
- 6 July 2013
- Posts
- 15
- Reactions
- 0
Im trying to use a paramlist in one pane to control the title text in another pane. So far, I've come up with the following code which, although probably very crude, is almost there but I must be doing something wrong which I cant quite figure out. Thanks.
//code in the pane containing the paramlist:
strattype= ParamList("Strategy Type", "AAA,BBB,CCC");
StaticVarSetText("strategytype", strattype);
//code in the pane which contains the title text:
strategytype = StaticVarGetText("strategytype");
strategytext =
WriteIf( strategytype== "AAA", " This is the text for strategy AAA",
WriteIf( strategytype == "BBB", " This is the text for strategy BBBB ",
WriteIf( strategytype == "CCC", " This is the text for strategy CCC",
" " ) ) );
Title =
EncodeColor(colorBrightGreen) +strategytext;
//code in the pane containing the paramlist:
strattype= ParamList("Strategy Type", "AAA,BBB,CCC");
StaticVarSetText("strategytype", strattype);
//code in the pane which contains the title text:
strategytype = StaticVarGetText("strategytype");
strategytext =
WriteIf( strategytype== "AAA", " This is the text for strategy AAA",
WriteIf( strategytype == "BBB", " This is the text for strategy BBBB ",
WriteIf( strategytype == "CCC", " This is the text for strategy CCC",
" " ) ) );
Title =
EncodeColor(colorBrightGreen) +strategytext;