Resizehandler for graphics windows

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

Resizehandler for graphics windows

Post by guest » Mon Apr 09, 2018 1:27 pm

(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]"
    close #w
    print "Width = "; WindowWidth; ", height = ";WindowHeight

Post Reply