[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Watching a variable (array) for change
[Thread Prev] | [Thread Next]
- Subject: Watching a variable (array) for change
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sun, 25 Oct 2026 20:51:33 +0000
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
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
| Re: Watching a variable (array) for change | BB <adamnt42@xxxxxxxxx> |
| Re: Watching a variable (array) for change | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |