News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
screen corruption issue
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: screen corruption issue

Truly I believe Fl:run() needs to be used only once, assuming you continuously have at least one window in use. Fl:run() is essentially just a way for Fltk to stay alive...as long as there is an active window, Fltk waits. When all windows have been closed, Fltk quits.

There shouldn't be a problem opening as many windows as you want. The biggest issue in my opinion is the organization and separation of those windows within your code. Make sure your windows have unique names. If you have them all in the same level (Global table) in the same script, or loaded as code chunks into the same level, include fltk:Fl_End() to tell Fltk where each window group ends. I'd suggest either sticking with modules or other form of loaded file, as you are doing now, or creating a table for each window. If you have your windows all uniquely named and separated, you should be able to open and close them at will with show() and hide().

This post was last modified: 07-31-2011 12:41 AM by mikshaw.

07-31-2011 12:40 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
screen corruption issue - roydobbins - 07-29-2011, 04:12 AM
RE: screen corruption issue - mikshaw - 07-30-2011, 12:10 AM
RE: screen corruption issue - roydobbins - 07-30-2011, 07:52 AM
RE: screen corruption issue - mikshaw - 07-31-2011 12:40 AM
RE: screen corruption issue - roydobbins - 07-31-2011, 04:43 AM
RE: screen corruption issue - mikshaw - 07-31-2011, 10:26 AM
RE: screen corruption issue - mikshaw - 07-31-2011, 10:46 AM
RE: screen corruption issue - roydobbins - 07-31-2011, 12:06 PM
RE: screen corruption issue - mikshaw - 07-31-2011, 01:40 PM
RE: screen corruption issue - roydobbins - 08-02-2011, 12:22 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: