LB Booster
« Copy/Paste in LBB' ".tmp" window »

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



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: Copy/Paste in LBB' ".tmp" window  (Read 1331 times)
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Copy/Paste in LBB' ".tmp" window
« Thread started on: Feb 16th, 2014, 08:20am »

Hello,

I was wondering if Copy/Paste ability could be added to LBB's ".tmp" (or "mainwin" or text" - I don't know its correct "name") window?

User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #1 on: Feb 16th, 2014, 09:27am »

on Feb 16th, 2014, 08:20am, flotulopex wrote:
I was wondering if Copy/Paste ability could be added to LBB's ".tmp" (or "mainwin" or text" - I don't know its correct "name") window?

The correct name is 'mainwin' (as in the nomainwin statement!).

It is not practical for LBB to provide any copy/paste facility over and above what is currently available (i.e. copying the entire mainwin into the clipboard). I don't see why you would ever want to paste into the mainwin, and you can always do a 'selective' copy by copying-and-pasting the entire mainwin into (say) Notepad, and then selectively copying from there.

In Liberty BASIC using the mainwin for anything other than debugging purposes is deprecated. You are encouraged to use the GUI for all your user-oriented input/output, and to add a nomainwin statement once your program is working correctly. It is for that reason that LBB doesn't go to any great lengths to emulate the mainwin.

Incidentally this relates to an earlier question. The reason LB provides no means to close the mainwin 'programmatically' is that you are not expected to have a mainwin in your final program!

Richard.
« Last Edit: Feb 16th, 2014, 09:35am by Richard Russell » User IP Logged

flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #2 on: Mar 3rd, 2014, 07:54am »

Fair enough.

When I'm testing "console" apps, I some times repeatedly have to enter data for testing purpose; this is why I raised my question wink
User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #3 on: Mar 3rd, 2014, 08:49am »

on Mar 3rd, 2014, 07:54am, flotulopex wrote:
When I'm testing "console" apps, I some times repeatedly have to enter data for testing purpose; this is why I raised my question ;)

Pasting into the INPUT statement is an entirely different issue - it's not pasting into the mainwin! That would in principle be possible, but it's not what you asked for. Naturally I assumed that what you were hoping for was a similar copy/paste facility to that provided by LB 4.04, which does not allow you to paste into the INPUT statement.

For testing your program you can always insert BBC code to pre-load the responses into function keys, to save having to type the same thing repetitively:

Code:
!*key 1 Hello world!|M
!*key 2 Goodbye|M
input r$ 

Now you can just press F1 or F2 in response to the INPUT statement.

Richard.
User IP Logged

flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #4 on: Mar 3rd, 2014, 1:28pm »

Thanks.

Good workaround wink
User IP Logged

Roger
Jack Kelly
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 106
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #5 on: Feb 5th, 2015, 12:19pm »

How does one copy the entire MainWin to the clipboard?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #6 on: Feb 5th, 2015, 12:51pm »

on Feb 5th, 2015, 12:19pm, Jack Kelly wrote:
How does one copy the entire MainWin to the clipboard?

Type Ctrl+Tab (hold down the Ctrl key and press Tab).

Note that in LBB the mainwin can hold only about 80 lines of text before the oldest data is 'scrolled off the top' and lost forever.

Richard.
User IP Logged

Jack Kelly
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 106
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #7 on: Feb 6th, 2015, 5:14pm »

Thanks, Richard. Ctrl-Tab wasn't obvious. Would that have been documented in the BBC Basic documentation? I'm duly recording all your many tips and tricks in my LBB Command Reference document. Keep them coming!
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Copy/Paste in LBB' ".tmp" window
« Reply #8 on: Feb 6th, 2015, 5:30pm »

on Feb 6th, 2015, 5:14pm, Jack Kelly wrote:
Ctrl-Tab wasn't obvious. Would that have been documented in the BBC Basic documentation?

It is (of course), but more importantly it's documented in the LBB Help file - it's item 7 in the Compatibility section:

"7. The mainwin can hold only about 84 lines of text; if more lines are output the remainder will be 'scrolled off' the top of the window and lost. Also, the mainwin has no menu. You can copy the contents of the mainwin onto the clipboard by typing Ctrl+Tab."

http://www.lbbooster.com/lbb.html#compatibility

Richard.
« Last Edit: Feb 6th, 2015, 5: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