Hi
Replace the subform’s $event method with this one:
Regarding evLayoutChanged
Determine iLayout using pBreakpoint ## An integer instance variable is called iLayout.\
The subform might then have a method added to it that returns that value:
$getLayout
iLayout Quit Method
The Whoami is in the tech note: https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20the%20oProcess%20Worker/3.Simple%20example%3A%20whoami.html geometry dash world
Thus, you can send a message to the subform in the manner shown below to find out which layout the subform is from your main form:
Execute $cinst.MySubformField $objs.$subinst().lSubformLayout is returned by $getLayout().
But why does the main form care which layout breakpoint the subform is at, I wonder. Isn’t it supposed to organize itself?
I hope this is useful.