all groups > visual studio .net ide > march 2007 >
You're in the

visual studio .net ide

group:

Block Mode selection Copy and Paste Behavior


Block Mode selection Copy and Paste Behavior fbrochu
3/21/2007 11:10:16 AM
visual studio .net ide:
I’m using Visual Studio 2005 with SP1.
Version 8.0.50727.762 (SP.050727-7600)

I am confused by a behavior I believe might be a bug.
Anyone from the Microsoft Visual Team could comment please.

Here is the reproducing step.

1-Open a .cpp file for text edition in a C++ project.
2-Make sure the environment is set in virtual space for the text editor.

3-Have some code written (any) with a block of interspaced virtual space
with no text.
For example:

(...)
#define MAKEWORD(a, b) ((WORD)(((BYTE)((DWORD_PTR)(a) & 0xff)) |
((WORD)((BYTE)((DWORD_PTR)(b) & 0xff))) << 8))
#define MAKELONG(a, b) ((LONG)(((WORD)((DWORD_PTR)(a) & 0xffff)) |
((DWORD)((WORD)((DWORD_PTR)(b) & 0xffff))) << 16))
#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
#define HIWORD(l) ((WORD)((DWORD_PTR)(l) >> 16))
#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))
#define HIBYTE(w) ((BYTE)((DWORD_PTR)(w) >> 8))




(Few lines of Virtual interspaced space
here)






typedef WORD ATOM;
typedef HANDLE NEAR *SPHANDLE;
typedef HANDLE FAR *LPHANDLE;
typedef HANDLE HGLOBAL;
typedef HANDLE HLOCAL;
typedef HANDLE GLOBALHANDLE;
typedef HANDLE LOCALHANDLE;
(...)

4- Now select in block selection mode with the mouse a column block of code
anywhere in the text.
and copy the selected text. Make sure the column block select only 1 line of
code.
5- Set the insert point somewhere in the interspaced space. But not at the
beginning of a line
6. Paste the copied test from the clipboard.
7.- The pasted test is inserted at the anchor point where the insert point
was set.
8- That’s OK. And expected.
9- Redo step 1 to 3
10- Now select in block selection mode with the mouse a column block of code
anywhere in the text.
and copy the selected text. Make sure the column block select more than 1
line of code.
11- Set the insert point somewhere in the interspaced space. But not at the
beginning of a line
12- Paste the copied test from the clipboard.
13- The pasted text will be moved to the beginning of the line of the insert
point.
14- This is not and expected behavior. The moved block should be pasted at
the insert point.

Is this behavior has been reported as a bug previously?
Thanks



RE: Block Mode selection Copy and Paste Behavior v-wywang NO[at]SPAM online.microsoft.com (
3/22/2007 1:50:41 PM
Hi
Thanks for your post.

We need to perform more research on this issue . We will reply here as soon
as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!
Best regards,
Wen Yuan
RE: Block Mode selection Copy and Paste Behavior v-wywang NO[at]SPAM online.microsoft.com (
3/23/2007 12:55:46 PM
Hi,
Thanks for your waiting.

I haven't found this issue on our bug list. Additionally, I have also
followed steps you posted in newsgroup. But, I'm sorry to say I haven't
reproduced the issue on my side. Would you please send me a base project
and provide some detailed steps how to reproduce such issue base on the
attached project.

If I can reproduce the issue, I will report this bug to our product team as
soon as possible.
My alias is v-wywang@microsoft.com. I'm looking forward your reply.

Have a great weekend,
Sincerely,
Wen Yuan
RE: Block Mode selection Copy and Paste Behavior fbrochu
3/27/2007 3:56:35 PM
Hello

Thanks for the follow-up.

I have send to the suggested email address a small project
and detailed instructions to reproduce the problem. Let me
know if you need furthers information

Regards
GB

[quoted text, click to view]
RE: Block Mode selection Copy and Paste Behavior v-wywang NO[at]SPAM online.microsoft.com (
3/28/2007 12:00:00 AM
Hi GB,

We truly appreciated your sample project. I have reproduced the issue and
submitted the report to our product team. This product issue is that the
past code will be inserted at the beginning of the line rather than the
insert point if you have enabled the virtual space for the text editor.

But also I'm afraid this issue may not be fixed very soon. For urgent
issues, we suggest you may contact Microsoft CSS directly. The case charge
will be free if the problem is confirmed to be a product bug. You can check
http://support.microsoft.com for regional support phone numbers.
Thanks again for your post.

If you still have anything unclear, please feel free to update here. I'm
glad to assist you.

Have a great day,
Sincerely,
Wen Yuan
AddThis Social Bookmark Button