[ExtensionOf(classStr(FormRun))]public final class FormRun_Test_Extension{[SubscribesTo(classStr(FormRun), staticDelegateStr(FormRun, onFormRun))]public static void onFormRun (FormRun _formInstance){GeneralEventHandlers::onFormRun(_formInstance);}}
class GeneralEventHandlers{static void onFormRun (FormRun _formRun){#SysSystemDefinedButtonsFormCommandButtonControl popoutButton;popoutButton = _formRun.control(_formRun.controlId(#SystemDefinedPopoutButton)) asFormCommandButtonControl;popoutButton.OnClicked += eventhandler(TestEventHandlers::Test);}public static void Test(FormControl sender, FormControlEventArgs e){info(“Test”)}}

Report
All responses (
Answers (