It does not matter for which button I define "default button" for the dialogs, in the dialog shown due to the executed script the button, which was created first has the focus.
E.g. this script snippet calls the dialog "delete":
The default button is a Windows concept, It is the button which will be activated when Return is pushed if no other button has focus (and if the control with focus doesn't use Return for something else, e.g. a multi-line edit control).
It doesn't have anything to do with which control has focus when the dialog opens.
So the default button would only be activated when I manually remove the focus from any button and push then return? E.g. when I click on a radio button and push then return the default button will be used?
So I have to define which button/control has the focus via script command?
Yes is not defined as default button.
I think it would be helpful to make this more clear in the manual. That it only works if no (other) button has the focus.
I thought this button will be chosen when I press Return without changing or selecting anything in a dialog.