Re: Undo stack in RichEdit

new topic     » goto parent     » topic index » view thread      » older message » newer message

> > > 
> > > 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.

It was not the most recent; I did some changes before undoing the last one
and my counter was to 5. Unless I have made a mistake, it probably doesn't 
work as expected, but it's not a problem when that medicine called 
"do it yourself" can supply.. 

Note that when I speak of direct answer, I mean the result of a query 
to the OS of course, not to the EUforum :)

about the 'docs', give a look to my reply to the Cuvier Christian's comments..

have a nice evening.
antonio

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu