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: 27 May 2002 18:32:21 +0200

Am Fre, 2002-05-17 um 17.30 schrieb Roger D. Vargas:
> 
> 
> I have the following code to fill a listbox with a directory list:
> 
>  char **files;
>   int i;
> 
>   //Get files in the save dir
>   files=PG_FileArchive::EnumerateFiles("save");
> 
>   for (i=0;files[i];i++) {
>     fnames->SetText(files[i]);
>     flist->AddItem(fnames);
>     PG_LogMSG(files[i]);
>    }
>    flist->SelectFirstItem();
> 
>   Show();
>   RunModal();
> 
> but the listbox always appears empty, although SelectFirstItem works.
> What's the problem?

Might be a bug.
Please try filling the listbox *after* showing it.
If this works it a bug.

Please let me know.

Thanks

Alex






reply via email to

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