![]() |
|
#1
|
|||
|
|||
run() and fluidHi,
first sorry for my bad english... I'm verry new to fltk and I think it's preatty usefull! I've got the FLTK2 package for Dev-C++ Now, if I run a prog, it starts only if I move the mouse over the main window... So if you do a message box before fltk::run(); the message box will appear only when the mouse was moved over a fltk window !!! message("test"); fltk::run(); But the message box should pop up without moving the mouse !?!?! (also a add_timeout reacts the same...) Another question is about fluid. This GUI designer seems a bit bugy... For example, I can't set the border style for any object !!! And fluid provides only a few objects for adding to a window... So, is there a laternative to fluid, or any updates for it ??? Thanks, Acki |
|||
|
#2
|
||||
|
||||
|
Hi Acki and welcome to GIDForums™. Sorry for the delay in responding, but we have several people around here that are a bit better at FLTK than I.
Quote:
THis sounds really strange to me. Do you have some code that you could post showing exactly what you are doing? Quote:
heh. I used to think the same thing about fluid, but I have since changed my mind. It is a little different than other "builders" but once you use it for a while it kind of grows on you. I find it very useful and have not noticed any real serious bugs with it. As for an alternative there is none that I know of. I think everyone that has ever thought of building one hasn't gotten far because they realize that fluid actually does do everything that they need. Good luck with FLTK and I hope to see you around. __________________
The best damn Sports Blog period. |
|
#3
|
|||
|
|||
|
Well, it seems that the error is because I'm using a seperate class for building the window(s).
In main() I declare this class and call a function of it, that creates all fltk objects. If the function returns I start fltk with run() in the main() function. After this fltk starts only if the mouse was moved over the fltk window. If I create all objects in main(), fltk starts immediatly. And Fluid seems to be verry usefull, but: If I open the property page of an object and go to the style section (tab) I can't set the box style. The only choice available in the "Box" drop down list is "None", so I can't change the box style of any object !!! |
|
#4
|
|||
|
|||
|
Well, I found the problem after long debugging...
It was a wait(); in one of the functions I call to initialise the program... thx for your passion |
|
#5
|
|||
|
|||
Re: run() and fluidHi Acki!!
I've read this thread and i think you should help me wityh something... actually i'm using dev-cpp and fltk library, i got this using the devpack downloaded in the update manager, but i can't find how to use fluid, because after intallation there isn't a directory called fluid or something like that.. I red about you also use dev-cpp and maybe you could guide me .. thanks in advance |
|
#6
|
|||
|
|||
Re: run() and fluidOh, sorry I switched to Code::Blocks a long time ago (its much better than DevCpp) !!!
But if you can't find the includes and libs (should be located in folders "FLTK") you also can unpack the devpack and look how its organised... DevPacks are nothing else than TAR archives !!! |
|
#7
|
|||
|
|||
Re: run() and fluidAcki, Thanks for answer so soon..
i tried to build just the fluid using dev-cpp, but there was errors. maybe i´ll try to instal fltk without using the update manager, and i'll post the results. thanks a lot for your help |
|
#8
|
|||
|
|||
Re: run() and fluid1) i think FLTK2 dev pak is old. download latest FLTK2 package from
http://www.fltk.org/software.php use this 2) There is no released FLTK2 version. FLTK2 still developing http://www.fltk.org/roadmap.php#2.0 |
|
#9
|
|||
|
|||
Re: Similar problem with window update. (fltk2.0)Hello,
I know this is an old thread, but the problem I'm experiencing is very similar. I'm having a problem with a fltk2 window not updating. In my app, buttons simply create events which are processed at a later time by a different thread. After clicking on a button which triggers an event which updates the GUI, I'm finding that the window is not redrawn until the mouse is moved. The problem was noticed in fltk-2.0.x-r6148, and confirmed to still be present in fltk-1.3.x-r6350. I have tried yielding the other threads, and redrawing the window but to no avail. I suspect that the GUI thread is waiting for some (fltk) events which are not available because the event handler is in a different thread. Any pointers will be greatly appreciated. Jivan Amara |
|
#10
|
|||
|
|||
Re: Similar problem with window update. (fltk2.0)Quote:
Sorry, I mean still present in fltk-2.0.x-r6305 (though it is also present in fltk-1.3.x-r6350). |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The