So I am building a program with a "status bar." It needs to be regularly 
updated with select "news from the backend" updates. I have an issue where when 
I try redraw() and redraw_label() for the bar itself the program seems to 
ignore me and draw the new status ontop of the other. I can call redraw on the 
window and this fixes the draw over issue but it wont update until something 
external to this process causes the window to refresh (mouse move, keyboard 
input, etc). What is causing this? What is the workaround?

Windows 7 64-bit, Dev-C++, FLTK 1.3.0

Sample Code:
sb->StatusBarGroup->label("Connecting...");
 sb->StatusBarGroup->redraw_label();
 WSAStartup(MAKEWORD(1,1), &wsaData);
 Socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
 addr = getaddrinfo("127.0.0.1","27423", NULL, &res);
 addr = connect(Socket, res->ai_addr, res->ai_addrlen);
 if(addr == 0)
 {
  sb->StatusBarGroup->label("Unconnected - Unvalidated");
  sb->StatusBarGroup->redraw_label();
 }
 else if(addr == SOCKET_ERROR)
 {
  sb->StatusBarGroup->label("Unconnected - Unvalidated");
  sb->StatusBarGroup->redraw_label();
  //connection fail error notify
  return 0;
 }

Thanks!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to