Found a bug with the dialog window and using "center" style on lines of text. If I hide the display for the text then check the visible option via a $did(id).visible, it ALWAYS returns $true if the "center" style was used in the dialog window. Included a little test script below to demonstrate what I mean:
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
}
If you run this you'll see that even though I hide the text with "did -h $dname 1,2", it still shows using "$did(1).visible", that Test Text 1 is visible, due to having the center style.