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

Watching a variable (array) for change


Is is possible to watch a variable for changes?

I'm trying to do something with TextEditor that reacts when a procedure
Limit is Collapsed / Expanded
I've managed to get something working when mouse clicks do it but there's
other ways to collapse/expand limits too so looking for a simpler way.

I can get a pointer to the TextEditor $aFold variable via the
TextEditor._GetFolding() method but is there a way to monitor an Array and
react to any changes?

I've removed an adapted gb.form.editor source from my program and and
trying to replace all my mods via auto-inheritance of the main component
instead.

I did have a TextEditor Fold event that triggered when a procedure was
folded/expanded. I'm trying to emulate that.
Having the Fold event added to master would be good but won't really help
me with backward compatibility so i'm looking for a workaround.

Respects
BruceS

Follow-Ups:
Re: Watching a variable (array) for changeBB <adamnt42@xxxxxxxxx>
Re: Watching a variable (array) for changeBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>