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

Re: Watching a variable (array) for change


On 26/10/26 7:21 am, Bruce Steers wrote:


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

This is not easy. I have been digging down into it and trying to find a way to raise a signal where an address is written to at the OS level. It is not an easy thing to do, in fact it may be impossible.

But it has been a bit of a poser to be sure.

hmmm

b



Follow-Ups:
Re: Watching a variable (array) for changeBrian G <brian@xxxxxxxxxxxxxxxx>
Re: Watching a variable (array) for changeBruce Steers <bsteers4@xxxxxxxxx>
References:
Watching a variable (array) for changeBruce Steers <bsteers4@xxxxxxxxx>