When you try to activate a tab with "/did -f" inside the dialog INIT event it fails (but doing it via a timer works):
Code:
dialog TestTabActivate {
  title TestTabActivate
  size -1 -1 100 100
  option dbu
  tab "Tab 1", 1, 2 2 96 96
  tab "Tab 2", 2
  tab "Tab 3", 3
}

on *:dialog:TestTabActivate:init:0: {
  did -f $dname 2
}

alias TestTab dialog -mdh TestTabActivate TestTabActivate

vs.
Code:
dialog TestTabActivate {
  title TestTabActivate
  size -1 -1 100 100
  option dbu
  tab "Tab 1", 1, 2 2 96 96
  tab "Tab 2", 2
  tab "Tab 3", 3
}

on *:dialog:TestTabActivate:init:0: {
  .timer 1 0 did -f $dname 2
}

alias TestTab dialog -mdh TestTabActivate TestTabActivate