Re: Undo stack in RichEdit
- Posted by Al Getz <Xaxo at aol.com> Apr 12, 2006
- 554 views
Antonio Alessi wrote: > > Al Getz wrote: > > > > Antonio Alessi wrote: > > > > > > > > > When text is changed into a RichEdit window, the Undo feature become > > > active > > > > > > and at every change it is increased one step. > > > Note that this does not occurr on every single character change, but after > > > > > > a string, or some text is changed. > > > > > > I need to know the current number of these steps, or the stack length( ) > > > of the Undo feature. Is there a way to get this info? > > > > > > Thanks to everybody for an answer. > > > > > > Antonio Alessi > > > > Hi there Antonio, > > > > I think you can use EM_SETUNDOLIMIT > > and there might be a GET version too, but dont remember offhand. > > > > > Hi Al, > > thanks for the advice; > but I don't refer to the absolute POSSIBLE number of these steps > (the LIMIT is 100, with the win32lib 0-59), but the current stack counter, > i.e. how many Undo commands can be executed, or the true number of changes > that culd be undone in any moment. > > Somebody else? > > antonio Hi Antonio, Oh i see, well, did you try sending EM_GETREDONAME a multiple number of times? Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."