LB Booster
General >> Suggestion Box >> Copy/Paste in LBB' ".tmp" window
http://lbb.conforums.com/index.cgi?board=suggestions&action=display&num=1392542436

Copy/Paste in LBB' ".tmp" window
Post by flotulopex 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?


Re: Copy/Paste in LBB' ".tmp" window
Post by Richard Russell 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.
Re: Copy/Paste in LBB' ".tmp" window
Post by flotulopex 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
Re: Copy/Paste in LBB' ".tmp" window
Post by Richard Russell 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.
Re: Copy/Paste in LBB' ".tmp" window
Post by flotulopex on Mar 3rd, 2014, 1:28pm

Thanks.

Good workaround wink
Re: Copy/Paste in LBB' ".tmp" window
Post by Jack Kelly on Feb 5th, 2015, 12:19pm

How does one copy the entire MainWin to the clipboard?
Re: Copy/Paste in LBB' ".tmp" window
Post by Richard Russell 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.

Re: Copy/Paste in LBB' ".tmp" window
Post by Jack Kelly 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!
Re: Copy/Paste in LBB' ".tmp" window
Post by Richard Russell 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.