Strange Problem: Im developing under Win XP with Labwin 8.1
My prog does the following: (timer controlled):
- read some numeric controlls (read back user input).
- read data from serial interface
- decide if screen output has to be made to a listbox
- return
This works perfectly using windows XP
Running Win2k SP4: the following happens: no textoutput is generated except
- either the mouse is moved
-or the main window LOST (!) focus. Then everythings works fine.
This can be repoduced on any machine we have.
My WORKAROUND:
run
GetNumListItems(panelHandle,PANEL_DISPLAY,&iDummy); // sorgt dafür, dass die Liste immer
if(iDummy>0)
{
SetCtrlIndex(panelHandle,PANEL_DISPLAY,iDummy-1); // mit nach unten scrollt!
}
before the numeric values are read and everything works fine.
Assumption: For any reason Win2K does not read back the numeric controlls properly if there is no user interaction.
For clarification: the user input is not changed at any time while running.
Hope anyone can help or provide me with a better workaround
DoS