problems with creating scrollbar
Posted: February 1st, 2005, 3:04 am
if I use this script:
clearOutput();
var dlg = new Window('dialog', 'Alert Box Builder', [100,100,480,490]);
dlg.Scrl = dlg.add('scrollbar', [10,10,190,60], 400, 0, 800);
write(dlg.Scrl.value+'*');
write(dlg.Scrl.minvalue+'*');
write(dlg.Scrl.maxvalue+'*');
dlg.show();
I would assume that dlg.Scrl.value = 400,
but It is 0
is this a bug?? or have I misunderstod something??
Mads
clearOutput();
var dlg = new Window('dialog', 'Alert Box Builder', [100,100,480,490]);
dlg.Scrl = dlg.add('scrollbar', [10,10,190,60], 400, 0, 800);
write(dlg.Scrl.value+'*');
write(dlg.Scrl.minvalue+'*');
write(dlg.Scrl.maxvalue+'*');
dlg.show();
I would assume that dlg.Scrl.value = 400,
but It is 0
is this a bug?? or have I misunderstod something??
Mads