[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Supress TextEditor Change event
[Thread Prev] | [Thread Next]
- Subject: Supress TextEditor Change event
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Mon, 9 Sep 2024 17:42:22 +0100
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
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
Re: Supress TextEditor Change event | Bruce Steers <bsteers4@xxxxxxxxx> |