Re: Undo stack in RichEdit

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

Antonio Alessi wrote:
> 
> > > > 
> > > > 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

Hi again,

Try 'doing' only one action first, then call that function several times.
If that keeps returning a '1' then this doesnt work, but you cant
do 5 or 6 or more things and call it 5 times and expect to see
a different value returned unless you did something different for
one 'do'.
Like i said though, if this doesnt work it's not my fault smile
but it's worth a try.

If you solve it another way you're now obligated to tell use what
it was smile


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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu