In LB 4.04 and 4.5.1 the RESIZEHANDLER command doesn't work in a graphics window. This seems a strange limitation; in LBB you can use RESIZEHANDLER with a graphics window just as you can with every other (non-dialog) kind of window:
Code: Select all
open "Resize test" for graphics_nsb as #w
#w "trapclose [quit]"
#w "resizehandler [check]"
wait
[quit]
close #w
end
[check]
print "Width = "; WindowWidth; ", height = ";WindowHeight
wait