alias testWindow {
if ($dialog(testWindow)) { dialog -x testWindow }
dialog -m testWindow testWindow
}
dialog testWindow {
title "Test Window"
size -1 -1 100 100
option dbu
text "Test Text 1", 1, 6 6 88 118, center
text "Test Text 2", 2, 6 14 88 118
}
on 1:dialog:testWindow:init:*:{
; hide both lines of text in dialog window
did -h $dname 1,2
; display visibility properties for both lines of text
echo -a Test Text 1 Visible: $did(1).visible
echo -a Test Text 2 Visible: $did(2).visible
}