Adds a button to a custom dialog window.
dlg_add_button(handle, name) dlg_add_button(handle, name, text) dlg_add_button(handle, name, text, param)
hnd = dlg_new("Find"); dlg_add_label(hnd, "", "Where is it?"); dlg_add_button(hnd, "", "Here", "btn1"); dlg_add_button(hnd, "", "Here", "btn2"); dlg_comp_pos(hnd, 70, -1); dlg_add_button(hnd, "", "Here", "btn3"); dlg_comp_pos(hnd, 140, -1); dlg_show(hnd); print("you clicked btn1 ", btn1, " times"); print("you clicked btn2 ", btn2, " times"); print("you clicked btn3 ", btn3, " times");