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 / March 2005

Tip: Looking for answers? Try searching our database.

Undo/Redo/Print and so on from Addin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 21 Mar 2005 17:46 GMT
Dear all,
I developed a tool window, which is somthing like a custom graphical editor.
Now I would
like to use standard visual studio undo/redo buttons and printing dialog
instead of creating my own.
But these buttons are disabled when my toolwindow is focused, and also not
passed to QueryStatus of the addin. On other hand, for example, build-in
form editor can use these buttons.
Is it a way to utilize these buttons from a custom toolwindow?
Thanks in advance,
Boni
Boni - 25 Mar 2005 14:01 GMT
Hi,
is there nobody who could give me at least some clue how to solve the
problem?

> Dear all,
> I developed a tool window, which is somthing like a custom graphical
[quoted text clipped - 7 lines]
> Thanks in advance,
> Boni
Fuzzier - 27 Mar 2005 04:09 GMT
Here's some clue -- a simple vs macro:
Sub AddUndo()
   Dim cmd As Command, cmdBar As CommandBar

   ' add a new tool bar named "New Bar"
   cmdBar = DTE.CommandBars.Add("New Bar", 1, False)

   ' get the reference to "Edit.Undo" command
   cmd = DTE.Commands.Item("Edit.Undo")

   ' add "Edit.Undo" to the command bar
   cmd.AddControl(cmdBar, 1)
End Sub

"Boni" <oilia@nospam> дÈëÏûÏ¢ÐÂÎÅ:OBgCJrTMFHA.568@TK2MSFTNGP09.phx.gbl...
> Hi,
> is there nobody who could give me at least some clue how to solve the
[quoted text clipped - 12 lines]
>> Thanks in advance,
>> Boni

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.