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 17-Jan-2005, 10:33
Acki Acki is offline
New Member
 
Join Date: Jan 2005
Posts: 27
Acki is on a distinguished road

run() and fluid


Hi,
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  
Old 19-Jan-2005, 12:53
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
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:
Originally Posted by Acki
Hi,
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...)

THis sounds really strange to me. Do you have some code that you could post showing exactly what you are doing?

Quote:
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

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.
  #3  
Old 20-Jan-2005, 14:58
Acki Acki is offline
New Member
 
Join Date: Jan 2005
Posts: 27
Acki is on a distinguished road
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  
Old 23-Jan-2005, 16:35
Acki Acki is offline
New Member
 
Join Date: Jan 2005
Posts: 27
Acki is on a distinguished road
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  
Old 08-May-2007, 11:55
juanpab1980 juanpab1980 is offline
New Member
 
Join Date: May 2007
Posts: 9
juanpab1980 is on a distinguished road

Re: run() and fluid


Hi 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  
Old 08-May-2007, 19:23
Acki Acki is offline
New Member
 
Join Date: Jan 2005
Posts: 27
Acki is on a distinguished road

Re: run() and fluid


Oh, 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  
Old 08-May-2007, 20:21
juanpab1980 juanpab1980 is offline
New Member
 
Join Date: May 2007
Posts: 9
juanpab1980 is on a distinguished road

Re: run() and fluid


Acki, 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  
Old 15-May-2007, 01:11
bluekid bluekid is offline
Junior Member
 
Join Date: Apr 2006
Posts: 42
bluekid will become famous soon enough

Re: run() and fluid


1) 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  
Old 01-Oct-2008, 00:23
JivanAmara JivanAmara is offline
New Member
 
Join Date: Sep 2008
Posts: 4
JivanAmara is on a distinguished road

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  
Old 01-Oct-2008, 19:38
JivanAmara JivanAmara is offline
New Member
 
Join Date: Sep 2008
Posts: 4
JivanAmara is on a distinguished road

Re: Similar problem with window update. (fltk2.0)


Quote:
Originally Posted by JivanAmara
The problem was noticed in fltk-2.0.x-r6148, and confirmed to still be present in fltk-1.3.x-r6350.

Sorry, I mean still present in fltk-2.0.x-r6305 (though it is also present in fltk-1.3.x-r6350).
 
 

Recent GIDBlogProblems with the Navy (Chiefs) 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

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

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


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