And not just detect, but in turn be able to use the detected “form size” in the bounds of a newly defined widget?
I have a widget that I’ll call a “shader”, that is essentially a partially transparent image widget, and right now I manually set it’s bounds to match the instrument’s “form” bounds definition each place I need to use it… in other words, it should always be the same size as is available to the instrument/plugin. I use this to darken the background when something pops up for user interaction… it both darkens the background, and disables any visible controls other than what is on a layer above it.
I’m looking for a way to make this widget automatically scale itself to match the bounds of the entire instrument, so that a definition in an include file would be usable regardless of the bounds of the instrument including it.
Does anyone have suggestions for this?