Right now I have a dialog that shows a simple message and has depending on the situation a different set of buttons. Now i want to add a simple checkbox for an advanced behaviour. Thus i would need a dialog template (showing the message and the checkbox) and ideally i could use the buttons property of the dialog to show the buttons i need.
But
var dlg = clickData.func.Dlg;
dlg.template = "DeleteOptions";
dlg.buttons = "Yes|No"; //created dynamically
var result = dlg.Show();
nor the detached version
dlg.detach = true;
dlg.template = "DeleteOptions";
dlg.title = "Delete matching";
dlg.buttons = "Yes|No"; //created dynamically
dlg.Create();
dlg.Show();
while (true) { ...
shows the buttons i tried to apply to the dialog. Is there any chance to make that work without having a lot of different dialog templates for each situation or creating a xml template dynamically ?
Cheers
Felix