paragui-users
[Top][All Lists]
Advanced

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

[paragui-users] Problem with listbox


From: Roger D. Vargas
Subject: [paragui-users] Problem with listbox
Date: Fri, 17 May 2002 11:30:41 -0400 (CDT)

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?


--
Roger D. Vargas         | El sistema se apagara en 5 segundos.
ICQ: 117641572          | Salvese el que pueda!
Linux User: 180787      |





reply via email to

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