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
iGame3D
Moderator
***


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

I think i fixed the exiting or hiding on switching Widgets

Code:
function demo_replace_widget(new_file)
   -- remove previous widget
  if demo_widget then
  demo_widget:hide() -- hide it before removal
    demo_w:remove(demo_widget)
    Fl:delete_widget(demo_widget)
    demo_widget=nil
  end
  -- new child window for new widget
  demo_widget = fltk:Fl_Double_Window(0,demo_bh,demo_ww,demo_wh-demo_bh,demo_widget_files[i])
  dofile(new_file)
  fltk:Fl_End() -- end for each widget window
   demo_w:add(demo_widget)
   demo_widget:show()
   demo_w:redraw();
   demo_widget:make_current() -- needed for drawing functions
end


All I needed was one good sleepless night to allow me to have
more sleepless nights hacking this thing to do my bidding!

This post was last modified: 01-08-2008 09:31 PM by iGame3D.

01-08-2008 09:26 PM
Visit this user's website 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? - iGame3D - 01-08-2008 09:26 PM

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

Forum Jump: