if TMDIChild(MainForm.ActiveMDIChild).Memo1.visible then
HdrBtn.Down := true
else
HdrBtn.Down := false;
if (not TMDIChild(MainForm.ActiveMDIChild).FDICOM ) or (TMDIChild(MainForm.ActiveMDIChild).gDICOMdata.SamplesPerPixel > 1) or (TMDIChild(MainForm.ActiveMDIChild).gCustomPalette > 0) {or ((lVox > 7) and (lVox < 17)) }then begin
if (not lImgOK) or (not lHdrOK) or (lDICOMdata.RunLengthEncoding) or(lDICOMdata.ElscintCompress) or(lDICOMdata.JPEGlosslessCpt) or (lDICOMdata.JPEGlossyCpt) or(lDICOMdata.GenesisCpt) or (lDICOMdata.GenesisPackHdr<> 0) then begin
Showmessage('Unable to convert compressed image data: try using MRIcro.');
end else begin
if FileExists(lFileName) then
lConv := ConvertImg(lFileName, lDICOMdata,lTag);
if lConv then lConvAny := true;
end;
end; //fileexists
end;
end;
ConLabelClick;
if lConvAny then begin
showmessage('Converted images have been placed in the folder '+extractfilepath(OpenDialog.Filename));
end;
end;
procedure TMainForm.WinCenEditKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if MainForm.MDIChildCount = 0 then exit;
//if (ssShift in Shift) then StatusBar.Panels[1].text := inttostr(random(1024));