Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2007

Tip: Looking for answers? Try searching our database.

Block Mode selection Copy and Paste Behavior

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fbrochu - 21 Mar 2007 19:10 GMT
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
WenYuan Wang - 22 Mar 2007 14:50 GMT
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
WenYuan Wang - 23 Mar 2007 13:55 GMT
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
fbrochu - 27 Mar 2007 23:56 GMT
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

> Hi,
> Thanks for your waiting.
[quoted text clipped - 12 lines]
> Sincerely,
> Wen Yuan
WenYuan Wang - 28 Mar 2007 08:18 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.