|
-
August 25th, 2004, 08:55 AM
#1
How can I create a Undo Drop Down like in Word?
Hello all,
Is it possible to create a undo drop down like in word? I'm using a RichTextBox and can get multiple undo's / redos working. I have also tried to make a drop down toolbar button and made a context menu tied to it so it lists all the undo / redo steps. Problem is I want to make it work like Word/VS where if you highlight more then just the first one (Say the third down) it will highlight the two about it also. I cant get this to work. Can I do this with a context menu or do I need to float a combo box under the button. Also how does it keep track of how many things to undo redo? I imagine removing and adding to the combo boxes will be the easy part. Any ideas appreciated. Thanks.
Allan.
-
August 25th, 2004, 09:41 PM
#2
Re: How can I create a Undo Drop Down like in Word?
Genereal Idea : keep and array filler with info regarding the undo and redo stuff. use that array to bind with the dropdown menu(or combobox) for the text you can use the first 5 words of the info inside the array or something.
then when the user click on the 3 one. highlight everything above the 3rd item in your combobox and when the user clicks it. just use all the info to change the text.
HTH
R. Thomas
"Be anxious for nothing, but in everything by prayer and supplication, with thanksgiving, let your requests be made know to God; and the peace of God, which surpasses all understanding, will guard your hearts and minds through Christ Jesus."Philippians 4:6-7
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
-
August 25th, 2004, 09:55 PM
#3
Re: How can I create a Undo Drop Down like in Word?
Maybe I wasn't making myself clear...I know what I want but putting it in words is a bit difficult. The actual progrmming is the easy part...when I update my undo/redo status I'll just do additem commands that will add the text. I don't need to even index anything or keep track of whats in the drop downs. Reason being is if they want to undo something three steps ago they have to undo 1 and 2, so if they click on the third thing I would just do a sendmessage with the undo command three times. The issue I have is I want it to look just like VB or Word does..have the list highlight as you scroll down and also list how many things it will undo/redo. Any ideas?
Allan.
-
August 25th, 2004, 10:39 PM
#4
Re: How can I create a Undo Drop Down like in Word?
You're going to have to build your own control to mimic this functionality.
Good Luck,
Craig - CRG IT Solutions - Microsoft Gold Partner
-My posts after 08/2015 = .NET 4.x and Visual Studio 2015
-My posts after 11/2011 = .NET 4.x and Visual Studio 2012
-My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
-My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
-My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
-My posts before 04/2007 = .NET 1.1/2.0
*I do not follow all threads, so if you have a secondary question, message me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|