My question is, why are you hiding the tabs? It's clear that you're using them to make your own config. dialog, but if you just make the tabs larger then the dialog itself, then the tab buttons won't appear and you can just use
/did -c dialog <tab id>. Also, any dialog control (button, check, etc.) which isn't designated to a specific tab, will appear on all the tabs.
button "Hello", 1, 1 1 20 10, tab 1
;will appear on tab 1button "Exit", 2, 1 12 20 10, ok
;will appear on all tabsHere's an example script:
dialog tabs {
title "Tabs"
size -1 -1 100 100
option dbu
;the first dialog is made larger then the dialog and positioned
;so that the edges of the tab aren't visible.
tab "", 1, -5 -20 110 125
tab "", 2
tab "", 3
button "Tab 1", 4, 1 1 20 10
button "Tab 2", 5, 1 12 20 10
button "Tab 3", 6, 1 23 20 10
text "Tab 1 is visible", 7, 30 5 70 8, tab 1
check "Tab 2 is visible", 8, 30 5 70 8, tab 2
radio "Tab 3 is visible", 9, 30 5 70 8, tab 3
}
on *:DIALOG:tabs:sclick:*: {
if ($did == 4) { did -c $dname 1 }
elseif ($did == 5) { did -c $dname 2 }
elseif ($did == 6) { did -c $dname 3 }
}