![]() |
|
#1
|
||||
|
||||
log window in fltkI try to make app, that use log window in itself, and I want to use fltk::Browser for adding new messages, but it can`t autoscroll to the end of list?
Has anyone a code for example for do such log window? |
|
#2
|
||||
|
||||
|
Hello podarok. Welcome to GIDForums™. I apologize for the delay, but I have always wanted to investigate something like this and this gave me the opportunity
.Unfortunately, the code I am giving is linux specific, but could be modified for windows if someone so desires. The linux specific stuff is sleep (defined in unistd.h) and the pthread stuff (pthread.h). I am using threads so that I can have a seperate calculation loop and in the meantime have the dialog be responsive to my wishes. CPP / C++ / C Code:
Code:
I have tried to document the code, so you can see what each call is for (that may not be immediately obvious. Hope this helps! __________________
The best damn Sports Blog period. |
|
#3
|
||||
|
||||
|
Quote:
Quote:
Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Quote:
FLTK seems to be so lightweight that I don't feel that you take a major hit in any of the GUI stuff. While my sample program is not very robust, there is absolutely no feeling of stutter in that call. The window is forced to refresh at each computation loop by Fl::check. This is called after the add and the bottomline call. Not sure if that answers your question though... ![]() __________________
The best damn Sports Blog period. |
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
simple as always 8)CPP / C++ / C Code:
it is much better and faster log window Last edited by LuciWiz : 12-May-2005 at 08:24.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FLTK && fluid In Motion | cable_guy_67 | FLTK Forum | 4 | 20-Mar-2008 03:52 |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 15:41 |
| Proper way to close a window? | dsmith | FLTK Forum | 5 | 13-Jul-2005 15:56 |
| FLTK with GLUT | usmsci | FLTK Forum | 4 | 26-Nov-2004 16:21 |
| Welcome to the FLTK Forums | dsmith | FLTK Forum | 0 | 08-Sep-2004 06:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The