Try this code:

Code:
alias myDialog { dialog -mv Dialog1 Dialog1 }
;
dialog Dialog1 {
  title "Dialog1"
  option dbu
  size -1 -1 50 50
  button "Yes/No", 100, 5 5 40 40
}
on *:DIALOG:Dialog1:sclick:100:{ echo -a Result is: $dialog(Dialog2,Dialog2,-4) }
;
dialog Dialog2 {
  title "Dialog2"
  option dbu
  size -1 -1 75 40
  [color:red]text "", 10, 0 0 10 15,result hide
  button "ok", 500, 0 0 1 1,hide ok[/color]
  [color:green]button "No", [color:blue]1000[/color], 5 5 30 30
  button "Yes", [color:blue]1001[/color], 40 5 30 30[/color]
}
on *:DIALOG:Dialog2:sclick:[color:blue]1000,1001[/color]:{
  [color:red]did -ra Dialog2 10 $did($did).text
  dialog -k Dialog2[/color]
}


I don't know why you can't return the results of a button, but this code should work for you.

The green text is the buttons that you can change/add/remove.
The blue are the dialog IDs that will cause a "result" when clicked.
The red portions are the workaround.

-genius_at_work