Hallo,
I try to write with a mutithread async timer to a listbox on the main_panel, but nothing happens.
By compiling and running the program, no error appears.
the programm in a short version:
int main (....)
{
int panel;
...
panel = LoadPanel (0, "test.uir", PANEL);
InstallPopup(panel);
...
timerID = NewAsyncTimer (5.0, -1, 1, MyTimerFunction, NULL);
...
}
int MyTimerFunction (....)
{
int panel;
char output;
...
if (event == EVENT_TIMER_TICK)
{
panel = LoadPanel (0, "test.uir", PANEL); // without this line: "invalid control ID"
InsertListItem (panel, PANEL_LISTBOX, -1, OUTPUT, 0); //listbox value data type: char
}
return 0;
}
What's wrong here?
kind regards
Florian