Will successive calls of wxNewId() return successive IDs?

Andreas Mohr andi at rhlx01.fht-esslingen.de
Thu Feb 1 02:41:27 PST 2007


Hi,

On Wed, Jan 31, 2007 at 03:36:24AM -0000, wx-users-digest-help at lists.wxwidgets.org wrote:
> From: Vadim Zeitlin <vadim at wxwindows.org>
> Subject: Re: Will successive calls of wxNewId() return successive IDs?
> To: wx-users at lists.wxwidgets.org
> 
> On Tue, 30 Jan 2007 22:06:58 +0100 Volker Bartheld <dr_versaeg at freenet.de> wrote:
> 
> VB> I'm using wxNewId() to assign IDs for controls.
> 
>  Please don't. Use wxWindow::NewControlId() instead, wxNewId() will
> (hopefully) be deprecated in the next version. And you may be interested in
> Next/PrevControlId() methods too.

[amoh at localhost ~/wxWidgets_cvs_current/docs]$ find|xargs grep NewControlId
[amoh at localhost ~/wxWidgets_cvs_current/docs]$ find|xargs grep wxNewId|wc -l
     78

[NO COMMENT]

*sigh* Oh well, I've been planning to submit yet another not so small
docu update soon anyway...

Oh BTW, I've also never heard of NewControlId() before, wonder why?
Speaking as a wx user who's using it on a permanent basis...

;-)

Have a nice day,

Andreas Mohr




More information about the wx-users mailing list