Page Setup Dialog / wxGTK

Phil R prittenhouse at primus.ca
Tue Apr 1 18:37:45 PDT 2008



Phil R wrote:
> 
> I am seeing a similar issue on Windows.  In my case LETTER and LEGAL are
> sticky but other sizes like A4 don't stick.  They revert to LETTER when I
> re-open the dialog.  It doesn't seem to matter what printer I choose (even
> though that changes the list of available paper sizes).
> 

I did some more testing and I found that the PaperId returned by the dialog
is not necessarily the PaperId that was passed in, even though all I did was
hit OK.  For example, if I pass in LETTER (ID 1) it returns NOTE (ID 21). 
If I pass in A5 (ID 14) it returns A5 Transverse (ID 59).  In all cases it
returns an ID for a paper type that has the same dimensions as the original
paper type.

My best guess is that the code converts the input ID to a size and then
looks up that size to generate the output ID.  In some cases thats fine, but
where there is ambiguity it often returns something different.  That
wouldn't be so bad except that the printer may not know about the new paper
ID and if it doesn't it reverts to its default (in my case LETTER).

Does anyone know a workaround for this problem?

Currently I'm thinking I will create a table that will convert the lesser
known paper types back into their more common equivalents before saving the
paper ID.  But it would be better if I could check what paper id's are
supported by the printer or better yet get the dialog to return the value
directly from the pull-down.

Thanks,
Phil
-- 
View this message in context: http://www.nabble.com/Page-Setup-Dialog---wxGTK-tp16053701p16435222.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.



More information about the wx-users mailing list