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 / Extensibility / December 2005

Tip: Looking for answers? Try searching our database.

IVsWindowFrams.ShowNoActivate doesn't seem to work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dmitry Shaporenkov - 12 Dec 2005 13:38 GMT
Hi all,

I'm having a problem with IVsWindowFrame.ShowNoActivate function in VS 2005
Final. I'm trying to use
it in order to show the document window without transferring focus to it,
but it doesn't work as expected.
Docs say that it 'Shows or makes a window visible and brings it to the top,
but does not make it the active window.',
but for me it only does the first part - the document appears among the tabs
of the code editor, but it isn't the active
tab (not sure what is meant under 'brings it to the top').
What I'm looking for is a way to make the specified document window active,
but don't transfer focus to it.

Any ideas? Thanks.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Gary Chang[MSFT]" - 13 Dec 2005 12:00 GMT
Hi Dmitry,

>What I'm looking for is a way to make the specified document window
>active, but don't transfer focus to it.

If you want to active one specified document window, why not try the
general convention--using the EnvDTE.Window object to locate that window,
then call the Activate method:

Window.Activate
http://msdn2.microsoft.com/en-us/library/envdte.window.activate.aspx

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Dmitry Shaporenkov - 13 Dec 2005 12:41 GMT
Hello Gary,

as I said, I want to make a window active, but _not_ transfer the input focus
to it.
As far as I remember (ok, I'll try it again) Window.Activate behaves just
like IVsWindowFrame.Show -
it _does_ transfer the focus. So the original question remains.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

> Hi Dmitry,
>
[quoted text clipped - 21 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
Dmitry Shaporenkov - 13 Dec 2005 15:50 GMT
Update: just checked, and Window.Activate works indeed the way I supposed
and not the way I want it. That is,
it tranfers the focus to the document window. Is there any way to open a
document window and make it the currently
active in the text editor, but leave the focus where it currently is?

Thanks.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

> Hello Gary,
>
[quoted text clipped - 36 lines]
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
"Gary Chang[MSFT]" - 14 Dec 2005 08:00 GMT
Hi Dmitry,

>Is there any way to open a document window and make
>it the currently active in the text editor, but leave the focus
>where it currently is?

I have checked VS SDK documentation on this issue, it appears there haven't
any other approaches could activate a VS document windows without setting
focus to it.

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

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.