Author |
Topic: Copy/Paste in LBB' ".tmp" window (Read 1332 times) |
|
flotulopex
Junior Member
member is offline
Gender:
Posts: 94
|
|
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?
|
|
Logged
|
Roger
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
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.
|
|
|
|
flotulopex
Junior Member
member is offline
Gender:
Posts: 94
|
|
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
|
|
Logged
|
Roger
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
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.
|
|
Logged
|
|
|
|
flotulopex
Junior Member
member is offline
Gender:
Posts: 94
|
|
Re: Copy/Paste in LBB' ".tmp" window
« Reply #4 on: Mar 3rd, 2014, 1:28pm » |
|
Thanks.
Good workaround
|
|
Logged
|
Roger
|
|
|
Jack Kelly
Full Member
member is offline
Gender:
Posts: 106
|
|
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?
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
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.
|
|
Logged
|
|
|
|
Jack Kelly
Full Member
member is offline
Gender:
Posts: 106
|
|
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!
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
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.
|
|
|
|
|