I am wondering how to program a dialog window where the user can adapt some acquisition parameter and refocus on the sample manually before to continue.
I could successfully program the dialog window and entry field and the user can do the refocussing manually, however, the dialog window introduces a shading over the background, i.e. the Zen main windows is shaded, rendering the refocussing difficult.
Code: Select all
#Initialize dialogue box for refocussing and skipping cell positions
diagwin = ZenWindow()
diagwin.Initialize('Automation control',600,300,True,True)
diagwin.AddLabel('Adjust focus if not already optimal \n Alternatively, select which position to jump to and/or (de)activate autofocu\n, Then press OK to continue or Cancel to terminate experiment','0','0')
diagwin.AddCheckbox('use_af','Activate autofocus',use_af,'1','0')
diagwin.AddIntegerRange('icellval','Enter Cell position number',cellpos+1,1,len(positionlist),'2','0')
result=diagwin.Show()
Code: Select all
Zeiss.Micro.Scripting.Windows.ContinueWindow()
Code: Select all
.pause
So the question is how to make the dialog window with a transparent (and possibly interactivity with Zen in the background, e.g. change channel) possible.
Thanks!