lmi
[Top][All Lists]
Advanced

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

Re: [lmi] A wx style question


From: Greg Chicares
Subject: Re: [lmi] A wx style question
Date: Wed, 28 Mar 2007 14:47:24 +0000
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

On 2007-3-28 14:32 UTC, Vadim Zeitlin wrote:
> On Wed, 28 Mar 2007 14:29:50 +0000 Greg Chicares <address@hidden> wrote:
> 
> GC> The wx manual specifies these default arguments:
> GC> 
> GC> wxTreeItemId AppendItem
> GC>     (const wxTreeItemId& parent,
> GC>     const wxString& text,
> GC>     int image = -1,
> GC>     int selImage = -1,
> GC>     wxTreeItemData* data = NULL)
> GC> 
> GC> When we need to specify all five arguments, but want defaults
> GC> for the third and fourth, should we write them as '-1'? Or is
> GC> there some constant (like 'wxDefaultSize' for wxSize arguments)
> GC> that's preferable?
> 
>  No, there is no such constant currently. But we could add a wxNO_IMAGE
> constant with the value of -1, of course. Would it be useful if I did it?

I doubt it's worth adding.

Really, I just wanted to make sure we're following whatever best practice
is recommended by wx. (We are.)




reply via email to

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