IBG uses non-modal dialogs to control tomosynthetic scanning. Moved global declarations, procedures and functions into scope of routine DoSimplexFit, since there is no need to declare them globally and they cause conflicts when declared as such. Some of the variables appear to be unused. Constants and types were left as globally defined. MPW is pickier about string types than Think.
Access is via new function GetCTabElement.
Also added range checking to prevent errors that resulted in image artifacts. Make sure window names passed in are less than 30 characters long. Much of this unit appears to be duplicated in Lut.p. Apparently it is still under constuction 18. Commented out declared but unimplemented function GetColorTable.