bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bug-gnubg] PNG Export


From: Albert Silver
Subject: RE: [Bug-gnubg] PNG Export
Date: Sun, 29 Dec 2002 19:00:26 -0200

>Btw, most (if not all) programmes on Windows neither require that
>"their" data files have the appropriate or any filename extension.
>Lacking the extension only breaks filename association in Explorer
>(double-clicking the data file to open the programme), nothing else.

That's not exactly true. It's true that I can open a PNG image without
the extension, if I specifically direct a program to open it. However,
most Windows programs automatically filter the extensions they can
access in their "Open File" dialogue. For example, if I am using an
Image viewing program, by default it will show only the extensions of
files it can open, thus an extensionless PNG image would not appear in
the list. Not a problem for an experienced computer user, but yes for
the average user. 

                                                Albert


As for improving the limited GTK+ file dialogue: Why not use the
standard one on Windows? Features: Different views including details
with file sizes and modification times, sorting, file extension
filters, and - maybe most important - every Windows user knows it. One
could even customize it, though, this is not trivial.

In commdlg.h:
BOOL WINAPI GetOpenFileName(LPOPENFILENAME);
BOOL WINAPI GetSaveFileName(LPOPENFILENAME);

typedef struct tagOFN { // ofn 
    DWORD         lStructSize; 
    HWND          hwndOwner; 
    HINSTANCE     hInstance; 
    LPCTSTR       lpstrFilter; 
    LPTSTR        lpstrCustomFilter; 
    DWORD         nMaxCustFilter; 
    DWORD         nFilterIndex; 
    LPTSTR        lpstrFile; 
    DWORD         nMaxFile; 
    LPTSTR        lpstrFileTitle; 
    DWORD         nMaxFileTitle; 
    LPCTSTR       lpstrInitialDir; 
    LPCTSTR       lpstrTitle; 
    DWORD         Flags; 
    WORD          nFileOffset; 
    WORD          nFileExtension; 
    LPCTSTR       lpstrDefExt; 
    DWORD         lCustData; 
    LPOFNHOOKPROC lpfnHook; 
    LPCTSTR       lpTemplateName; 
} OPENFILENAME;

Regards,

        Holger


_______________________________________________
Bug-gnubg mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-gnubg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]