Where'd you get that idea? It works for:
Edit boxes
Buttons
Check boxes
Radios
Lists
But NOT for combos.

The helpfile says:
Code:
[color:red]The $dialog() identifier[/color]
$dialog() also supports these [color:blue]properties[/color]:
focus	returns id of control that currently has focus

There is nothing that says it only works for tabs.