std.datetime impenetrable

Mike Wey mike-wey at example.com
Thu Sep 15 13:51:01 PDT 2011


On 09/15/2011 07:48 PM, Steve Teale wrote:
> Alternatively, let me explain my desire. When my program first runs, I want to
> hazard a guess as to what size of paper the user is likely to use - US Letter
> Size, or A4/inches or metric. GTK does not seem to want to tell me about the
> default printer settings - could be the beer of course.

To get the default paper size with gtkD you could use:

new PaperSize(cast(string)null);

This creates an PaperSize object representing an US Letter if the locale 
is set to Canada, US or Mexico, and A4 otherwise.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list