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 
[WIP] MurgaLua Reference Tool
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: [WIP] MurgaLua Reference Tool - a little help?

I'd already broken up this function into two parts in order to fix a crash mentioned earlier, so depending on what changes you've made (is it simply hiding the widget?) it may need a little more work. This is its current state, plus the hide line, though it hasn't been tested:

function demo_remove_widget()
  if demo_widget then
    demo_widget:hide() -- hide it before removal
    -- remove previous widget

function demo_replace_widget(new_file)
  -- new child window for new widget
  fltk:Fl_End(demo_widget) -- end for each widget window
  demo_widget:make_current() -- needed for drawing functions

01-09-2008 12:38 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
[WIP] MurgaLua Reference Tool - mikshaw - 07-10-2007, 05:00 PM
RE: [WIP] MurgaLua Reference Tool - a little help? - mikshaw - 01-09-2008 12:38 AM

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

Forum Jump: