LB Booster
Programming >> Language extensions >> Resizehandler for graphics windows http://lbb.conforums.com/index.cgi?board=extensions&action=display&num=1499379987 Resizehandler for graphics windows
Post by Richard Russell on Jul 6th, 2017, 10:26pm
I hadn't realised, until I saw it mentioned at the LB Yahoo! group, that in LB 4.04 and 4.5.0 the RESIZEHANDLER command doesn't work in a graphics window. This seems a very strange limitation (not the first!) and it would never have occurred to me to do the same.
So, in LBB, you can use RESIZEHANDLER with a graphics window just as you can with every other (non-dialog) kind of window:
Code:
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