LB Booster
« Leave mainwin open, then how do I close it from GU »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 05:06am



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: Leave mainwin open, then how do I close it from GU  (Read 301 times)
RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx Leave mainwin open, then how do I close it from GU
« Thread started on: Apr 30th, 2015, 10:39am »

Although using GUI, I would like to leave the mainwin open, so that text can be directed to it, which will show exactly what will be printed out hard copy.

Easy to do. Don't include nomainwin.

What I would like to do is to close down the main win when I close the GUI program.

I have looked at LB and there is a solution in NewsDesk #53, but this was written with Windows 95 in mind and gives an error in Windows 8.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Leave mainwin open, then how do I close it fro
« Reply #1 on: Apr 30th, 2015, 2:50pm »

on Apr 30th, 2015, 10:39am, RNBW wrote:
What I would like to do is to close down the main win when I close the GUI program.

I think you'll find that happens automatically in a compiled program (i.e. an EXE). If you execute the END statement it will close the mainwin.

It's only when running in the IDE, when the mainwin is intended to be used principally as a debugging aid, that it remains open even after an END statement.

So you shouldn't need to do anything at all.

Richard.
User IP Logged

RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx Re: Leave mainwin open, then how do I close it fro
« Reply #2 on: Apr 30th, 2015, 4:14pm »

Absolutely correct! It just shows how long ago I made an executable.

Thanks very much. It works a treat!

Ray grin
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