Re: Undo stack in RichEdit

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu