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
roydobbins
Junior Member
**


Posts: 7
Group: Registered
Joined: Nov 2010
Status: Offline
Reputation: 0
Post: #1
RE: screen corruption issue

mikshaw Wrote:
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().


Thanks Mik:

yes, what you say definitely makes intuitive sense...

regarding multiple windows, yes i get that to work fine via the show hide, and i havent seen any problems with that scheme

-except- for that screen corruption scenario

right now i am baffled to explain what is going on!!!!

i tried to reduce the problem down to those two small modules
but nothing leaps out at me, eg the global naming issue you mentioned

if i come up with anything, will post the details,

--roy

07-31-2011 04:43 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: