Re: Undo stack in RichEdit
- Posted by Al Getz <Xaxo at aol.com> Apr 12, 2006
- 514 views
Antonio Alessi wrote: > > > > > > > > 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? > > > > > Hi again Al, > > EM_GETREDONAME = (WM_USER + 87) > > for i = 1 to 5 do > ? sendMessage( TxtArea, EM_GETREDONAME, 0, 0) > end for > > 1 > 1 > 1 > 1 > 1 > > Is that what you mean? > However, if cannot get a direct answer, I've already found another way! > > antonio Apparently you're saying you can only get the most recent 'do', or did you do lots of stuff before calling that function? If you only 'do' one thing and it keeps returing a '1' then i guess this method doesnt work. As usual, MS implies that something like this WORKS because if you read the doc's they say you can create a drop down list of undo actions the user wants to do. Sorry if it doesnt work. 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."