[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Supress TextEditor Change event


I have the following code..

Object.Lock(TextEditor1)
Object.SetProperty(TextEditor1, "Text", sText)
Object.Unlock(TextEditor1)

But i'm still getting a Change event from a timer within TextEditor
TextEditor.TimerChange_Timer

Can i stop it firing the change event?

I'm currently working around it by using my own lock variable so i set like
this.
$bFreezeEditor = True
SetProp(TextEditor1, "Text", sText)  ' SetProp Locks object, sets prop,
then unlocks
Wait  ' let that timer trigger
$bFreezeEditor = True

Then I exit the Change event if $bFreezeEditor = True

Seems odd though that i get the Change event when it's locked. Lock usually
suppresses events.

Respects
BruceS

Follow-Ups:
Re: Supress TextEditor Change eventBruce Steers <bsteers4@xxxxxxxxx>