I am feeling the Anvil and having lots of fun. However, I can’t figure out how to do the following:
I have created a custom component which includes buttons. I’ve gotten my event handlers all hooked up and assigned so that when a button is pressed I can raise the appropriate event on the form that contains the component.
What I really want is to use alert(contents = my_component, buttons = []) and then get back which button was pressed.
I can’t figure out how to return this value, nor how to get ride of the alert box after the component button is pressed. The component oddly says it doesn’t have a parent, neither the alert, nor the form that called the alert.
Works! Thanks @david.wylie@p.colbert for all the help (checks notes) showing me the part of the documentation I missed even though I’ve been reading it all morning!