LB Booster
« Resizehandler for graphics windows »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:50am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
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
BBC BASIC Home Page
Liberty BASIC forum (the original)

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


member is offline

Avatar




Homepage PM


Posts: 1348
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 »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls