What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?
Posted: Thu Sep 10, 2020 5:46 pm
The title says it all...
What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?
So I've made a bunch of progress on my Piano Widget but hit another limitation, the doesn't seem to be any OnGeometryChanged() equivalent of "redraw all" that triggers OnPaint()'s handler. I have at least one idea of how to force OnGeometryChanged() that involves "execute script" to resize the widget's rect from LCS and then resize it back to what it was. Is there any better way?
Basically my Widget has a property that a scripter can set that changes the does some scaling on a bunch of paths inside the Widget, but there's no way to trigger OnGeometryChanged() from my property setter handler.
What's the best way to force-trigger OnGeometryChanged() in Widget from LCB?
So I've made a bunch of progress on my Piano Widget but hit another limitation, the doesn't seem to be any OnGeometryChanged() equivalent of "redraw all" that triggers OnPaint()'s handler. I have at least one idea of how to force OnGeometryChanged() that involves "execute script" to resize the widget's rect from LCS and then resize it back to what it was. Is there any better way?
Basically my Widget has a property that a scripter can set that changes the does some scaling on a bunch of paths inside the Widget, but there's no way to trigger OnGeometryChanged() from my property setter handler.