LB Booster
« Resizehandler for graphics windows »

Welcome Guest. Please Login or Register.
Jul 26th, 2017, 10:44am


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 27 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1247
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:

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 

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