FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Length of Cut / Copy and Paste using 0x4l Style in Dialog
Posts: 142
Joined: Tue Jan 24, 2006 09:45 AM
Length of Cut / Copy and Paste using 0x4l Style in Dialog
Posted: Tue Feb 21, 2006 10:29 AM

Hello - I'm really on a roll here.

I just noticed something else very strange.

I have one dialog defined with the 0x4l style parameter and another dialog (just for a test) that does not include the 0x4l style parameter (in BRW 4.5).

Each dialog has two gets defined that are 30 characters wide.

The font of all of the controls is set to 'Tahoma' etc. etc.

On the dialog with the 0x4l style:

If you fill the first get with all 30 characters and then cut or copy and paste to the other get that has the same width only about two thirds of the original data that was cut or copied is pasted to the new field i.e. the pasted data is shorter than the original data that was cut or copied from the first get.

On the dialog without the 0x4l style:

If you fill the first get with all 30 characters and then cut or copy and paste to the other get that has the same width all of the original data that was cut or copied is pasted to the new field i.e. the pasted data is the same as the original data that was cut or copied from the first get.

It is the same whether you use shift delete or the mouse.

Why do I need to use the 0x4l style parameter: because by not including the 0x4l parameter my whole system appears too 'spaced out' and 'big' and lacks that 'refined' look!

Any thoughts?

Regards,

Dale.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Length of Cut / Copy and Paste using 0x4l Style in Dialo
Posted: Tue Feb 21, 2006 01:14 PM

Try clicking on the checkbox "Automatic scroll" -> "Horizontal" in the GET properties of the BRW.

EMG

Posts: 142
Joined: Tue Jan 24, 2006 09:45 AM
Length of Cut / Copy and Paste using 0x4l Style in Dialog
Posted: Tue Feb 21, 2006 03:57 PM

Simple as that!

Thanks - it works!

Regards,

Dale.

Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Cut and paste
Posted: Wed Feb 22, 2006 04:50 AM

hi,

One thing I have noticed is that once you cut from a get, the variable is not padded afterwards, so if you cut everything you can't type in the get anymore.

Also pasting makes a variable longer, the variable size is not restricted.

I'll be chasing this down today, unless somebody else already has?

Posts: 142
Joined: Tue Jan 24, 2006 09:45 AM
Length of Cut / Copy and Paste using 0x4l Style in Dialog
Posted: Wed Feb 22, 2006 06:05 AM

Hi Alex,

I'm not sure if this is what you are talking about but I just tried to test for your problem and I get this:

Get contains e.g. '111122223333'

If you highlight all the 2's in the above example and then cut them and immediately start typing into that get again (without pasting the contents of the paste buffer to somehwere else) the first letter that you type is accepted and whatever is in the past buffer is immediately put back into the Get.

BUT this only happens when you use the mouse to cut i.e. if you use the keyboard to cut using Shift+Del or just Del everything is fine.

Other than that if I cut from a Get, even the whole Get, I can type into the Get again.

Regards,

Dale.

Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Cutting
Posted: Wed Feb 22, 2006 06:18 AM

Hi,

It happens with me if I highlight all the text in the get field, and press ctrl-x on the keyboard.

Right clicking and choosing cut from the menu seems to work properly.

I think the Ctrl-X is not getting caught properly. Windows cuts the text, and my app doesn't know.

Posts: 142
Joined: Tue Jan 24, 2006 09:45 AM
Length of Cut / Copy and Paste using 0x4l Style in Dialog
Posted: Wed Feb 22, 2006 06:36 AM

Hello,

I tried Ctrl+X and it works for me i.e. I can highlight the text, press Ctrl+X (which removes the highlighted text) and then type something new. I can then past (using Ctrl+V) anywhere else I like no problem.

Regards,

Dale.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Length of Cut / Copy and Paste using 0x4l Style in Dialog
Posted: Wed Feb 22, 2006 08:16 AM

Dale and Alex,

Antonio just mentioned a couple of days ago that the Get classes in Harbour and xHarbour have a number of differences. Perhaps each of you is using a different compiler? Or a different version?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion