Hello,
I needed to build a GUI that was capable of adding and removing ListBox entries with a simple button click.
I managed to figure out how to add ListBox/button (wrapped in an HListBox) pairs dynamically using the script below, but I am not sure how to reference them for the delete button.
NewWindow("WINDOW_NAME", << Modal,
OutlineBox("OUTLINE_NAME",
test_lb = VListBox(
ButtonBox("Add",
test_lb << Append(
HListBox(
OutlineBox("TEST_INSTANCE_" || Char(Today())),
ButtonBox("Remove" //somehow remove only the current HListBox object
)
)
)
),
ButtonBox("OK")
)
)
);