Origin Ver.8 and SR4
Operating System: WINXP
Hello, I'm programming a little UI for entering some data. Now i want the UI to change when the User changes one Listbox.
Lets start :)
this is the code for the Tree:
GETN_TREE(tr)
GETN_BEGIN_BRANCH(Start, "Ausgangsstellung")
GETN_LIST(StartAchse, "Achse", 0, "P-Achse|Y-Achse")
GETN_SLIDEREDIT(AchsPosition, "Stellung", beta, alpha)
GETN_STR(StartRadius, "aktueller Radius", "???")
GETN_END_BRANCH(Start)
if( GetNBox(tr, "Krzester Weg", "Achsenberechnung", NULL, Aenderungsabfrage) ) {}
this is the code for the function, when the user changes variables.
bool Aenderungsabfrage(TreeNode& tr, int nRow, int nType, Dialog& Dlg)
{
if( nType == TRGP_CHECK || nType == TRGP_COLOR || nType == TRGP_SLIDEREDIT || nType == TRGP_STR )
{
return false;
}
if ( TRGP_ENUM_COMBO == nType)
{
switch( tr.Start.StartAchse.nVal )
{
case 0:
tr.Start.Achsposition.strVal = 29;
break;
case 1:
tr.Start.Achsposition.strVal = 24;
break;
default:
tr.Start.Achsposition.strVal = 0;
break;
}
}
return true;
}

Ok..., when the User changes the Variable "Achse" the Value of "Stellung" should change and the min|max|interval of the slider.
Unfortunately, the interface changes the value if I change the "Radius".
Another problem is, that i don't know the command to change the min|max|interval of the SLIDEREDIT-Button.
I hope you can help me.
Regards
igge