Resizehandler for graphics windows

Discussions related to the extensions to the language available in LBB
guest
Site Admin
Posts: 198
Joined: Tue Apr 03, 2018 1:34 pm

Resizehandler for graphics windows

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