[Top][All Lists]

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

Re: [lmi] Does wxDOC_NEW override wxDOC_SILENT?

From: Greg Chicares
Subject: Re: [lmi] Does wxDOC_NEW override wxDOC_SILENT?
Date: Sun, 03 Aug 2008 15:37:39 +0000
User-agent: Thunderbird (Windows/20080708)

On 2008-08-03 14:14Z, Vadim Zeitlin wrote:
> On Sun, 03 Aug 2008 12:03:17 +0000 Greg Chicares <address@hidden> wrote:
> GC> I suppose that, instead of changing the flags in the patch
> GC> below, I could test whether the file exists, create it if it
> GC> doesn't, and then call CreateDocument() with wxDOC_SILENT as
> GC> in cvs without that patch. But is there a more natural way?
>  AFAICS using wxDOC_NEW | wxDOC_SILENT should have been this natural way
> but it isn't. I don't see any valid reason for this, it should be possible
> to find the template for a new file from its name (well, extension) just as
> well as it can be done for an existing one. So I could modify wx to behave
> like this, would this be useful?


> GC> BTW, I'm still using wx-2.8.7 .
>  I think it should be safe to modify wx 2.8 to work like this too because I
> don't see why would anybody _want_ to have the template choice dialog when
> wxDOC_SILENT is used and this would be the only user-observable change

It's been this way forever, and nobody seems to have noticed
until now. If we can get it working sometime in 2009, that's
all right. Don't backport it to 2.8 just for lmi; 2.9 should
be soon enough.

reply via email to

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