Author |
Topic |
|
Fábio Nascimento
Brazil
72 Posts |
Posted - May 25 2016 : 09:29:17
|
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
|
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. |
|
|
xequte
38615 Posts |
Posted - May 25 2016 : 17:39:51
|
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
|
|
|
w2m
USA
1990 Posts |
Posted - May 25 2016 : 17:46:56
|
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 |
|
|
Fábio Nascimento
Brazil
72 Posts |
Posted - May 26 2016 : 10:34:44
|
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! |
|
|
w2m
USA
1990 Posts |
Posted - May 26 2016 : 11:27:54
|
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 |
|
|
Fábio Nascimento
Brazil
72 Posts |
Posted - May 30 2016 : 07:42:07
|
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. |
|
|
Fábio Nascimento
Brazil
72 Posts |
Posted - Jul 29 2023 : 15:10:48
|
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!
|
|
|
xequte
38615 Posts |
Posted - Jul 29 2023 : 18:13:08
|
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
|
|
|
Fábio Nascimento
Brazil
72 Posts |
Posted - Jul 30 2023 : 04:48:28
|
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 |
|
|
xequte
38615 Posts |
Posted - Jul 30 2023 : 18:01:05
|
Hi Fabio
In our demos the images do not appear?
Nigel Xequte Software www.imageen.com
|
|
|
Fábio Nascimento
Brazil
72 Posts |
Posted - Jul 31 2023 : 05:46:08
|
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 |
|
|
xequte
38615 Posts |
Posted - Jul 31 2023 : 23:41:32
|
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
|
|
|
Fábio Nascimento
Brazil
72 Posts |
Posted - Aug 01 2023 : 09:49:21
|
Cool, thanks Nigel! |
|
|
|
Topic |
|