THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/01/2008 at 18:47, xxxxxxxx wrote:
Yes ...
I also found out it's not working in the way it should (or we hope it will) ...
I tried this tricky way ... but in C++ ...
But it may not be a good way ...
Code In CreateLayout
AddEditNumber(9990,0,100,10);
SetReal(9990,50,0,200);
GroupBegin(9991,0,1,1,"",0);
AddSlider(9992,0);
SetReal(9992,50,0,200);
GroupEnd();
Code In Command
case 9992:
{
Real r;
GetReal(9992,r);
SetReal(9990,r);
}
break;
case 9990:
{
Real r;
GetReal(9990,r);
LayoutFlushGroup(9991);
AddSlider(9992,0);
SetReal(9992,r,0,200);
LayoutChanged(9991);
}
break;
Just try to use the slider and the text will change on the fly ...
But type in the text ... you need to press ENTER to see the change in SLIDER ...
So I think you can do it the same way in COFFEE ...
Put your slider in a group ... and refresh the layout after changing its value ...
Wishing you can do it ...
Zaw Min Tun