paragui-users
[Top][All Lists]
Advanced

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

Re: [paragui-users] Problem with listbox


From: Alexander Pipelka
Subject: Re: [paragui-users] Problem with listbox
Date: 31 May 2002 09:23:02 +0200

Am Fre, 2002-05-31 um 00.18 schrieb Roger D. Vargas:
> On 29 May 2002, Alexander Pipelka wrote:
> 
> >
> > Shouldn't the loop be:
> >
> >    for (i=0;files[i];i++) {
> >      fnames = new PG_ListBoxItem(itemheight, files[i]); <<<
> >      flist->AddItem(fnames);
> >      PG_LogMSG(files[i]);
> >    }
> But that re-creates fnames on every loop, what happens with the previously
> created instance?

They're added to the listbox :))
The listbox will take care of the objects.

Alex






reply via email to

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