LB Booster
« Resizehandler for graphics windows »

Welcome Guest. Please Login or Register.
Feb 22nd, 2018, 3:34pm

Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
LB Umbrella forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Resizehandler for graphics windows  (Read 139 times)
Richard Russell

member is offline


Homepage PM

Posts: 1340
xx Resizehandler for graphics windows
« Thread started 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:

    open "Resize test" for graphics_nsb as #w
    #w "trapclose [quit]"
    #w "resizehandler [check]"
    close #w
    print "Width = "; WindowWidth; ", height = ";WindowHeight

« Last Edit: Jul 6th, 2017, 10:31pm by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls