Page 1 of 1

Cut & Paste limit

PostPosted: Thu Sep 07, 2023 2:30 am
by TimStone
I have received complaints from some clients that they are limited to how much they can cut and paste in an application. In other words, if a text is 35 characters long, highlighted, then copy is selected, then they try to paste it into a field ( ie. C 50 ), it gets cut off.

Is there a buffer limit in FWH for cut and paste ( clipboard ) ?

Any thoughts on this would be appreciated.

No, I do not have a sample. I would first like to understand how we implement cut and paste in FWH, and can then try to figure this out.

Thanks.

Re: Cut & Paste limit

PostPosted: Thu Sep 07, 2023 4:59 am
by nageswaragunupudi
No limits in FWH.
If we are talking about pasting into a Get, then the copied text is pasted from the cursor position till the end of the Get.
Example
-Width of Get is 80 chars
-Copied text is 70 chars
-User has his cursor position 60 in the Get and then pressed Ctrl-V, the text is pasted from 61st position till the end of Get, ie., 80. 20 chars are copied and the remaining 50 chars are discared.
-Instead, if the user has his cursor position at the beginning of the Get and pressed Ctrl-V, all the 70 chars are pasted

Re: Cut & Paste limit

PostPosted: Thu Sep 07, 2023 11:08 am
by Jimmy
hi Tim,

what about
Code: Select all  Expand view
PICTURE "@K"

Re: Cut & Paste limit

PostPosted: Thu Sep 07, 2023 11:12 am
by nageswaragunupudi
Jimmy wrote:hi Tim,

what about
Code: Select all  Expand view
PICTURE "@K"

PICTURE @K is superfluous in Windows.
Useful only in DOS Clipper/Harbour applications.

Re: Cut & Paste limit

PostPosted: Thu Sep 07, 2023 3:46 pm
by Maurizio
Tim ,

Dialogs are created with RC , DLL or use commands @ GET ?

If you use RC verify check GET parameter Auto horz scroll = Yes

Maurizio

Re: Cut & Paste limit

PostPosted: Thu Sep 07, 2023 10:25 pm
by nageswaragunupudi
I was not talking about the width of the Get control.
I was talking about the width of the Get variable.
The behavior of the Paste, as I explained has nothing to do with the issue of horizontal scrolling.

Re: Cut & Paste limit

PostPosted: Fri Sep 08, 2023 4:22 pm
by TimStone
Sorry for the delay in responding ... life gets very busy these days.

Nages' explanation made perfect sense. I shared it with my client. He is the only one complaining about this problem, and I expect he is just pointing the cursor at the middle of the field and pressing paste, which, as was explained, leaves half the field with blank spaces and limits the paste.

Thank you so much for that answer. It also explains why I could not duplicate the problem here. I know to click on the left side ( by habit ) and do my paste.

Tim

Re: Cut & Paste limit

PostPosted: Tue Sep 12, 2023 11:10 am
by Jack
Just like Maurizio said :


If you use RC verify check GET parameter Auto horz scroll = Yes

Philippe