Page 1 of 1

Resizehandler for graphics windows

Posted: Mon Apr 09, 2018 1:27 pm
by guest
(copied from the old forum)

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
Richard.