GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Jun-2009, 03:15
Isebel Isebel is offline
New Member
 
Join Date: Jun 2009
Posts: 3
Isebel is on a distinguished road

How to use flush()


Ern i want to update my window using flush. However i encounter error message like flush() is protected etc. My primary purpose is that i want my window to update itself after i change some of the parameter. However i seem unable to achieve this. Can anyone advice me on this.

Fl_Window *win = new....
some coding for implementation
finally win->flush();
  #2  
Old 14-Mar-2010, 18:19
MatthiasWM MatthiasWM is offline
VIP
 
Join Date: Nov 2004
Posts: 72
MatthiasWM will become famous soon enough

Re: How to use flush()


You rarely need to call flush() yourself. One example would be an extremely long calculation which freezes the display. But there are much better ways than flush().

You are probably looking for redraw(). That function signals to the window that it wants to be redrawn at the next occasion.

flush() btw. is a function of Fl, so you need to call Fl::flush().
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!For poker game simulation blue1988tx C++ Forum 2 25-May-2007 21:56
Code Contest Paramesh Miscellaneous Programming Forum 76 30-Jun-2006 12:18
Coding Contest #1 davis Miscellaneous Programming Forum 0 12-Jun-2006 08:29
flush() / ob_flush() - what for? firebird MySQL / PHP Forum 3 22-Feb-2005 21:43

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:31.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.