ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How To Modify fieprnform2.dfm?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - May 30 2013 :  12:25:50  Show Profile  Reply
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

wesleybobato

Brazil
367 Posts

Posted - May 30 2013 :  14:38:47  Show Profile  Reply
Thanks William became Very Show.
Helped His Very Idea.

Good afternoon.
Go to Top of Page

Prg

7 Posts

Posted - Jun 01 2013 :  22:04:27  Show Profile  Reply
quote:
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.

This is very easy and depend to conditional compilation. This is old ide "future".
Comment {$IFDEF IEINCLUDEPRINTDIALOGS} - Save - Close module - Reopen module - Edit form - Uncomment { $IFDEF IEINCLUDEPRINTDIALOGS} - Save module.
But may be you do not need uncoment back { $IFDEF IEINCLUDEPRINTDIALOGS}? (If in ie.inc this is on then left it commented)
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 02 2013 :  06:57:24  Show Profile  Reply
Thanks Prg... I missed the defines.

William Miller
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: