[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] PNG Export
From: |
Holger |
Subject: |
Re: [Bug-gnubg] PNG Export |
Date: |
Sun, 29 Dec 2002 21:41:09 +0100 |
On Sat, 28 Dec 2002 14:22:58 -0200, Albert Silver wrote:
> Just as an aside, to avoid the problem described when using Notepad:
>
> 1) File --> Save as...
> 2) click on the drop-down menu where it says 'Text documents', and
> select 'All Files *.*'
> 3) Save the extension you desire and it will be respected.
In the standard Windows file dialogue it's always possible to enclose
the filename in quotation marks (") in order to specify none or a
different extension even for those programmes that spoon-feed the user
like notepad.
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.
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
- RE: [Bug-gnubg] PNG Export, (continued)
RE: [Bug-gnubg] PNG Export, Øystein Johansen, 2002/12/28
Re: [Bug-gnubg] PNG Export, Gary Wong, 2002/12/28
RE: [Bug-gnubg] PNG Export, Albert Silver, 2002/12/28
Re: [Bug-gnubg] PNG Export, Gary Wong, 2002/12/30
Re: [Bug-gnubg] PNG Export, Holger, 2002/12/31
Re: [Bug-gnubg] PNG Export, Gary Wong, 2002/12/31