Does anyone know how fieprnform2.dfm can be edited in the Delphi IDE? When you open ieprnform2.pas the ieprnform2.dfm is not loaded into the ide.
Wesley wants a slightly larger image.
With respect to DoPrintPreviewDialog it would be nice to be able to specify the image dimensions and to reposition the ok and cancel buttons to match. So consider adding some params to do this:
DoPrintPreviewDialog(AWidth: integer; AHeight: integer; AImageWidth: integer; AImageHeight: integer; Button1Left: integer; Button2.Left);
This will allow modifications to the dialog at runtime.
// make the image slightly larger for wesley - start w2m
fieprnform2.Width := fieprnform2.Width + 25;
fieprnform2.Height := fieprnform2.Height + 25;
fieprnform2.grpPreview.Width := fieprnform2.GroupBox1.Width + 85;
fieprnform2.ImageEnView1.Width := fieprnform2.ImageEnView1.Width + 25;
fieprnform2.ImageEnView1.Height := fieprnform2.ImageEnView1.Height + 25;
fieprnform2.Button1.Left := fieprnform2.Button1.Left + 25;
fieprnform2.Button2.Left := fieprnform2.Button2.Left + 25;
// make the image slightly larger for wesley - end w2m
Also the TBitButton's should be replaced with TButton to avoid the glyphs with windows vista, windows 7 and 8.
William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html