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
 Custom DoPrintPreviewDialog?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Fábio Nascimento

Brazil
72 Posts

Posted - May 25 2016 :  09:29:17  Show Profile  Reply
Hi,

The DoPrintPreviewDialog form is very nice, but unfortunatelly it doesn't have an option like a combobox on the main form to change the printer (why?).. The user have to click on the "Print Config" button and change there.

Althought it's not an issue, my users are used to have an option on the main print form showing a combobox with the available/selected printer.

My major problem is that I have 2 or more printers available, and they contaim different types of papper, so the user must select the right printer and they need to be aware to where they are printing, to avoid printing on the wrong printer that hasnt the right type of papper needed (there are official papper with logos and comum papper blank at least on each printer).

So is there a way to customize the DoPrintPreviewDialog form? Or any other suggestion?

Thanks!

Fábio Nascimento

Brazil
72 Posts

Posted - May 25 2016 :  14:56:13  Show Profile  Reply
I found the ieprnform3.pas and ieprnform3.dfm, but I can't find a way to open the form, when I open the .pas the form is not loaded and if I open the ieprnform3.dfm directly it only shows the form code.

I found this topic http://www.imageen.com/ieforum/topic.asp?TOPIC_ID=1103&SearchTerms=DoPrintPreviewDialog but I don't understand too.

Is there a way to edit this form to place a combobox with the printers?

Thanks.
Go to Top of Page

xequte

38615 Posts

Posted - May 25 2016 :  17:39:51  Show Profile  Reply
Hi Fabio

Remove these defines in ieprnform3.pas:

{$IFDEF IEINCLUDEMULTIVIEW}
{$IFDEF IEINCLUDEPRINTDIALOGS}

And the related {$ENDIF} at the end of the file. Then close and reopen the unit.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 25 2016 :  17:46:56  Show Profile  Reply
I had to remark
{$IFDEF IEINCLUDEMULTIVIEW}
{$IFDEF IEINCLUDEPRINTDIALOGS}
to
{.$IFDEF IEINCLUDEMULTIVIEW}
{.$IFDEF IEINCLUDEPRINTDIALOGS}

and

two $ELSE and one $ENDIF as well to open ieprnform3.pas with its dfm.

{.$ELSE} // {$ifdef IEINCLUDEPRINTDIALOGS}

interface
implementation

{.$ENDIF}

{.$ELSE} // {$ifdef IEINCLUDEMULTIVIEW}

interface
implementation

{.$ENDIF}

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - May 26 2016 :  10:34:44  Show Profile  Reply
Cool, it worked, I was able to open the form.

But the changes doesn't show, I tried building the project, but nothing.

Do you know how do I make the changes show?

Thanks Bill!
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 26 2016 :  11:27:54  Show Profile  Reply
Reset the defines like they were before you changed them.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - May 30 2016 :  07:42:07  Show Profile  Reply
I tried that bill, but couldn't make the changes to show, I was on holiday here, I'll try again today, thank you very much.
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - Jul 29 2023 :  15:10:48  Show Profile  Reply
Hi!

I updated from version 6.3 and the form displayed with DoPrintPreviewDialog went back to english.

I already changed the form in ieprnform3.pas, but the changes doesn't appear to show.

I add'ed a IEGlobalSettings and set msLanguage to "msPortuguese", but it's still in english.

How do I change the form to portuguese in the current version? Do I have to link the IEGlobalSettings to other component?

Thanks!
Go to Top of Page

xequte

38615 Posts

Posted - Jul 29 2023 :  18:13:08  Show Profile  Reply
Hi Fabio

What version of Delphi do you use?

Recent versions of ImageEn require ielang*.dll in the exe folder for localization support:

http://www.imageen.com/help/ImageEn_DLLs.html

You can also test out localization using the TActions demos:

\Demos\Actions\

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - Jul 30 2023 :  04:48:28  Show Profile  Reply
Hi Nigel

I use Delphi XE3.

Copying the ielang.dll to the exe folder solved the localization issue.

Now the only issue is tha the images for the actions doesn't appear, is there anything to do about that?

Thanks!

Fábio
Go to Top of Page

xequte

38615 Posts

Posted - Jul 30 2023 :  18:01:05  Show Profile  Reply
Hi Fabio

In our demos the images do not appear?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - Jul 31 2023 :  05:46:08  Show Profile  Reply
Hi Nigel,

I just checked the demo PrintSelected, changed the parameter to iedtMaxi, and it does not show the images on buttons, just the captions.

Fábio
Go to Top of Page

xequte

38615 Posts

Posted - Jul 31 2023 :  23:41:32  Show Profile  Reply
Hi Fabio

The PrintSelected demo does not include any actions. Do you mean the glyphs on buttons such as OK/Cancel in ImageEn dialogs?

They are not displayed by default any more to match the current Windows design guidelines.

You can enable them using:

IEGlobalSettings().UseButtonGlyphsInDialogs := True;

(But only if the display monitor does not use scaling)

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - Aug 01 2023 :  09:49:21  Show Profile  Reply
Cool, thanks Nigel!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: