sparaig
09-29-2006, 05:20 AM
Why does this not work?
It only prints test once, and not when I move the slider. If I change the -cc to -dc it STILL only prints test once.
This is the equivalent of hello world, I thought...
global proc testSliderCallback(string $testName)
{
print ("test\n");
}
global proc testSlider()
{
//----------------------------------
string $window = `window -title "intSliderGrp Example"`;
string $intSliderName;
string $cmd;
columnLayout;
$intSliderName = `intSliderGrp -label "Group 1" -field true `;
$cmd = (testSliderCallback($intSliderName));
intSliderGrp -edit -dragCommand $cmd $intSliderName ;
showWindow $window;
};
testSlider();
It only prints test once, and not when I move the slider. If I change the -cc to -dc it STILL only prints test once.
This is the equivalent of hello world, I thought...
global proc testSliderCallback(string $testName)
{
print ("test\n");
}
global proc testSlider()
{
//----------------------------------
string $window = `window -title "intSliderGrp Example"`;
string $intSliderName;
string $cmd;
columnLayout;
$intSliderName = `intSliderGrp -label "Group 1" -field true `;
$cmd = (testSliderCallback($intSliderName));
intSliderGrp -edit -dragCommand $cmd $intSliderName ;
showWindow $window;
};
testSlider();
