Length of Cut / Copy and Paste using 0x4l Style in Dialog

Length of Cut / Copy and Paste using 0x4l Style in Dialog

Postby dpaterso » 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.
dpaterso
 
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa

Re: Length of Cut / Copy and Paste using 0x4l Style in Dialo

Postby Enrico Maria Giordano » Tue Feb 21, 2006 1:14 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby dpaterso » Tue Feb 21, 2006 3:57 pm

Simple as that!

Thanks - it works!

Regards,

Dale.
dpaterso
 
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa

Cut and paste

Postby AlexSchaft » Wed Feb 22, 2006 4: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?
User avatar
AlexSchaft
 
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Postby dpaterso » Wed Feb 22, 2006 6: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.
dpaterso
 
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa

Cutting

Postby AlexSchaft » Wed Feb 22, 2006 6: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.
User avatar
AlexSchaft
 
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Postby dpaterso » Wed Feb 22, 2006 6: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.
dpaterso
 
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa

Postby James Bott » Wed Feb 22, 2006 8: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests